Merge pull request #3868 from spuder/small_angle
adds small_angle for configurator
This commit is contained in:
commit
25a216994d
|
@ -862,6 +862,7 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
|||
case MSP_ARMING_CONFIG:
|
||||
sbufWriteU8(dst, armingConfig()->auto_disarm_delay);
|
||||
sbufWriteU8(dst, armingConfig()->disarm_kill_switch);
|
||||
sbufWriteU8(dst, imuConfig()->small_angle);
|
||||
break;
|
||||
|
||||
case MSP_RC_TUNING:
|
||||
|
@ -1374,6 +1375,9 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
case MSP_SET_ARMING_CONFIG:
|
||||
armingConfigMutable()->auto_disarm_delay = sbufReadU8(src);
|
||||
armingConfigMutable()->disarm_kill_switch = sbufReadU8(src);
|
||||
if (sbufBytesRemaining(src)) {
|
||||
imuConfigMutable()->small_angle = sbufReadU8(src);
|
||||
}
|
||||
break;
|
||||
|
||||
case MSP_SET_PID_CONTROLLER:
|
||||
|
|
|
@ -149,8 +149,8 @@
|
|||
#define MSP_PID_CONTROLLER 59
|
||||
#define MSP_SET_PID_CONTROLLER 60
|
||||
|
||||
#define MSP_ARMING_CONFIG 61 //out message Returns auto_disarm_delay and disarm_kill_switch parameters
|
||||
#define MSP_SET_ARMING_CONFIG 62 //in message Sets auto_disarm_delay and disarm_kill_switch parameters
|
||||
#define MSP_ARMING_CONFIG 61
|
||||
#define MSP_SET_ARMING_CONFIG 62
|
||||
|
||||
//
|
||||
// Baseflight MSP commands (if enabled they exist in Cleanflight)
|
||||
|
|
Loading…
Reference in New Issue