Closed LorenzMeier closed 5 years ago
Longer term could we find a way to do this without having to deal with a mixer?
I'm also wondering if it would make sense to move things like landing gear to a separate control group and handle it outside of the attitude controllers. That module could have landing gear config via param and would be accessible for both MC and FW.
Is there way to control the landing gear by mavlink? Does they controlled by logic? for example, during RTL, does it goes down automatically?
@matanhavi for a multicopter yes it will go down automatically.
@dagar Thanks, I will try it. Does it have option to be controlled by mavlink? and/or how they goes up? I tried to find the related code, to follow the logic, without success.
Hey, this issue has been closed because the label status/STALE
is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)
I would like to see more documentation on how to automate this when using gamepad/joystick inplace of RC. Would I just load the mixer and also what is the proper way to load this mixer put on microsd in /etc/mixer does this need a config.txt? Thanks in advance.
Reopening - the tutorial does not exist, so this work has not been done. Probably this should be in the PX4 user guide or devguide issue tracker.
@dagar
RC_MAP_GEAR_SW
to map channel to gear switch, but I envisage we're talking a second parameter to map RC_MAP_GEAR_SW to a specific MAIN or AUX (or could this be on some other bus - ie UAVCAN?)I am going to assume that we need to add a config.txt with the following correct (along with gear.mix above)?
set MIXER_AUX gear set PWM_AUX_OUT 1234 set PWM_AUX_DISARMED 1500 set PWM_AUX_MIN 1000 set PWM_AUX_MAX 2000 set PWM_AUX_RATE 50
The portion that applies to multicopter and RC_MAP_GEAR_SW is in reasonably good shape, but FW and joystick button mapping is still missing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@dagar I assume you still want to improve the architecture around this as per https://github.com/PX4/Firmware/issues/7458#issuecomment-310419573
Otherwise, if we want to document this as it is now there is not enough info - see my post: https://github.com/PX4/Firmware/issues/7458#issuecomment-414621313
Closing as stale.
RC_MAP_GEAR_SW
- set it to the RC channel you want it to be onM: 1 O: 10000 10000 0 -10000 10000 S: 0 7 10000 10000 0 -10000 10000
#
Load the gear mixer onto fmu
# mixer load /dev/px4fmu /etc/mixers/gear.mix