APM:Libraries
|
#include <SIM_FlightAxis.h>
Classes | |
struct | keytable |
struct | state |
Public Member Functions | |
FlightAxis (const char *home_str, const char *frame_str) | |
void | update (const struct sitl_input &input) |
Public Member Functions inherited from SITL::Aircraft | |
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) |
virtual void | update (const struct sitl_input &input)=0 |
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 Public Member Functions inherited from SITL::Aircraft | |
static double | rand_normal (double mean, double stddev) |
static bool | parse_home (const char *home_str, Location &loc, float &yaw_degrees) |
Public Attributes | |
struct SITL::FlightAxis::state | state |
struct SITL::FlightAxis::keytable | keytable [num_keys] |
Static Public Attributes | |
static const uint16_t | num_keys = sizeof(state)/sizeof(double) |
Private Member Functions | |
char * | soap_request (const char *action, const char *fmt,...) |
void | exchange_data (const struct sitl_input &input) |
void | parse_reply (const char *reply) |
void | update_loop (void) |
void | report_FPS (void) |
Static Private Member Functions | |
static void * | update_thread (void *arg) |
Private Attributes | |
struct sitl_input | last_input |
double | average_frame_time_s |
double | extrapolated_s |
double | initial_time_s |
double | last_time_s |
bool | heli_demix |
bool | rev4_servos |
bool | controller_started |
uint64_t | frame_counter |
uint64_t | activation_frame_counter |
uint64_t | socket_frame_counter |
uint64_t | last_socket_frame_counter |
double | last_frame_count_s |
Vector3f | position_offset |
Vector3f | last_velocity_ef |
const char * | controller_ip = "127.0.0.1" |
uint16_t | controller_port = 18083 |
pthread_t | thread |
AP_HAL::Semaphore * | mutex |
Definition at line 30 of file SIM_FlightAxis.h.
FlightAxis::FlightAxis | ( | const char * | home_str, |
const char * | frame_str | ||
) |
Definition at line 75 of file SIM_FlightAxis.cpp.
Referenced by create().
|
inlinestatic |
|
private |
Definition at line 244 of file SIM_FlightAxis.cpp.
Referenced by update_loop().
|
private |
Definition at line 135 of file SIM_FlightAxis.cpp.
Referenced by exchange_data().
|
private |
Definition at line 475 of file SIM_FlightAxis.cpp.
Referenced by update().
|
private |
Definition at line 170 of file SIM_FlightAxis.cpp.
Referenced by exchange_data().
void FlightAxis::update | ( | const struct sitl_input & | input | ) |
|
private |
Definition at line 121 of file SIM_FlightAxis.cpp.
Referenced by update_thread().
|
staticprivate |
Definition at line 102 of file SIM_FlightAxis.cpp.
Referenced by FlightAxis().
|
private |
Definition at line 173 of file SIM_FlightAxis.h.
Referenced by exchange_data().
|
private |
Definition at line 165 of file SIM_FlightAxis.h.
Referenced by exchange_data(), report_FPS(), and update().
|
private |
Definition at line 180 of file SIM_FlightAxis.h.
Referenced by exchange_data(), FlightAxis(), and soap_request().
|
private |
Definition at line 181 of file SIM_FlightAxis.h.
Referenced by soap_request().
|
private |
Definition at line 171 of file SIM_FlightAxis.h.
Referenced by exchange_data(), and parse_reply().
|
private |
Definition at line 166 of file SIM_FlightAxis.h.
Referenced by update().
|
private |
Definition at line 172 of file SIM_FlightAxis.h.
Referenced by exchange_data(), and report_FPS().
|
private |
Definition at line 169 of file SIM_FlightAxis.h.
Referenced by exchange_data(), and FlightAxis().
|
private |
Definition at line 167 of file SIM_FlightAxis.h.
Referenced by update().
|
private |
Definition at line 176 of file SIM_FlightAxis.h.
Referenced by report_FPS().
|
private |
Definition at line 163 of file SIM_FlightAxis.h.
Referenced by update(), and update_loop().
|
private |
Definition at line 175 of file SIM_FlightAxis.h.
Referenced by report_FPS().
|
private |
Definition at line 168 of file SIM_FlightAxis.h.
Referenced by update().
|
private |
Definition at line 178 of file SIM_FlightAxis.h.
Referenced by update().
|
private |
Definition at line 184 of file SIM_FlightAxis.h.
Referenced by exchange_data(), FlightAxis(), update(), and update_loop().
|
static |
Definition at line 92 of file SIM_FlightAxis.h.
Referenced by parse_reply().
|
private |
Definition at line 177 of file SIM_FlightAxis.h.
Referenced by update().
|
private |
Definition at line 170 of file SIM_FlightAxis.h.
Referenced by exchange_data(), and FlightAxis().
|
private |
Definition at line 174 of file SIM_FlightAxis.h.
Referenced by exchange_data(), and report_FPS().
|
private |
Definition at line 183 of file SIM_FlightAxis.h.
Referenced by FlightAxis().