Matt_C
(M)
March 30, 2019, 5:49am
1
I have a camera mount system that I have 3d printed and it includes a cover for the lens. I remember reading that there was going to be a function for automatic landing gear that could be set at a specific altitude. I see this has been merged into master but I cannot find it anywhere. https://github.com/ArduPilot/ardupilot/pull/7893 . Is this a function that is supported or might be in the pipeline?
iampete
(Peter Hall)
March 30, 2019, 8:52am
2
works on master, set you servo ouput to landing gear and set LGR_DEPLOY_ALT and LGR_RETRACT_ALT
2 Likes
iampete
(Peter Hall)
April 2, 2019, 9:43am
4
Matt_C:
aux 1 with a y splitter
if you have the free pins just plug them in separately
Matt_C:
I also just want to clarify that when they say pin polarity in lgr_deploy parameter what are they talking about?
Thats for if you have a switch to confirm the gear has gone down all the way
Matt_C:
Can I set the pwm value for lgr_deploy_alt and lgr_retract_alt? Does this match up to a servo_fxn
deploy and retract just moves between min and max pwm set for each output function
Matt_C:
Is this not just the same as connecting the cam hatch to main 5 and doing a do set servo command at the beginning of the mission to open the hatch and a do set servo command to close it at the end of the mission?
yes
Matt_C:
Is lgr_xxxxx the only function available to open and close something at a desired height?
yes, i think so
Matt_C:
For this situation i need to set a specific PWM value within the parameters to open the hatch (pwm value of 1950) and a PWM value for hatch closed (pwm value of 1080) these are the values that have been found to open the hatch fully without the hatch cover in the view of the camera and also able to close it without running the servo to its max extent and binding the hatch closed and heating up the servo.
set the servo min and max values
iampete
(Peter Hall)
April 6, 2019, 6:59pm
6
looks like its not in 3.9.7 you will have to come onto master to get the latest stuff
http://firmware.ardupilot.org/Plane/latest/
iampete
(Peter Hall)
April 6, 2019, 8:27pm
8
about 0.0.3, probably quite a while