DefaultReceiver/DefaultReceiver.ino

50 lines
654 B
Arduino
Raw Normal View History

2023-08-25 09:52:15 +02:00
#include "structsAndDefines.h"
2022-08-21 14:10:45 +02:00
#define myId 0x01
#define myChannel 1
2023-08-25 09:52:15 +02:00
#define jNAME "DefaultReceiver"
2022-08-21 14:10:45 +02:00
#define jMPU
#define jCOMP
#define jGNSS
2023-08-25 09:52:15 +02:00
#define jOUT
const byte jOutPins[] = {13, 12, 14, 27, 26, 25, 33, 32, 15 /*,2*/};
2022-08-21 14:10:45 +02:00
2023-08-25 09:52:15 +02:00
//#define debug
2022-08-21 14:10:45 +02:00
ChannelDesc buttonDesc[32] = {
2023-08-25 09:52:15 +02:00
{BUTTONswitch,"arm"}
2022-08-21 14:10:45 +02:00
};
ChannelDesc analogDesc[12] = {
2023-08-25 09:52:15 +02:00
{ANALOGused, "throttle"},
{ANALOGused, "yaw"},
2022-08-21 14:10:45 +02:00
2023-08-25 09:52:15 +02:00
{ANALOGused, "pitch"},
{ANALOGused, "roll"},
};
2022-08-21 14:10:45 +02:00
void onConnect(){
}
void onDisconnect(bool expected){
}
#include "juPadReceiver.h"
void onData(){
//RCdata
//RCgetBTN(0-31)
//RCgetAnalog(0-11)
}
void setup(){
jSetup();
}
void loop(){
jLoop();
2023-08-25 09:52:15 +02:00
2022-08-21 14:10:45 +02:00
}