1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

Changed 'yaw_control_direction' into 'yaw_control_inverted' and made it a boolean, to get rid of the 'undefined' case 0.

This commit is contained in:
mikeller 2017-03-19 16:37:35 +13:00 committed by Michael Keller
parent b55b46a2b5
commit 728adb3a86
6 changed files with 7 additions and 6 deletions

View file

@ -158,11 +158,12 @@ typedef struct rcControlsConfig_s {
uint8_t yaw_deadband; // introduce a deadband around the stick center for yaw axis. Must be greater than zero.
uint8_t alt_hold_deadband; // defines the neutral zone of throttle stick during altitude hold, default setting is +/-40
uint8_t alt_hold_fast_change; // when disabled, turn off the althold when throttle stick is out of deadband defined with alt_hold_deadband; when enabled, altitude changes slowly proportional to stick movement
int8_t yaw_control_direction; // change control direction of yaw (inverted, normal)
int8_t yaw_control_reversed; // invert control direction of yaw
} rcControlsConfig_t;
PG_DECLARE(rcControlsConfig_t, rcControlsConfig);
#define GET_YAW_DIRECTION(isInverted) (2 * (isInverted) - 1)
typedef struct flight3DConfig_s {
uint16_t deadband3d_low; // min 3d value
uint16_t deadband3d_high; // max 3d value