Browse Source
The code here was never meant to maintain an "average" streamrate. It was designed so that we would maintain a consistent clock in the face of minor scheduling anomalies (like an EKF fusion step). The way this is written, however, makes us spit out a message for each of the intervals we missed - clearly not intended behaviour. This was tested by inserting the following code: void GCS_MAVLINK::update_send() { + const uint32_t xnow = AP_HAL::millis(); + if (xnow > 10000 && + xnow < 20000) { + return; + } +zr-v5.1
1 changed files with 18 additions and 3 deletions
Loading…
Reference in new issue