SBUSのcppとhppだけ(フォーク)
Dependents: optWingforHAPS_Eigen hexaTest_Eigen
SBUS.hpp
00001 #ifndef _SBUS_ 00002 #define _SBUS_ 00003 #define _SBUS_ 00004 00005 #include "mbed.h" 00006 00007 class SBUS 00008 { 00009 public: 00010 SBUS(PinName tx, PinName rx); 00011 int16_t getData(uint8_t ch); 00012 int getStickVal(int axis); 00013 int getSwitchVal(int parm); 00014 bool failSafe; 00015 00016 private: 00017 RawSerial sbus_; 00018 void sbusIrqRx (); 00019 int sbusIndex; 00020 unsigned int rcChannel[18]; 00021 long map(long x, long in_min, long in_max, long out_min, long out_max); // From:Arduino.h 00022 }; 00023 00024 #endif
Generated on Wed Jul 13 2022 13:01:11 by 1.7.2