SBUS2-Telemetry icon indicating copy to clipboard operation
SBUS2-Telemetry copied to clipboard

SBUS_Ready() forever true

Open ericlangel opened this issue 3 years ago • 4 comments

If the SBUS(2) Signal is broken (wire broken, disconnected or receiver unpowered) the SBUS_Ready() function would return true forever.

There should be a reset of sbus_ready and telemetry_ready.

The Functions will be false until a new SBUS(2) Frame is received

ericlangel avatar Sep 02 '20 08:09 ericlangel

same for SBUS2_Ready()

ericlangel avatar Sep 02 '20 08:09 ericlangel

done

ericlangel avatar Oct 13 '20 06:10 ericlangel

issue reopen because:

SBUS2_Ready() also reset SBUS_Ready() -> this should be handled somehow

an always resetting isn't a good solution sometimes you want to trigger on SBUS_Ready at different lines of code, but reset it on an special line

so there should be a SBUS_Ready(bool reset) to decide if you want to reset or not

same for SBUS2_Ready()

ericlangel avatar Dec 04 '20 08:12 ericlangel

new functions:

SBUS_Ready(bool reset) and SBUS2_Ready(bool reset) -> true = reset / false = not reset use false on your own risk

SBUS_Ready() and SBUS2_Ready() do reset the Flag on every call

Have to test it

BrushlessPower avatar Jul 21 '21 07:07 BrushlessPower