|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| class | SimulatedQuadrotor |
| struct | Phase |
| class | ScriptedPilot |
| struct | Options |
| class | SIM_RCLink |
| The radio link to a simulated quadrotor: the transmitter end sends commands, and the simulated receiver reads the latest one. More... | |
| class | QuadrotorFlightController |
| The flight controller of a toy quadrotor in angle mode: it turns the sticks of an RCCommand into rotor speeds. More... | |
| struct | RCCommand |
| 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... | |
| class | QuadrotorDynamics |
| The QuadrotorDynamics class. Implements quadrotor dynamics The implementation of this class follows the System Modeling section at https://wilselby.com/research/arducopter/modeling/ and https://scholarsarchive.byu.edu/cgi/viewcontent.cgi?article=2324&context=facpub The quadrotor is assumed to have four rotors Each rotor consists of a brushless DC motor and rotor with a fixed pitch. It is assumed that the quadrotor can move in 6 degrees of freedom; 3-translational and 3-rotational, The motion of the quadrotor is controlled via 4 inputs namely the speeds of the 4 motors. The quadrotor model that this class implements assumes the following: More... | |
| struct | QuadrotorDynamicsConfig |
| class | SysState |
| SysState utility class describing the state of a system. More... | |
Typedefs | |
| using | real_t |
| real_t | |
| using | RealColVec3d |
| 3D column vector | |
| using | RealVec |
| double precision floating point vector | |
Functions | |
| QuadrotorDynamicsConfig | quadrotor_config () |
| SysState< 12 > | on_the_ground () |
| std::vector< Phase > | script () |
| Options | parse (int argc, char **argv) |
| std::string | status_line (const SimulatedQuadrotor &drone, real_t time, const std::string &phase) |
| int | run (const Options &options) |
| real_t | clean (real_t x, real_t zero=5.0e-4) |
| x, or 0 when \(|x| <\) zero | |
Variables | |
| const real_t | PI = bitsim::consts::maths::PI |
| const real_t | DEG = PI / 180.0 |
| const real_t | STEP_SIZE = 0.001 |
| const real_t | SEND_PERIOD = 0.02 |
| const real_t | PRINT_PERIOD = 0.5 |
| const real_t | RENDER_RATE = 30.0 |
| const real_t | RECORD_RATE = 10.0 |
| const real_t | HARD_LANDING = 1.0 |
| const real_t | FAILSAFE_AT = 7.0 |
| using bitsim::real_t |
| using bitsim::RealColVec3d |
3D column vector
| using bitsim::RealVec |
double precision floating point vector
| real_t bitsim::utils::io::clean | ( | real_t | x, |
| real_t | zero = 5.0e-4 ) |
x, or 0 when \(|x| <\) zero
| SysState< 12 > quadrotor_rc_simulation::on_the_ground | ( | ) |
| Options quadrotor_rc_simulation::parse | ( | int | argc, |
| char ** | argv ) |
| QuadrotorDynamicsConfig quadrotor_rc_simulation::quadrotor_config | ( | ) |
| int quadrotor_rc_simulation::run | ( | const Options & | options | ) |
| std::vector< Phase > quadrotor_rc_simulation::script | ( | ) |
| std::string quadrotor_rc_simulation::status_line | ( | const SimulatedQuadrotor & | drone, |
| real_t | time, | ||
| const std::string & | phase ) |
| const real_t quadrotor_rc_simulation::FAILSAFE_AT = 7.0 |
| const real_t quadrotor_rc_simulation::HARD_LANDING = 1.0 |
| const real_t quadrotor_rc_simulation::PI = bitsim::consts::maths::PI |
| const real_t quadrotor_rc_simulation::PRINT_PERIOD = 0.5 |
| const real_t quadrotor_rc_simulation::RECORD_RATE = 10.0 |
| const real_t quadrotor_rc_simulation::RENDER_RATE = 30.0 |
| const real_t quadrotor_rc_simulation::SEND_PERIOD = 0.02 |
| const real_t quadrotor_rc_simulation::STEP_SIZE = 0.001 |