You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2021. It is now read-only.
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.
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