[DO NOT MERGE] Nora PWM12 mode + camera_trigger hacks

This commit is contained in:
Daniel Agar
2021-02-22 21:24:59 -05:00
parent e2563388eb
commit 64b5277c5d
4 changed files with 141 additions and 155 deletions
+19 -17
View File
@@ -382,23 +382,25 @@ else
if param greater -s TRIG_MODE 0
then
# We ONLY support trigger on pins 5+6 or 7+8 when simultanously using AUX for actuator output.
if param compare TRIG_PINS 56
then
# clear pins 5 and 6
set FMU_MODE pwm4
set AUX_MODE pwm4
else
if param compare TRIG_PINS 78
then
# clear pins 7 and 8
set FMU_MODE pwm6
set AUX_MODE pwm6
else
set FMU_MODE none
set AUX_MODE none
fi
fi
# # We ONLY support trigger on pins 5+6 or 7+8 when simultanously using AUX for actuator output.
# if param compare TRIG_PINS 56
# then
# # clear pins 5 and 6
# set FMU_MODE pwm4
# set AUX_MODE pwm4
# else
# if param compare TRIG_PINS 78
# then
# # clear pins 7 and 8
# set FMU_MODE pwm6
# set AUX_MODE pwm6
# else
# set FMU_MODE none
# set AUX_MODE none
# fi
# fi
set FMU_MODE pwm12
camera_trigger start
camera_feedback start