Still receiving data after controller shuts off
rcodddow opened this issue · 2 comments
Im using the Fly Sky FS-i6x with receiver. After the IBusBM library is initialized the cnt_rec value stays at zero until the controller is turned on and all switches are up and the throttle is set low. The problem is after the first servo message is received and the controller is turned off IBusBM still increments cnt_rec.
After making most private variables public it really seems that the receiver is continually pushing through the last servo message over and over. The weird thing is the checksum values seem to change.
I tried reseting IBUSBM using the begin function I a 2.5Hz loop but this just cause more problems.
Any suggestions ?
@rcodddow , I've been using the same controller/receiver combination, and the receiver does continue to send the last received values until the transmitter turns back on or the receiver is power-cycled. This same behavior occurs with a PPM based signal, and you can pull out a scope and watch the signal after having powered the transmitter on. For what it's worth though, I do believe there are some failsafe values that you can set inside the controller menu, but I haven't had to use them just yet.
In any case, this isn't an issue with the IBusBM
library, so I think this issue can be closed.
When setting CH3 (throttle) failsafe on FS-I6 to -100%
then after turning the transmitter off the data on channel 3 is 9192
= 0x23e8
instead of 1000
= 0x03e8
.
When setting CH3 (throttle) failsafe on FS-I6 to -12%
then after turning the transmitter off the data on channel 3 is 9634
= 0x25a2
instead of 1442
= 0x05a2
(1500 - 500*12% = 1440 but 1442 is -12% as well).
Seems as FS-IA6B receiver in case of failsafe sets bit 5
of the high byte and:
is_failsafe_activated = channel_value & 0x2000;
can be used to check if failsafe has occured.