APM:Libraries
|
#include <SIM_JSBSim.h>
Public Member Functions | |
JSBSim (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_NORMAL, FRAME_ELEVON, FRAME_VTAIL } |
Private Member Functions | |
bool | create_templates (void) |
bool | start_JSBSim (void) |
bool | open_control_socket (void) |
bool | open_fdm_socket (void) |
void | send_servos (const struct sitl_input &input) |
void | recv_fdm (const struct sitl_input &input) |
void | check_stdout (void) |
bool | expect (const char *str) |
void | drain_control_socket () |
Private Attributes | |
SocketAPM | sock_control |
SocketAPM | sock_fgfdm |
bool | initialised |
uint16_t | control_port |
uint16_t | fdm_port |
char * | jsbsim_script |
char * | jsbsim_fgout |
int | jsbsim_stdout |
const char * | jsbsim_model = "Rascal" |
bool | created_templates |
bool | started_jsbsim |
bool | opened_control_socket |
bool | opened_fdm_socket |
enum SITL::JSBSim:: { ... } | frame |
Definition at line 30 of file SIM_JSBSim.h.
|
private |
Enumerator | |
---|---|
FRAME_NORMAL | |
FRAME_ELEVON | |
FRAME_VTAIL |
Definition at line 65 of file SIM_JSBSim.h.
SITL::JSBSim::JSBSim | ( | const char * | home_str, |
const char * | frame_str | ||
) |
Definition at line 39 of file SIM_JSBSim.cpp.
Referenced by create().
|
private |
Definition at line 242 of file SIM_JSBSim.cpp.
Referenced by open_fdm_socket(), recv_fdm(), and start_JSBSim().
|
inlinestatic |
|
private |
Definition at line 68 of file SIM_JSBSim.cpp.
Referenced by update().
|
private |
Definition at line 435 of file SIM_JSBSim.cpp.
Referenced by update().
|
private |
Definition at line 256 of file SIM_JSBSim.cpp.
Referenced by start_JSBSim().
|
private |
Definition at line 279 of file SIM_JSBSim.cpp.
Referenced by start_JSBSim(), and update().
|
private |
Definition at line 303 of file SIM_JSBSim.cpp.
Referenced by start_JSBSim(), and update().
|
private |
Definition at line 399 of file SIM_JSBSim.cpp.
Referenced by update().
|
private |
Definition at line 322 of file SIM_JSBSim.cpp.
Referenced by recv_fdm(), and update().
|
private |
Definition at line 166 of file SIM_JSBSim.cpp.
Referenced by update().
|
virtual |
Implements SITL::Aircraft.
Definition at line 455 of file SIM_JSBSim.cpp.
|
private |
Definition at line 51 of file SIM_JSBSim.h.
Referenced by create_templates(), and open_control_socket().
|
private |
Definition at line 60 of file SIM_JSBSim.h.
Referenced by create_templates().
|
private |
Definition at line 52 of file SIM_JSBSim.h.
Referenced by create_templates(), and open_fdm_socket().
enum { ... } SITL::JSBSim::frame |
Referenced by JSBSim(), and send_servos().
|
private |
Definition at line 49 of file SIM_JSBSim.h.
Referenced by update().
|
private |
Definition at line 54 of file SIM_JSBSim.h.
Referenced by create_templates(), and start_JSBSim().
|
private |
Definition at line 58 of file SIM_JSBSim.h.
Referenced by create_templates(), and JSBSim().
|
private |
Definition at line 53 of file SIM_JSBSim.h.
Referenced by create_templates(), and start_JSBSim().
|
private |
Definition at line 55 of file SIM_JSBSim.h.
Referenced by check_stdout(), expect(), and start_JSBSim().
|
private |
Definition at line 62 of file SIM_JSBSim.h.
Referenced by open_control_socket().
|
private |
Definition at line 63 of file SIM_JSBSim.h.
Referenced by open_fdm_socket().
|
private |
Definition at line 44 of file SIM_JSBSim.h.
Referenced by drain_control_socket(), open_control_socket(), and send_servos().
|
private |
Definition at line 47 of file SIM_JSBSim.h.
Referenced by open_fdm_socket(), and recv_fdm().
|
private |
Definition at line 61 of file SIM_JSBSim.h.
Referenced by start_JSBSim().