Skip to content

Commit

Permalink
Hack more - remove new inertia bytes from the MSPs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Jan 9, 2025
1 parent 3bc1832 commit 6936489
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/msp/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1842,9 +1842,6 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
sbufWriteU8(dst, currentPidProfile->bterm_cutoff[0]);
sbufWriteU8(dst, currentPidProfile->bterm_cutoff[1]);
sbufWriteU8(dst, currentPidProfile->bterm_cutoff[2]);
/* Inertia precomps */
sbufWriteU8(dst, currentPidProfile->yaw_inertia_precomp_gain);
sbufWriteU8(dst, currentPidProfile->yaw_inertia_precomp_cutoff);
break;

case MSP_RESCUE_PROFILE:
Expand Down Expand Up @@ -2652,11 +2649,6 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
currentPidProfile->bterm_cutoff[1] = sbufReadU8(src);
currentPidProfile->bterm_cutoff[2] = sbufReadU8(src);
}
/* Inertia precomps */
if (sbufBytesRemaining(src) >= 2) {
currentPidProfile->yaw_inertia_precomp_gain = sbufReadU8(src);
currentPidProfile->yaw_inertia_precomp_cutoff = sbufReadU8(src);
}
/* Load new values */
pidInitProfile(currentPidProfile);
break;
Expand Down

0 comments on commit 6936489

Please sign in to comment.