mirror of https://github.com/ArduPilot/ardupilot
6e9756ff79
Now instead of requiring the buffer to fill completely before we can detect it is not draining, we use a time based mechanism to detect when none of the first few bytes are transmitted after sitting in our buffer a half second or more after flow control is enabled. This huristic is reliable only for the first several chracters because we believe that the radio must still have plenty of room in it's own buffers at that time even if it is not able to transmit them to the other radio yet. Note that the original algorithm made the same assumption. The new algorithm is especially helpful for cases where only keepalive messages are transmitted before other packets can be requested by the GCS. In this situation, the original code required almost 2 minutes to disable flow control and allow communication with the GCS. |
||
---|---|---|
.. | ||
examples/simple | ||
AP_HAL_PX4.h | ||
AP_HAL_PX4_Main.h | ||
AP_HAL_PX4_Namespace.h | ||
AnalogIn.cpp | ||
AnalogIn.h | ||
GPIO.cpp | ||
GPIO.h | ||
HAL_PX4_Class.cpp | ||
HAL_PX4_Class.h | ||
NSHShellStream.cpp | ||
RCInput.cpp | ||
RCInput.h | ||
RCOutput.cpp | ||
RCOutput.h | ||
Scheduler.cpp | ||
Scheduler.h | ||
Storage.cpp | ||
Storage.h | ||
UARTDriver.cpp | ||
UARTDriver.h | ||
Util.cpp | ||
Util.h | ||
px4_param.cpp |