|
APM:Libraries
|
#include <SIM_Frame.h>
Public Member Functions | |
| Frame (const char *_name, uint8_t _num_motors, Motor *_motors) | |
| void | init (float mass, float hover_throttle, float terminal_velocity, float terminal_rotation_rate) |
| void | calculate_forces (const Aircraft &aircraft, const Aircraft::sitl_input &input, Vector3f &rot_accel, Vector3f &body_accel) |
Static Public Member Functions | |
| static Frame * | find_frame (const char *name) |
Public Attributes | |
| const char * | name |
| uint8_t | num_motors |
| Motor * | motors |
| float | terminal_velocity |
| float | terminal_rotation_rate |
| float | thrust_scale |
| uint8_t | motor_offset |
Definition at line 29 of file SIM_Frame.h.
|
inline |
| void Frame::calculate_forces | ( | const Aircraft & | aircraft, |
| const Aircraft::sitl_input & | input, | ||
| Vector3f & | rot_accel, | ||
| Vector3f & | body_accel | ||
| ) |
Definition at line 204 of file SIM_Frame.cpp.
Referenced by SITL::MultiCopter::calculate_forces(), Frame(), and SITL::QuadPlane::update().
|
static |
Definition at line 192 of file SIM_Frame.cpp.
Referenced by Frame(), SITL::MultiCopter::MultiCopter(), and SITL::QuadPlane::QuadPlane().
| void Frame::init | ( | float | mass, |
| float | hover_throttle, | ||
| float | terminal_velocity, | ||
| float | terminal_rotation_rate | ||
| ) |
Definition at line 177 of file SIM_Frame.cpp.
Referenced by Frame(), SITL::MultiCopter::MultiCopter(), and SITL::QuadPlane::QuadPlane().
| uint8_t SITL::Frame::motor_offset |
Definition at line 57 of file SIM_Frame.h.
Referenced by calculate_forces(), and SITL::QuadPlane::QuadPlane().
| Motor* SITL::Frame::motors |
Definition at line 33 of file SIM_Frame.h.
Referenced by calculate_forces(), and SITL::QuadPlane::QuadPlane().
| const char* SITL::Frame::name |
Definition at line 31 of file SIM_Frame.h.
| uint8_t SITL::Frame::num_motors |
Definition at line 32 of file SIM_Frame.h.
Referenced by calculate_forces(), and init().
| float SITL::Frame::terminal_rotation_rate |
Definition at line 55 of file SIM_Frame.h.
Referenced by calculate_forces(), Frame(), and init().
| float SITL::Frame::terminal_velocity |
Definition at line 54 of file SIM_Frame.h.
Referenced by calculate_forces(), Frame(), and init().
| float SITL::Frame::thrust_scale |
Definition at line 56 of file SIM_Frame.h.
Referenced by calculate_forces(), and init().
1.8.13