mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
use A1 supervision configuration in sim
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
<section name="BOOZ2_MODE" prefix="BOOZ2_MODE_">
|
||||
<define name="MANUAL" value="BOOZ2_AP_MODE_ATTITUDE_DIRECT" />
|
||||
<define name="AUTO1" value="BOOZ2_AP_MODE_ATTITUDE_Z_HOLD" />
|
||||
<define name="AUTO2" value="BOOZ2_AP_MODE_NAV" />
|
||||
<define name="AUTO2" value="BOOZ2_AP_MODE_ATTITUDE_Z_HOLD" />
|
||||
</section>
|
||||
|
||||
<makefile>
|
||||
|
||||
@@ -32,10 +32,17 @@
|
||||
#define INT32_MAX (2147483647)
|
||||
#endif
|
||||
|
||||
#ifdef SITL
|
||||
static const int32_t roll_coef[SUPERVISION_NB_MOTOR] = { 0, 0, -256, 256};
|
||||
static const int32_t pitch_coef[SUPERVISION_NB_MOTOR] = { 256, -256, 0, 0};
|
||||
static const int32_t yaw_coef[SUPERVISION_NB_MOTOR] = { -256, -256, 256, 256};
|
||||
static const int32_t thrust_coef[SUPERVISION_NB_MOTOR] = { 256, 256, 256, 256};
|
||||
#else
|
||||
static const int32_t roll_coef[SUPERVISION_NB_MOTOR] = SUPERVISION_ROLL_COEF;
|
||||
static const int32_t pitch_coef[SUPERVISION_NB_MOTOR] = SUPERVISION_PITCH_COEF;
|
||||
static const int32_t yaw_coef[SUPERVISION_NB_MOTOR] = SUPERVISION_YAW_COEF;
|
||||
static const int32_t thrust_coef[SUPERVISION_NB_MOTOR] = SUPERVISION_THRUST_COEF;
|
||||
#endif
|
||||
|
||||
struct BoozSupervision supervision;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user