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:
Julian Oes
2017-04-19 16:59:48 +02:00
committed by Beat Küng
parent ed577f705d
commit 349a468f81
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -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;