Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduplane: add support for simple digital pin. #2231

Closed
wants to merge 1 commit into from

Conversation

taedla01
Copy link
Contributor

@taedla01 taedla01 commented May 4, 2015

For future developments, add support for simple digital pins on FMU rail
like ArduRover.

For future developments, add support for simple digital pins on FMU rail
like ArduRover.
@gmorph gmorph added the Plane label May 8, 2015
@gmorph
Copy link
Contributor

gmorph commented May 8, 2015

We tend not to add code that we aren't going to use. It looks like a cut and paste of the Rover method. Is there any reason for adding this code now if its not going to be used?
Thanks, Grant.

@taedla01
Copy link
Contributor Author

taedla01 commented May 8, 2015

Hello everyone,

@gmorph Sorry... magicrub commented on other PR that this is dead code. Yes, it is a cut and paste from Rover. I saw this on current ArduRover code and thought that was being still used.

We are using this small piece of code for multiple uses:
1- With a switch input on pin 55, we can change flight batteries without the needed of turning off the plane. Pushing the switch, Pixhawk Enters on a "standby mode", activating a custom made capacitor circuit, giving power for at Least 40 seconds.
2- Connecting the logical level camera flash hot shoe pin to pin 54 gives (with other code changes) a best camera triggering flag. Reducing the CAM messages lag from 200ms to at Least 20-30ms.
3-With another switch we turn on/off the flight lights.

Thought that others could use for simplest switch readings...

Cheers,
Dario

@taedla01
Copy link
Contributor Author

Hello everyone,
Included with #2309, so will close.

@taedla01 taedla01 closed this May 19, 2015
@taedla01 taedla01 deleted the Arduplane_digital_pin branch May 20, 2015 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants