mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
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
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* `acc` *(Vector)* — данные с акселерометра, *м/с<sup>2</sup>*.
|
||||
* `rates` *(Vector)* — отфильтрованные угловые скорости, *рад/с*.
|
||||
* `attitude` *(Quaternion)* — оценка ориентации (положения) дрона.
|
||||
* `controls` *(float[])* — команды управления от пилота, в диапазоне [-1, 1].
|
||||
* `controlRoll`, `controlPitch`, ... *(float[])* — команды управления от пилота, в диапазоне [-1, 1].
|
||||
* `motors` *(float[])* — выходные сигналы на моторы, в диапазоне [0, 1].
|
||||
|
||||
## Исходные файлы
|
||||
|
Reference in New Issue
Block a user