-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBUSBM_NOTIMER ... problem. #45
Comments
Your loop write a lot of data on the serial monitor at full speed .... and kills the processor ... Maybe you should try to only write on serial and/or update the sensor when there is a change in the data (see the ibus2PWM example) When you use a timer, the IBusBM::loop(void) in the library is called in an ISR context, but when you don't use the timer the loop is called by you in a "standard" context and it may explain the behavior of the test. |
Hello. |
Hello. |
Hello.
I tried on ESP32 Devkit v1 IBusServo and IBusSensor, they work ok together...until I enter...IBUSBM_NOTIMER.
At that moment the telemetry disappears.
Something can be done!
This is the code.
``#include <IBusBM.h>
// ================================== IBus Servo
IBusBM IBusServo;
HardwareSerial Serial_1(1);
// ================================ IBus Telemetry
IBusBM IBusSensor;
void setup()
{
Serial.begin(115200);
IBusServo.begin(Serial_1, IBUSBM_NOTIMER);
//IBusServo.begin(Serial_1);
Serial_1.begin(115200, SERIAL_8N1, 4, 15);
delay(500);
IBusSensor.begin(Serial2);
delay(500);
IBusSensor.addSensor(0x0b);
}
void loop()
{
IBusServo.loop(); // Call the Ibus loop to check for Ibus messages from the receiver
Serial.println(IBusServo.readChannel(0));
IBusSensor.setSensorMeasurement(1, 33);
}
The text was updated successfully, but these errors were encountered: