mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: Change TRI_FRAME yaw servo output to CH_TRI_YAW define
This commit is contained in:
parent
c105f64dca
commit
f5b6746ad7
|
@ -1130,7 +1130,7 @@ static void fifty_hz_loop()
|
|||
#if FRAME_CONFIG == TRI_FRAME
|
||||
// servo Yaw
|
||||
g.rc_4.calc_pwm();
|
||||
APM_RC.OutputCh(CH_7, g.rc_4.radio_out);
|
||||
APM_RC.OutputCh(CH_TRI_YAW, g.rc_4.radio_out);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,18 @@
|
|||
# define MOT_8 CH_11
|
||||
#endif
|
||||
|
||||
//
|
||||
//
|
||||
// Output CH mapping for TRI_FRAME yaw servo
|
||||
//
|
||||
//
|
||||
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
|
||||
/* TODO find out correct channel for APM2 TRI_YAW */
|
||||
# define CH_TRI_YAW (-1)
|
||||
#elif CONFIG_APM_HARDWARE == APM_HARDWARE_APM1
|
||||
# define CH_TRI_YAW CH_7
|
||||
#endif
|
||||
|
||||
//
|
||||
//
|
||||
// Output CH mapping for Aux channels
|
||||
|
|
Loading…
Reference in New Issue