mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
MSP messages to get and set PID and rate profile names. (#12020)
* MSP messages to get and set PID and rate profile names. * Use MSP2_SET_TEXT and MSP2_GET_TEXT messages instead separate ones.
This commit is contained in:
parent
a89af14587
commit
b7b53399ab
2 changed files with 18 additions and 0 deletions
|
@ -2533,6 +2533,14 @@ static mspResult_e mspFcProcessOutCommandWithArg(mspDescriptor_t srcDesc, int16_
|
|||
textVar = pilotConfigMutable()->craftName;
|
||||
break;
|
||||
|
||||
case MSP2TEXT_PID_PROFILE_NAME:
|
||||
textVar = currentPidProfile->profileName;
|
||||
break;
|
||||
|
||||
case MSP2TEXT_RATE_PROFILE_NAME:
|
||||
textVar = currentControlRateProfile->profileName;
|
||||
break;
|
||||
|
||||
default:
|
||||
return MSP_RESULT_ERROR;
|
||||
}
|
||||
|
@ -3927,6 +3935,14 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
textVar = pilotConfigMutable()->craftName;
|
||||
break;
|
||||
|
||||
case MSP2TEXT_PID_PROFILE_NAME:
|
||||
textVar = currentPidProfile->profileName;
|
||||
break;
|
||||
|
||||
case MSP2TEXT_RATE_PROFILE_NAME:
|
||||
textVar = currentControlRateProfile->profileName;
|
||||
break;
|
||||
|
||||
default:
|
||||
return MSP_RESULT_ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue