fix: MSG_MOVE_START_DESCEND never set DESCENDING flag

Only ASCENDING was cleared — the DESCENDING flag was never toggled,
so outgoing movement packets during flight descent had incorrect flags.
Also clears DESCENDING on start-ascend and stop-ascend for symmetry.

Replaces static heartbeat log counter with member variable (was shared
across instances and not thread-safe) and demotes to LOG_DEBUG.
This commit is contained in:
Kelsi 2026-03-29 18:28:49 -07:00
parent b0aa4445a0
commit 4e0e234ae9
2 changed files with 11 additions and 5 deletions

View file

@ -211,6 +211,7 @@ private:
uint32_t fallStartMs_ = 0;
// Heartbeat timing
int heartbeatLogCount_ = 0; // periodic position audit counter
float timeSinceLastMoveHeartbeat_ = 0.0f;
float moveHeartbeatInterval_ = 0.5f;
uint32_t lastHeartbeatSendTimeMs_ = 0;