APM:Libraries
|
#include <SITL.h>
Public Types | |
enum | GPSType { GPS_TYPE_NONE = 0, GPS_TYPE_UBLOX = 1, GPS_TYPE_MTK = 2, GPS_TYPE_MTK16 = 3, GPS_TYPE_MTK19 = 4, GPS_TYPE_NMEA = 5, GPS_TYPE_SBP = 6, GPS_TYPE_FILE = 7, GPS_TYPE_NOVA = 8, GPS_TYPE_SBP2 = 9 } |
enum | WindType { WIND_TYPE_SQRT = 0, WIND_TYPE_NO_LIMIT = 1, WIND_TYPE_COEF = 2 } |
Public Member Functions | |
SITL () | |
SITL (const SITL &other)=delete | |
SITL & | operator= (const SITL &)=delete |
void | simstate_send (mavlink_channel_t chan) |
void | Log_Write_SIMSTATE (DataFlash_Class *dataflash) |
Static Public Member Functions | |
static SITL * | get_instance () |
static void | convert_body_frame (double rollDeg, double pitchDeg, double rollRate, double pitchRate, double yawRate, double *p, double *q, double *r) |
static Vector3f | convert_earth_frame (const Matrix3f &dcm, const Vector3f &gyro) |
Static Public Attributes | |
static SITL * | _s_instance = nullptr |
static const struct AP_Param::GroupInfo | var_info [] |
static const struct AP_Param::GroupInfo | var_info2 [] |
enum SITL::SITL::GPSType |
enum SITL::SITL::WindType |
|
inline |
|
delete |
|
static |
Definition at line 182 of file SITL.cpp.
Referenced by SITL::JSBSim::recv_fdm().
|
inlinestatic |
Definition at line 56 of file SITL.h.
Referenced by AP::sitl().
void SITL::SITL::Log_Write_SIMSTATE | ( | DataFlash_Class * | dataflash | ) |
void SITL::SITL::simstate_send | ( | mavlink_channel_t | chan | ) |
Definition at line 126 of file SITL.cpp.
Referenced by GCS_MAVLINK::send_simstate().
AP_Vector3f SITL::SITL::accel2_bias |
Definition at line 94 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_accel().
AP_Float SITL::SITL::accel2_noise |
Definition at line 92 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_accel().
AP_Vector3f SITL::SITL::accel_bias |
Definition at line 93 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_accel().
AP_Float SITL::SITL::accel_fail |
Definition at line 132 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_accel().
AP_Float SITL::SITL::accel_noise |
Definition at line 91 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_accel().
AP_Float SITL::SITL::adsb_altitude_m |
Definition at line 170 of file SITL.h.
Referenced by SITL::ADSB_Vehicle::update().
AP_Int16 SITL::SITL::adsb_plane_count |
Definition at line 168 of file SITL.h.
Referenced by HALSITL::SITL_State::_fdm_input_step(), and SITL::ADSB::update().
AP_Float SITL::SITL::adsb_radius_m |
Definition at line 169 of file SITL.h.
Referenced by SITL::ADSB::send_report(), and SITL::ADSB_Vehicle::update().
AP_Int8 SITL::SITL::adsb_tx |
Definition at line 171 of file SITL.h.
Referenced by SITL::ADSB::send_report().
AP_Float SITL::SITL::arspd2_fail |
Definition at line 97 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::arspd2_fail_pitot_pressure |
Definition at line 101 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::arspd2_fail_pressure |
Definition at line 100 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::arspd_fail |
Definition at line 96 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::arspd_fail_pitot_pressure |
Definition at line 99 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::arspd_fail_pressure |
Definition at line 98 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::arspd_noise |
Definition at line 95 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Int8 SITL::SITL::arspd_signflip |
Definition at line 190 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Int16 SITL::SITL::baro_delay |
Definition at line 163 of file SITL.h.
Referenced by AP_Baro_SITL::_timer().
AP_Int8 SITL::SITL::baro_disable |
Definition at line 134 of file SITL.h.
Referenced by AP_Baro_SITL::_timer().
AP_Float SITL::SITL::baro_drift |
Definition at line 87 of file SITL.h.
Referenced by AP_Baro_SITL::_timer().
AP_Float SITL::SITL::baro_glitch |
Definition at line 88 of file SITL.h.
Referenced by AP_Baro_SITL::_timer().
AP_Float SITL::SITL::baro_noise |
Definition at line 86 of file SITL.h.
Referenced by AP_Baro_SITL::_timer().
AP_Float SITL::SITL::batt_voltage |
Definition at line 131 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::drift_speed |
Definition at line 117 of file SITL.h.
Referenced by AP_InertialSensor_SITL::gyro_drift().
AP_Float SITL::SITL::drift_time |
Definition at line 118 of file SITL.h.
Referenced by AP_InertialSensor_SITL::gyro_drift().
AP_Int8 SITL::SITL::engine_fail |
Definition at line 120 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::engine_mul |
Definition at line 119 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Int8 SITL::SITL::float_exception |
Definition at line 135 of file SITL.h.
Referenced by HALSITL::Scheduler::Scheduler().
AP_Int8 SITL::SITL::flow_delay |
Definition at line 138 of file SITL.h.
Referenced by AP_OpticalFlow_SITL::update().
AP_Int8 SITL::SITL::flow_enable |
Definition at line 136 of file SITL.h.
Referenced by AP_OpticalFlow_SITL::update().
AP_Int16 SITL::SITL::flow_rate |
Definition at line 137 of file SITL.h.
Referenced by AP_OpticalFlow_SITL::update().
AP_Int8 SITL::SITL::gps2_enable |
Definition at line 122 of file SITL.h.
Referenced by HALSITL::SITL_State::_gps_write().
AP_Vector3f SITL::SITL::gps2_glitch |
Definition at line 129 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int8 SITL::SITL::gps2_type |
Definition at line 125 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int16 SITL::SITL::gps_alt_offset |
Definition at line 104 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Float SITL::SITL::gps_byteloss |
Definition at line 126 of file SITL.h.
Referenced by HALSITL::SITL_State::_gps_write().
AP_Int8 SITL::SITL::gps_delay |
Definition at line 123 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int8 SITL::SITL::gps_disable |
Definition at line 121 of file SITL.h.
Referenced by HALSITL::SITL_State::_fdm_input_step().
AP_Float SITL::SITL::gps_drift_alt |
Definition at line 157 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Vector3f SITL::SITL::gps_glitch |
Definition at line 128 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int8 SITL::SITL::gps_hertz |
Definition at line 130 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int16 SITL::SITL::gps_lock_time |
Definition at line 103 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Float SITL::SITL::gps_noise |
Definition at line 102 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int8 SITL::SITL::gps_numsats |
Definition at line 127 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps_mtk(), HALSITL::SITL_State::_update_gps_mtk16(), HALSITL::SITL_State::_update_gps_mtk19(), HALSITL::SITL_State::_update_gps_nmea(), HALSITL::SITL_State::_update_gps_nova(), HALSITL::SITL_State::_update_gps_sbp(), HALSITL::SITL_State::_update_gps_sbp2(), and HALSITL::SITL_State::_update_gps_ubx().
AP_Vector3f SITL::SITL::gps_pos_offset |
Definition at line 179 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Int8 SITL::SITL::gps_type |
Definition at line 124 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_gps().
AP_Float SITL::SITL::gyro_noise |
Definition at line 89 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_gyro().
AP_Vector3f SITL::SITL::gyro_scale |
Definition at line 90 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_gyro().
float SITL::SITL::height_agl |
Definition at line 80 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_rangefinder(), AP_Proximity_SITL::get_upward_distance(), HALSITL::SITL_State::set_height_agl(), and AP_OpticalFlow_SITL::update().
AP_Vector3f SITL::SITL::imu_pos_offset |
Definition at line 178 of file SITL.h.
Referenced by AP_InertialSensor_SITL::generate_accel().
uint16_t SITL::SITL::irlock_port |
Definition at line 192 of file SITL.h.
Referenced by HALSITL::SITL_State::_sitl_setup(), and AP_IRLock_SITL::init().
AP_Float SITL::SITL::mag_anomaly_hgt |
Definition at line 175 of file SITL.h.
Referenced by SITL::Aircraft::update_mag_field_bf().
AP_Vector3f SITL::SITL::mag_anomaly_ned |
Definition at line 174 of file SITL.h.
Referenced by SITL::Aircraft::update_mag_field_bf().
AP_Int16 SITL::SITL::mag_delay |
Definition at line 164 of file SITL.h.
Referenced by AP_Compass_SITL::_timer().
AP_Vector3f SITL::SITL::mag_mot |
Definition at line 109 of file SITL.h.
Referenced by SITL::Aircraft::update_mag_field_bf().
AP_Float SITL::SITL::mag_noise |
Definition at line 107 of file SITL.h.
Referenced by AP_Compass_SITL::_timer().
AP_Vector3f SITL::SITL::mag_ofs |
Definition at line 110 of file SITL.h.
Referenced by AP_Compass_SITL::_timer().
bool SITL::SITL::motors_on |
Definition at line 77 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos(), AP_InertialSensor_SITL::generate_accel(), and AP_InertialSensor_SITL::generate_gyro().
AP_Int8 SITL::SITL::odom_enable |
Definition at line 142 of file SITL.h.
Referenced by AP_AHRS_NavEKF::update_SITL().
AP_Vector3f SITL::SITL::optflow_pos_offset |
Definition at line 181 of file SITL.h.
Referenced by AP_OpticalFlow_SITL::update().
AP_Int8 SITL::SITL::rc_fail |
Definition at line 133 of file SITL.h.
Referenced by HALSITL::SITL_State::_fdm_input_local(), and HALSITL::SITL_State::_fdm_input_step().
AP_Vector3f SITL::SITL::rngfnd_pos_offset |
Definition at line 180 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_rangefinder().
AP_Float SITL::SITL::servo_speed |
Definition at line 111 of file SITL.h.
Referenced by SITL::Aircraft::filtered_idx().
AP_Float SITL::SITL::sonar_glitch |
Definition at line 113 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_rangefinder().
AP_Float SITL::SITL::sonar_noise |
Definition at line 114 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_rangefinder().
AP_Float SITL::SITL::sonar_scale |
Definition at line 115 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_rangefinder().
AP_Float SITL::SITL::speedup |
Definition at line 141 of file SITL.h.
Referenced by SITL::Aircraft::fill_fdm().
struct sitl_fdm SITL::SITL::state |
Definition at line 71 of file SITL.h.
Referenced by HALSITL::SITL_State::_fdm_input_local(), HALSITL::SITL_State::_fdm_input_step(), HALSITL::SITL_State::_output_to_flightgear(), HALSITL::SITL_State::_simulator_servos(), HALSITL::SITL_State::_sitl_setup(), AP_Compass_SITL::_timer(), AP_Baro_SITL::_timer(), HALSITL::SITL_State::_update_gps(), HALSITL::SITL_State::_update_rangefinder(), AP_InertialSensor_SITL::generate_accel(), AP_InertialSensor_SITL::generate_gyro(), AP_Proximity_SITL::get_distance_to_fence(), AP_AHRS_NavEKF::get_hagl(), AP_AHRS_NavEKF::get_origin(), AP_AHRS_NavEKF::get_position(), AP_AHRS_NavEKF::get_relative_position_D_origin(), AP_AHRS_NavEKF::get_relative_position_NED_origin(), AP_AHRS_NavEKF::get_velocity_NED(), AP_AHRS_NavEKF::get_vert_pos_rate(), AP_AHRS_NavEKF::groundspeed_vector(), HALSITL::SITL_State::set_height_agl(), AP_AHRS_NavEKF::set_origin(), AP_OpticalFlow_SITL::update(), AP_Proximity_SITL::update(), AP_Beacon_SITL::update(), AP_RPM_SITL::update(), and AP_AHRS_NavEKF::update_SITL().
AP_Float SITL::SITL::temp_baro_factor |
Definition at line 187 of file SITL.h.
Referenced by AP_Baro_SITL::temperature_adjustment().
AP_Float SITL::SITL::temp_flight |
Definition at line 185 of file SITL.h.
Referenced by AP_Baro_SITL::temperature_adjustment().
AP_Float SITL::SITL::temp_start |
Definition at line 184 of file SITL.h.
Referenced by AP_Baro_SITL::temperature_adjustment().
AP_Float SITL::SITL::temp_tconst |
Definition at line 186 of file SITL.h.
Referenced by AP_Baro_SITL::temperature_adjustment().
AP_Int8 SITL::SITL::terrain_enable |
Definition at line 139 of file SITL.h.
Referenced by SITL::Aircraft::ground_height_difference(), and HALSITL::SITL_State::set_height_agl().
uint16_t SITL::SITL::update_rate_hz |
Definition at line 74 of file SITL.h.
Referenced by HALSITL::SITL_State::_fdm_input_local().
|
static |
|
static |
AP_Int16 SITL::SITL::wind_delay |
Definition at line 165 of file SITL.h.
Referenced by HALSITL::SITL_State::_update_airspeed().
AP_Float SITL::SITL::wind_dir_z |
Definition at line 158 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
float SITL::SITL::wind_dir_z_active |
Definition at line 153 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::wind_direction |
Definition at line 155 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
float SITL::SITL::wind_direction_active |
Definition at line 152 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::wind_speed |
Definition at line 154 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
float SITL::SITL::wind_speed_active |
Definition at line 151 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::wind_turbulance |
Definition at line 156 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Int8 SITL::SITL::wind_type |
Definition at line 159 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::wind_type_alt |
Definition at line 160 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().
AP_Float SITL::SITL::wind_type_coef |
Definition at line 161 of file SITL.h.
Referenced by HALSITL::SITL_State::_simulator_servos().