41 lines
653 B
Arduino
41 lines
653 B
Arduino
|
|
||
|
|
||
|
// 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);
|
||
|
}
|
||
|
}*/
|