From 601b302c5b744457b0dbac40652664bbdb75d9c2 Mon Sep 17 00:00:00 2001 From: Hydra Date: Sun, 19 Mar 2017 19:08:02 +0000 Subject: [PATCH] CF/BF - Rename MSP_3D to MSP_MOTOR_3D_CONFIG. now it's really obvious that 3d throttle deadband really doesn't belong in it. If you need 3D specific ESC/MOTOR configuration use this. If yo need specific 3D RX configuration use other commands like MSP_RC_DEADBAND, etc. --- src/main/fc/fc_msp.c | 4 ++-- src/main/msp/msp_protocol.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/fc/fc_msp.c b/src/main/fc/fc_msp.c index 6559238dd..b68cc83b7 100755 --- a/src/main/fc/fc_msp.c +++ b/src/main/fc/fc_msp.c @@ -1121,7 +1121,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn #endif break; - case MSP_3D: + case MSP_MOTOR_3D_CONFIG: sbufWriteU16(dst, flight3DConfig()->deadband3d_low); sbufWriteU16(dst, flight3DConfig()->deadband3d_high); sbufWriteU16(dst, flight3DConfig()->neutral3d); @@ -1478,7 +1478,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src) #endif break; - case MSP_SET_3D: + case MSP_SET_MOTOR_3D_CONFIG: flight3DConfigMutable()->deadband3d_low = sbufReadU16(src); flight3DConfigMutable()->deadband3d_high = sbufReadU16(src); flight3DConfigMutable()->neutral3d = sbufReadU16(src); diff --git a/src/main/msp/msp_protocol.h b/src/main/msp/msp_protocol.h index 94321ea7b..0bf3f2da9 100644 --- a/src/main/msp/msp_protocol.h +++ b/src/main/msp/msp_protocol.h @@ -254,7 +254,7 @@ #define MSP_SERVO_CONFIGURATIONS 120 //out message All servo configurations. #define MSP_NAV_STATUS 121 //out message Returns navigation status #define MSP_NAV_CONFIG 122 //out message Returns navigation parameters -#define MSP_3D 124 //out message Settings needed for reversible ESCs +#define MSP_MOTOR_3D_CONFIG 124 //out message Settings needed for reversible ESCs #define MSP_RC_DEADBAND 125 //out message deadbands for yaw alt pitch roll #define MSP_SENSOR_ALIGNMENT 126 //out message orientation of acc,gyro,mag #define MSP_LED_STRIP_MODECOLOR 127 //out message Get LED strip mode_color settings @@ -282,7 +282,7 @@ #define MSP_SET_SERVO_CONFIGURATION 212 //in message Servo settings #define MSP_SET_MOTOR 214 //in message PropBalance function #define MSP_SET_NAV_CONFIG 215 //in message Sets nav config parameters - write to the eeprom -#define MSP_SET_3D 217 //in message Settings needed for reversible ESCs +#define MSP_SET_MOTOR_3D_CONFIG 217 //in message Settings needed for reversible ESCs #define MSP_SET_RC_DEADBAND 218 //in message deadbands for yaw alt pitch roll #define MSP_SET_RESET_CURR_PID 219 //in message resetting the current pid profile to defaults #define MSP_SET_SENSOR_ALIGNMENT 220 //in message set the orientation of the acc,gyro,mag