|
bitsim
Model, simulate, estimate and control robots in C++
|
What the sticks of a radio transmitter for a quadrotor say, as a toy drone's transmitter sends them: the throttle and three sticks, and whether the motors are armed. More...
#include <rc_command.h>
Public Member Functions | |
| RCCommand | clamped () const noexcept |
| The command with the throttle in [0, 1] and the sticks in [-1, 1]. | |
Public Attributes | |
| real_t | throttle {0.0} |
| [0, 1]: 0 the motors off, 1 full thrust | |
| real_t | yaw {0.0} |
| [-1, 1]: + turns to the right | |
| real_t | pitch {0.0} |
| [-1, 1]: + flies forward, nose down | |
| real_t | roll {0.0} |
| [-1, 1]: + flies to the right, right side down | |
| bool | armed {false} |
| the motors spin only when armed | |
What the sticks of a radio transmitter for a quadrotor say, as a toy drone's transmitter sends them: the throttle and three sticks, and whether the motors are armed.
The sticks follow the usual mode 2 convention: pushing pitch forward flies forward, roll to the right flies to the right, and yaw to the right turns clockwise seen from above.
|
inlinenoexcept |
The command with the throttle in [0, 1] and the sticks in [-1, 1].
| bool bitsim::control::RCCommand::armed {false} |
the motors spin only when armed
[-1, 1]: + flies forward, nose down
[-1, 1]: + flies to the right, right side down
[0, 1]: 0 the motors off, 1 full thrust
[-1, 1]: + turns to the right