JuReceiver/JuReceiver.ino
2023-09-10 15:33:34 +02:00

40 lines
653 B
C++

// RC Config
#define myId 0x01
#define myChannel 1
#define jName "DefaultReceiver"
// activate System-Features
#define jMPU6050
#define jCOMP
#define jGNSS
#define debug true
// RC lib
#include "juRCReceiver.h"
void onConnect() {}
void onDisconnect(bool expected) {}
void setup() {
// jSetOnConnect(onConnect);
// jSetOnDisconnect(onDisconnect);
Serial.begin(115200);
Serial.println("setup");
delay(1000);
jSetup();
}
void loop() {
jSensorLoop();
// fly
}
/*void loop1() {
jRadioLoop();
if (rc_serial_available()) {
String got = rc_serial_read();
rc_serial_write("got: " + got);
}
}*/