mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 04:23:33 +08:00
vmount: add to startup script, disable by default
vmount is now added to the startup script, however, it will only start if the param MNT_MODE_IN is set to anything but -1.
This commit is contained in:
@@ -202,7 +202,7 @@ static int vmount_thread_main(int argc, char *argv[])
|
||||
|
||||
while (!thread_should_exit) {
|
||||
|
||||
if (!thread_data.input_objs[0] || test_input) { //need to initialize
|
||||
if (!thread_data.input_objs[0] && (params.mnt_mode_in >= 0 || test_input)) { //need to initialize
|
||||
|
||||
output_config.gimbal_normal_mode_value = params.mnt_ob_norm_mode;
|
||||
output_config.gimbal_retracted_mode_value = params.mnt_ob_lock_mode;
|
||||
|
||||
Reference in New Issue
Block a user