mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
14 lines
421 B
C++
14 lines
421 B
C++
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
|
|
// Repository: https://github.com/okalachev/flix
|
|
|
|
// SBUS library mock to make it possible to compile simulator with rc.ino
|
|
|
|
#include "joystick.h"
|
|
|
|
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
|
|
};
|