sbus
sbus copied to clipboard
big fluctuations in the received values
i have tried the following example
#include <sbus.h>
// used pins
#define SBUS_PIN 13 // D3
SBUS sbus;
void setup() {
Serial.begin(115200);
sbus.begin(SBUS_PIN, sbusBlocking);
}
void loop() {
if (!sbus.waitFrame()) { Serial.println("Timeout!"); } else { Serial.println(sbus.getChannel(3)); } if (sbus.signalLossActive()) Serial.print("SIGNAL_LOSS "); if (sbus.failsafeActive()) Serial.print("FAILSAFE"); }
and the values i get back looks like this, why i have such big fluctuations, i have done nothing on the sender, can you help me.
1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 917 1500 1500 1500 1500 1500 1500 1500 1500 917 1500 1500 1500 1500 1500 957
I have same problem.
I am also seeing the same thing.
Same problem.
Also having this problem, was anyone able to fix this?
Hi I see the same, please someone fix this. It's the only lib I found, that does need an inverter - maybe that's why it does not work.
Same problem here. Blocking or non blocking usage. Without a hardware UART's buffer, combined with a hardware inverter in front of it you will always miss too many frames to have a stable reading.