Hello,
I am working on a basic drone project with teensy 3.6. Just started and try to read values from Radiolink at9s pro. I use futaba sbus example and want to see the values of first 4 channels of the transmitter. But according to a youtube channel, I should observe the values in serial monitor and plotter (https://www.youtube.com/watch?v=98MwXc7FuMk this is Turkish but you can see 17:20-19:20).He is using arduino mega and I am trying to do the exact same thing with using teensy 3.6. But when I open serial plotter or monitor nothing happens. Usb Type:Serial and Port: COM6 Serial (Teensy 3.6).
Here is my code:
Thank you and sorry for the language.
I am working on a basic drone project with teensy 3.6. Just started and try to read values from Radiolink at9s pro. I use futaba sbus example and want to see the values of first 4 channels of the transmitter. But according to a youtube channel, I should observe the values in serial monitor and plotter (https://www.youtube.com/watch?v=98MwXc7FuMk this is Turkish but you can see 17:20-19:20).He is using arduino mega and I am trying to do the exact same thing with using teensy 3.6. But when I open serial plotter or monitor nothing happens. Usb Type:Serial and Port: COM6 Serial (Teensy 3.6).
Here is my code:
Code:
#include <FUTABA_SBUS.h>
FUTABA_SBUS sBus;
void setup(){
sBus.begin();
Serial.begin(115200);
}
void loop(){
sBus.FeedLine();
if (sBus.toChannels == 1){
sBus.UpdateServos();
sBus.UpdateChannels();
sBus.toChannels = 0;
Serial.print(sBus.channels[0]);
Serial.print(",");
Serial.print(sBus.channels[1]);
Serial.print(",");
Serial.print(sBus.channels[2]);
Serial.print(",");
Serial.print(sBus.channels[3]);
Serial.println();
}
}
Thank you and sorry for the language.