5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-13 03:18:29 -04:00

Plane: support building quadplane with forced motors class

This commit is contained in:
Andrew Tridgell 2016-04-28 22:40:45 +10:00
parent e3f5d4552e
commit 6f4d66f346
2 changed files with 9 additions and 2 deletions

View File

@ -303,7 +303,7 @@ bool QuadPlane::setup(void)
goto failed; goto failed;
} }
#ifdef AP_MOTORS_CLASS #ifdef AP_MOTORS_FORCE_CLASS
RC_Channel_aux::set_aux_channel_default(RC_Channel_aux::k_motor1, CH_5); RC_Channel_aux::set_aux_channel_default(RC_Channel_aux::k_motor1, CH_5);
RC_Channel_aux::set_aux_channel_default(RC_Channel_aux::k_motor2, CH_6); RC_Channel_aux::set_aux_channel_default(RC_Channel_aux::k_motor2, CH_6);
RC_Channel_aux::set_aux_channel_default(RC_Channel_aux::k_motor4, CH_8); RC_Channel_aux::set_aux_channel_default(RC_Channel_aux::k_motor4, CH_8);

View File

@ -8,7 +8,14 @@
#include <AC_WPNav/AC_WPNav.h> #include <AC_WPNav/AC_WPNav.h>
// uncomment this to force a different motor class // uncomment this to force a different motor class
// #define AP_MOTORS_CLASS AP_MotorsTri // #define AP_MOTORS_FORCE_CLASS AP_MotorsTri
#ifdef AP_MOTORS_FORCE_CLASS
#define AP_MOTORS_CLASS AP_MOTORS_FORCE_CLASS
#else
#define AP_MOTORS_CLASS AP_MotorsMulticopter
#endif
/* /*
QuadPlane specific functionality QuadPlane specific functionality