APM:Libraries
|
#include <SIM_SingleCopter.h>
Public Member Functions | |
SingleCopter (const char *home_str, const char *frame_str) | |
void | update (const struct sitl_input &input) |
![]() | |
Aircraft (const char *home_str, const char *frame_str) | |
void | set_speedup (float speedup) |
void | set_instance (uint8_t _instance) |
void | set_autotest_dir (const char *_autotest_dir) |
virtual void | set_interface_ports (const char *address, const int port_in, const int port_out) |
void | fill_fdm (struct sitl_fdm &fdm) |
void | smooth_sensors (void) |
float | get_rate_hz (void) const |
const Vector3f & | get_gyro (void) const |
const Vector3f & | get_velocity_ef (void) const |
const Vector3f & | get_velocity_air_ef (void) const |
const Matrix3f & | get_dcm (void) const |
const Vector3f & | get_mag_field_bf (void) const |
virtual float | gross_mass () const |
const Location & | get_location () const |
const Vector3f & | get_position () const |
void | get_attitude (Quaternion &attitude) const |
Static Public Member Functions | |
static Aircraft * | create (const char *home_str, const char *frame_str) |
![]() | |
static double | rand_normal (double mean, double stddev) |
static bool | parse_home (const char *home_str, Location &loc, float &yaw_degrees) |
Private Types | |
enum | { FRAME_SINGLE, FRAME_COAX } |
Private Attributes | |
float | terminal_rotation_rate = 4*radians(360.0f) |
float | hover_throttle = 0.65f |
float | terminal_velocity = 40 |
float | rotor_rot_accel = radians(20) * AP_MOTORS_MATRIX_YAW_FACTOR_CW |
float | roll_rate_max = radians(700) |
float | pitch_rate_max = radians(700) |
float | yaw_rate_max = radians(700) |
float | thrust_scale |
enum SITL::SingleCopter:: { ... } | frame_type |
Definition at line 29 of file SIM_SingleCopter.h.
|
private |
Enumerator | |
---|---|
FRAME_SINGLE | |
FRAME_COAX |
Definition at line 51 of file SIM_SingleCopter.h.
SingleCopter::SingleCopter | ( | const char * | home_str, |
const char * | frame_str | ||
) |
Definition at line 25 of file SIM_SingleCopter.cpp.
Referenced by create().
|
inlinestatic |
|
virtual |
Implements SITL::Aircraft.
Definition at line 47 of file SIM_SingleCopter.cpp.
enum { ... } SITL::SingleCopter::frame_type |
Referenced by SingleCopter(), and update().
|
private |
Definition at line 43 of file SIM_SingleCopter.h.
Referenced by SingleCopter().
|
private |
Definition at line 47 of file SIM_SingleCopter.h.
Referenced by update().
|
private |
Definition at line 46 of file SIM_SingleCopter.h.
Referenced by update().
|
private |
Definition at line 45 of file SIM_SingleCopter.h.
Referenced by update().
|
private |
Definition at line 42 of file SIM_SingleCopter.h.
Referenced by update().
|
private |
Definition at line 44 of file SIM_SingleCopter.h.
Referenced by update().
|
private |
Definition at line 49 of file SIM_SingleCopter.h.
Referenced by SingleCopter(), and update().
|
private |
Definition at line 48 of file SIM_SingleCopter.h.
Referenced by update().