APM:Libraries
|
#include <SIM_Multicopter.h>
Public Member Functions | |
MultiCopter (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 |
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) |
Protected Member Functions | |
void | calculate_forces (const struct sitl_input &input, Vector3f &rot_accel, Vector3f &body_accel) |
float | gross_mass () const override |
![]() | |
float | ground_height_difference () const |
virtual bool | on_ground () const |
float | hagl () const |
void | update_position (void) |
void | update_mag_field_bf (void) |
void | time_advance () |
void | setup_frame_time (float rate, float speedup) |
void | adjust_frame_time (float rate) |
void | sync_frame_time (void) |
void | add_noise (float throttle) |
uint64_t | get_wall_time_us (void) const |
void | update_dynamics (const Vector3f &rot_accel) |
void | update_wind (const struct sitl_input &input) |
float | filtered_idx (float v, uint8_t idx) |
float | filtered_servo_angle (const struct sitl_input &input, uint8_t idx) |
float | filtered_servo_range (const struct sitl_input &input, uint8_t idx) |
void | extrapolate_sensors (float delta_time) |
Additional Inherited Members | |
![]() | |
enum | { GROUND_BEHAVIOR_NONE = 0, GROUND_BEHAVIOR_NO_MOVEMENT, GROUND_BEHAVIOR_FWD_ONLY, GROUND_BEHAVIOR_TAILSITTER } |
Definition at line 34 of file SIM_Multicopter.h.
MultiCopter::MultiCopter | ( | const char * | home_str, |
const char * | frame_str | ||
) |
Definition at line 26 of file SIM_Multicopter.cpp.
Referenced by create().
|
protected |
Definition at line 51 of file SIM_Multicopter.cpp.
Referenced by create(), and update().
|
inlinestatic |
|
overrideprotectedvirtual |
Reimplemented from SITL::Aircraft.
Definition at line 85 of file SIM_Multicopter.cpp.
Referenced by MultiCopter().
|
virtual |
Implements SITL::Aircraft.
Definition at line 59 of file SIM_Multicopter.cpp.
|
protected |
Definition at line 49 of file SIM_Multicopter.h.
Referenced by calculate_forces(), and MultiCopter().
|
protected |
Definition at line 53 of file SIM_Multicopter.h.
Referenced by gross_mass(), MultiCopter(), and update().
|
protected |
Definition at line 54 of file SIM_Multicopter.h.
Referenced by update().
|
protected |
Definition at line 52 of file SIM_Multicopter.h.
Referenced by gross_mass(), and update().