mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Make simulator read RC through real drone code
This commit is contained in:
@@ -9,5 +9,8 @@ class SBUS {
|
||||
public:
|
||||
SBUS(HardwareSerial& bus) {};
|
||||
void begin() {};
|
||||
bool read(int16_t* channels, bool* failsafe, bool* lostFrame) { joystickGet(); return true; }; // NOTE: on the hardware channels is uint16_t
|
||||
bool read(int16_t* channels, bool* failsafe, bool* lostFrame) { // NOTE: on the hardware channels is uint16_t
|
||||
joystickGet();
|
||||
return true;
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user