1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

MSP_ADVANCED_TUNING renamed to MSP_PID_ADVANCED to match Betaflight

This commit is contained in:
Pawel Spychalski (DzikuVx) 2016-10-18 13:44:09 +02:00
parent 30ed4d10d9
commit 376df9d396
2 changed files with 4 additions and 4 deletions

View file

@ -1044,7 +1044,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, sbuf_t *src, msp
sbufWriteU16(dst, 1); //BF: masterConfig.gyro_soft_notch_cutoff_2 sbufWriteU16(dst, 1); //BF: masterConfig.gyro_soft_notch_cutoff_2
break; break;
case MSP_ADVANCED_TUNING: case MSP_PID_ADVANCED:
sbufWriteU16(dst, currentProfile->pidProfile.rollPitchItermIgnoreRate); sbufWriteU16(dst, currentProfile->pidProfile.rollPitchItermIgnoreRate);
sbufWriteU16(dst, currentProfile->pidProfile.yawItermIgnoreRate); sbufWriteU16(dst, currentProfile->pidProfile.yawItermIgnoreRate);
sbufWriteU16(dst, currentProfile->pidProfile.yaw_p_limit); sbufWriteU16(dst, currentProfile->pidProfile.yaw_p_limit);
@ -1366,7 +1366,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
//BF: masterConfig.gyro_soft_notch_cutoff_2 = read16(); //BF: masterConfig.gyro_soft_notch_cutoff_2 = read16();
break; break;
case MSP_SET_ADVANCED_TUNING: case MSP_SET_PID_ADVANCED:
currentProfile->pidProfile.rollPitchItermIgnoreRate = sbufReadU16(src); currentProfile->pidProfile.rollPitchItermIgnoreRate = sbufReadU16(src);
currentProfile->pidProfile.yawItermIgnoreRate = sbufReadU16(src); currentProfile->pidProfile.yawItermIgnoreRate = sbufReadU16(src);

View file

@ -205,8 +205,8 @@
#define MSP_FILTER_CONFIG 92 #define MSP_FILTER_CONFIG 92
#define MSP_SET_FILTER_CONFIG 93 #define MSP_SET_FILTER_CONFIG 93
#define MSP_ADVANCED_TUNING 94 #define MSP_PID_ADVANCED 94
#define MSP_SET_ADVANCED_TUNING 95 #define MSP_SET_PID_ADVANCED 95
#define MSP_SENSOR_CONFIG 96 #define MSP_SENSOR_CONFIG 96
#define MSP_SET_SENSOR_CONFIG 97 #define MSP_SET_SENSOR_CONFIG 97