11 Commits

Author SHA1 Message Date
Oleg Kalachev
52819e403b Major rework of rc subsystem
Implement channels mapping calibration.
Store mapping in parameters.
Get rid of `controls` array and store control inputs in `controlRoll`, `controlPitch`, ... variables.
Move `channels` variable to rc.ino, channels are not involved when controled using mavlink.
'Neutral' values are renamed to 'zero' - more precise naming.
`controlsTime` is renamed to `controlTime`.
Use unsigned values for channels.
Make channel values in simulation more alike to real world: unsigned values in range [1000, 2000].
Send RC_CHANNELS_RAW instead of RC_CHANNELS_SCALED via mavlink
Don't send channels data via mavlink if rc is not used
2025-07-14 12:01:29 +03:00
Oleg Kalachev
43be27c43d Fix joystick work in simulation
Logic was broken as joystickGet never got called
2024-12-27 15:34:33 +03:00
Oleg Kalachev
28f6cfff60 Fix SBUS simulation logic
Don't consider zero values from not connected joystick
2024-12-23 04:04:00 +03:00
Oleg Kalachev
3cc3014ca0 Improve logic of passing channels data in simulated SBUS
Return the data the same way as on the real drone without touching channels global vairable
2024-12-23 02:04:22 +03:00
Oleg Kalachev
e993dde355 Update ESP32 Arduino Core to v3.0.3 2024-07-25 02:45:59 +03:00
Oleg Kalachev
fff7262d1b Minor fix for SBUS dummy for simulator 2024-03-23 09:20:08 +03:00
Oleg Kalachev
646fa46f6b Use FlixPeriph library for SBUS 2024-03-17 02:29:37 +03:00
Oleg Kalachev
ba6e63b50b Correctly set output parameters of simulated SBUS::read, minor name fix 2024-02-06 21:02:20 +03:00
Oleg Kalachev
f718af7f0e Support MAVLink usage in simulation 2024-01-31 12:10:18 +03:00
Oleg Kalachev
48ea797a47 Make simulator read RC through real drone code 2024-01-06 00:09:29 +03:00
Oleg Kalachev
f520b57abe Implement RC calibration, common for the real drone and the simulation 2024-01-02 11:54:09 +03:00