ardupilot/libraries/GCS_MAVLink
Peter Barker 45f7322af6 GCS_MAVLink: avoid catching up on sending messages when sending disrupted
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;
+    }
+
2020-10-12 13:48:15 +11:00
..
examples/routing GCS_MAVLink: move initialisation of serial and gcs to AP_Vehicle 2020-02-25 11:50:55 +11:00
.gitignore Updated MAVLink to 1.0.6 release. 2012-04-19 15:46:29 -04:00
ap_message.h GCS_MAVLink: add virtual send_winch_status 2020-08-07 21:55:07 +09:00
GCS_Common.cpp GCS_MAVLink: avoid catching up on sending messages when sending disrupted 2020-10-12 13:48:15 +11:00
GCS_DeviceOp.cpp GCS_MAVLink: add support for bank selection on SPI DEVICE_OPs 2020-08-06 12:41:35 +10:00
GCS_Dummy.h GCS_MAVLink: Update GCS_Dummy to use new AP_FWVersionDefine header 2020-10-07 19:32:12 +11:00
GCS_Fence.cpp GCS_Mavlink: report on fence limiting 2020-02-04 10:24:33 +09:00
GCS_FTP.cpp GCS_MAVLink: fixed alignment errors in FTP server 2020-07-07 10:23:00 +10:00
GCS_MAVLink.cpp GCS_MAVLink: allow private channels to also be active 2020-06-09 10:37:32 +10:00
GCS_MAVLink.h GCS_MAVLink: reserve another mavlink channel 2020-07-10 13:28:38 +10:00
GCS_Param.cpp GCS_MAVLink: invalidate param count on set of ENABLE param 2020-04-29 07:36:55 +10:00
GCS_Rally.cpp GCS_MAVLink: rearrange mission item handling code 2019-07-18 10:48:57 +09:00
GCS_serial_control.cpp GCS_MAVLink: fixed locking of mavlink in serial control 2020-09-08 09:01:16 +10:00
GCS_ServoRelay.cpp GCS_Common: handle command_long in GCS base class 2018-07-06 09:43:09 +10:00
GCS_Signing.cpp GCS_MAVLink: break out of loop statement once we have a result 2019-08-24 15:33:50 +10:00
GCS.cpp GCS_MAVLink: allow private channels to also be active 2020-06-09 10:37:32 +10:00
GCS.h GCS_MAVLink: move orderly rebooting code from GCS into AP_Vehicle 2020-09-29 18:07:59 +10:00
MAVLink_routing.cpp GCS_MAVLink: revert removal of private channel check when forwarding 2020-09-25 09:42:27 +10:00
MAVLink_routing.h GCS_MAVLink: correct encoding used for send_to_components 2019-11-26 12:10:12 +11:00
MissionItemProtocol_Fence.cpp GCS_MAVLink: create and use INTERNAL_ERROR macro so we get line numbers 2020-04-30 13:21:36 +10:00
MissionItemProtocol_Fence.h GCS_MAVLink: allow upload of fence using mission item protocol 2019-09-28 07:58:48 +09:00
MissionItemProtocol_Rally.cpp GCS_MAVLink: squelched rally-points-received message 2019-09-28 07:58:48 +09:00
MissionItemProtocol_Rally.h GCS_MAVLink: allow complete() call on subclasses to fail 2019-08-07 12:07:59 +10:00
MissionItemProtocol_Waypoints.cpp GCS_MAVLink: Remove redundant assignment to the command 2020-03-31 10:35:49 +11:00
MissionItemProtocol_Waypoints.h GCS_MAVLink: allow complete() call on subclasses to fail 2019-08-07 12:07:59 +10:00
MissionItemProtocol.cpp GCS_MAVLink: create and use INTERNAL_ERROR macro so we get line numbers 2020-04-30 13:21:36 +10:00
MissionItemProtocol.h GCS_MAVLink: allow upload of fence using mission item protocol 2019-09-28 07:58:48 +09:00