bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
quadrotor_rc_simulation::RCCommand Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ clamped()

The command with the throttle in [0, 1] and the sticks in [-1, 1].

Member Data Documentation

◆ armed

the motors spin only when armed

◆ pitch

[-1, 1]: + flies forward, nose down

◆ roll

[-1, 1]: + flies to the right, right side down

◆ throttle

[0, 1]: 0 the motors off, 1 full thrust

◆ yaw

[-1, 1]: + turns to the right


The documentation for this struct was generated from the following file: