Skip to content

Commit

Permalink
Add min_throttle to MSP_GOVERNOR_PROFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Oct 5, 2024
1 parent 9903a9a commit e509c27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/msp/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,7 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
sbufWriteU8(dst, currentPidProfile->governor.cyclic_ff_weight);
sbufWriteU8(dst, currentPidProfile->governor.collective_ff_weight);
sbufWriteU8(dst, currentPidProfile->governor.max_throttle);
sbufWriteU8(dst, currentPidProfile->governor.min_throttle);
break;

case MSP_SENSOR_CONFIG:
Expand Down Expand Up @@ -2617,6 +2618,9 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
currentPidProfile->governor.cyclic_ff_weight = sbufReadU8(src);
currentPidProfile->governor.collective_ff_weight = sbufReadU8(src);
currentPidProfile->governor.max_throttle = sbufReadU8(src);
if (sbufBytesRemaining(src) >= 1) {
currentPidProfile->governor.min_throttle = sbufReadU8(src);
}
/* Load new values */
governorInitProfile(currentPidProfile);
break;
Expand Down

0 comments on commit e509c27

Please sign in to comment.