APM:Libraries
|
#include <SIM_Helicopter.h>
Public Member Functions | |
Helicopter (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_types { HELI_FRAME_CONVENTIONAL, HELI_FRAME_DUAL, HELI_FRAME_COMPOUND } |
Private Attributes | |
float | terminal_rotation_rate = 4*radians(360.0f) |
float | hover_throttle = 0.65f |
float | terminal_velocity = 40 |
float | hover_lean = 3.0f |
float | yaw_zero = 0.1f |
float | rotor_rot_accel = radians(20) |
float | roll_rate_max = radians(1400) |
float | pitch_rate_max = radians(1400) |
float | yaw_rate_max = radians(1400) |
float | rsc_setpoint = 0.8f |
float | thrust_scale |
float | tail_thrust_scale |
enum SITL::Helicopter::frame_types | frame_type = HELI_FRAME_CONVENTIONAL |
bool | gas_heli = false |
Definition at line 28 of file SIM_Helicopter.h.
|
private |
Enumerator | |
---|---|
HELI_FRAME_CONVENTIONAL | |
HELI_FRAME_DUAL | |
HELI_FRAME_COMPOUND |
Definition at line 53 of file SIM_Helicopter.h.
SITL::Helicopter::Helicopter | ( | const char * | home_str, |
const char * | frame_str | ||
) |
Definition at line 25 of file SIM_Helicopter.cpp.
Referenced by create().
|
inlinestatic |
|
virtual |
Implements SITL::Aircraft.
Definition at line 56 of file SIM_Helicopter.cpp.
|
private |
Referenced by Helicopter(), and update().
|
private |
Definition at line 58 of file SIM_Helicopter.h.
Referenced by Helicopter(), and update().
|
private |
Definition at line 44 of file SIM_Helicopter.h.
Referenced by Helicopter().
|
private |
Definition at line 42 of file SIM_Helicopter.h.
Referenced by Helicopter().
|
private |
Definition at line 48 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 47 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 46 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 50 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 52 of file SIM_Helicopter.h.
Referenced by Helicopter(), and update().
|
private |
Definition at line 41 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 43 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 51 of file SIM_Helicopter.h.
Referenced by Helicopter(), and update().
|
private |
Definition at line 49 of file SIM_Helicopter.h.
Referenced by update().
|
private |
Definition at line 45 of file SIM_Helicopter.h.
Referenced by Helicopter().