#include <SIM_Aircraft.h>
Definition at line 32 of file SIM_Aircraft.h.
◆ anonymous enum
Enumerator |
---|
GROUND_BEHAVIOR_NONE | |
GROUND_BEHAVIOR_NO_MOVEMENT | |
GROUND_BEHAVIOR_FWD_ONLY | |
GROUND_BEHAVIOR_TAILSITTER | |
Definition at line 179 of file SIM_Aircraft.h.
◆ Aircraft()
Aircraft::Aircraft |
( |
const char * |
home_str, |
|
|
const char * |
frame_str |
|
) |
| |
◆ add_noise()
void Aircraft::add_noise |
( |
float |
throttle | ) |
|
|
protected |
◆ adjust_frame_time()
void Aircraft::adjust_frame_time |
( |
float |
rate | ) |
|
|
protected |
◆ extrapolate_sensors()
void Aircraft::extrapolate_sensors |
( |
float |
delta_time | ) |
|
|
protected |
◆ fill_fdm()
void Aircraft::fill_fdm |
( |
struct sitl_fdm & |
fdm | ) |
|
◆ filtered_idx()
float Aircraft::filtered_idx |
( |
float |
v, |
|
|
uint8_t |
idx |
|
) |
| |
|
protected |
◆ filtered_servo_angle()
float Aircraft::filtered_servo_angle |
( |
const struct sitl_input & |
input, |
|
|
uint8_t |
idx |
|
) |
| |
|
protected |
◆ filtered_servo_range()
float Aircraft::filtered_servo_range |
( |
const struct sitl_input & |
input, |
|
|
uint8_t |
idx |
|
) |
| |
|
protected |
◆ get_attitude()
void SITL::Aircraft::get_attitude |
( |
Quaternion & |
attitude | ) |
const |
|
inline |
◆ get_dcm()
const Matrix3f& SITL::Aircraft::get_dcm |
( |
void |
| ) |
const |
|
inline |
◆ get_gyro()
const Vector3f& SITL::Aircraft::get_gyro |
( |
void |
| ) |
const |
|
inline |
◆ get_location()
const Location& SITL::Aircraft::get_location |
( |
| ) |
const |
|
inline |
◆ get_mag_field_bf()
const Vector3f& SITL::Aircraft::get_mag_field_bf |
( |
void |
| ) |
const |
|
inline |
◆ get_position()
const Vector3f& SITL::Aircraft::get_position |
( |
| ) |
const |
|
inline |
◆ get_rate_hz()
float SITL::Aircraft::get_rate_hz |
( |
void |
| ) |
const |
|
inline |
◆ get_velocity_air_ef()
const Vector3f& SITL::Aircraft::get_velocity_air_ef |
( |
void |
| ) |
const |
|
inline |
◆ get_velocity_ef()
const Vector3f& SITL::Aircraft::get_velocity_ef |
( |
void |
| ) |
const |
|
inline |
◆ get_wall_time_us()
uint64_t Aircraft::get_wall_time_us |
( |
void |
| ) |
const |
|
protected |
◆ gross_mass()
virtual float SITL::Aircraft::gross_mass |
( |
| ) |
const |
|
inlinevirtual |
◆ ground_height_difference()
float Aircraft::ground_height_difference |
( |
| ) |
const |
|
protected |
◆ hagl()
float Aircraft::hagl |
( |
| ) |
const |
|
protected |
◆ on_ground()
bool Aircraft::on_ground |
( |
| ) |
const |
|
protectedvirtual |
◆ parse_home()
bool Aircraft::parse_home |
( |
const char * |
home_str, |
|
|
Location & |
loc, |
|
|
float & |
yaw_degrees |
|
) |
| |
|
static |
◆ rand_normal()
double Aircraft::rand_normal |
( |
double |
mean, |
|
|
double |
stddev |
|
) |
| |
|
static |
◆ set_autotest_dir()
void SITL::Aircraft::set_autotest_dir |
( |
const char * |
_autotest_dir | ) |
|
|
inline |
◆ set_instance()
void SITL::Aircraft::set_instance |
( |
uint8_t |
_instance | ) |
|
|
inline |
◆ set_interface_ports()
virtual void SITL::Aircraft::set_interface_ports |
( |
const char * |
address, |
|
|
const int |
port_in, |
|
|
const int |
port_out |
|
) |
| |
|
inlinevirtual |
◆ set_speedup()
void Aircraft::set_speedup |
( |
float |
speedup | ) |
|
◆ setup_frame_time()
void Aircraft::setup_frame_time |
( |
float |
rate, |
|
|
float |
speedup |
|
) |
| |
|
protected |
◆ smooth_sensors()
void Aircraft::smooth_sensors |
( |
void |
| ) |
|
◆ sync_frame_time()
void Aircraft::sync_frame_time |
( |
void |
| ) |
|
|
protected |
◆ time_advance()
void Aircraft::time_advance |
( |
| ) |
|
|
protected |
Definition at line 235 of file SIM_Aircraft.cpp.
Referenced by SITL::XPlane::receive_data(), SITL::Tracker::update(), SITL::SimRover::update(), SITL::Helicopter::update(), SITL::Balloon::update(), SITL::Gazebo::update(), SITL::SingleCopter::update(), SITL::FlightAxis::update(), SITL::Plane::update(), SITL::last_letter::update(), SITL::CRRCSim::update(), SITL::QuadPlane::update(), SITL::Submarine::update(), SITL::MultiCopter::update(), and SITL::Calibration::update().
◆ update()
virtual void SITL::Aircraft::update |
( |
const struct sitl_input & |
input | ) |
|
|
pure virtual |
Implemented in SITL::Calibration, SITL::MultiCopter, SITL::Submarine, SITL::CRRCSim, SITL::JSBSim, SITL::last_letter, SITL::Plane, SITL::QuadPlane, SITL::XPlane, SITL::Gazebo, SITL::SingleCopter, SITL::Balloon, SITL::Helicopter, SITL::SimRover, and SITL::Tracker.
Referenced by HALSITL::SITL_State::_fdm_input_local(), and set_interface_ports().
◆ update_dynamics()
void Aircraft::update_dynamics |
( |
const Vector3f & |
rot_accel | ) |
|
|
protected |
◆ update_mag_field_bf()
void Aircraft::update_mag_field_bf |
( |
void |
| ) |
|
|
protected |
Definition at line 202 of file SIM_Aircraft.cpp.
Referenced by SITL::XPlane::receive_data(), SITL::JSBSim::recv_fdm(), SITL::Tracker::update(), SITL::Helicopter::update(), SITL::SimRover::update(), SITL::Balloon::update(), SITL::Gazebo::update(), SITL::SingleCopter::update(), SITL::QuadPlane::update(), SITL::last_letter::update(), SITL::FlightAxis::update(), SITL::CRRCSim::update(), SITL::Plane::update(), SITL::Submarine::update(), SITL::MultiCopter::update(), and SITL::Calibration::update().
◆ update_position()
void Aircraft::update_position |
( |
void |
| ) |
|
|
protected |
Definition at line 181 of file SIM_Aircraft.cpp.
Referenced by SITL::XPlane::receive_data(), SITL::Tracker::update(), SITL::SimRover::update(), SITL::Helicopter::update(), SITL::Balloon::update(), SITL::Gazebo::update(), SITL::SingleCopter::update(), SITL::FlightAxis::update(), SITL::Plane::update(), SITL::last_letter::update(), SITL::CRRCSim::update(), SITL::QuadPlane::update(), SITL::Submarine::update(), SITL::MultiCopter::update(), and SITL::Calibration::update().
◆ update_wind()
void Aircraft::update_wind |
( |
const struct sitl_input & |
input | ) |
|
|
protected |
◆ Gripper_Servo
◆ accel_body
Definition at line 142 of file SIM_Aircraft.h.
Referenced by SITL::Calibration::_calibration_poses(), add_noise(), SITL::Plane::calculate_forces(), extrapolate_sensors(), fill_fdm(), SITL::XPlane::receive_data(), SITL::Gazebo::recv_fdm(), SITL::last_letter::recv_fdm(), SITL::CRRCSim::recv_fdm(), SITL::JSBSim::recv_fdm(), smooth_sensors(), SITL::Tracker::update(), SITL::SimRover::update(), SITL::Helicopter::update(), SITL::Balloon::update(), SITL::SingleCopter::update(), SITL::FlightAxis::update(), SITL::Plane::update(), SITL::QuadPlane::update(), SITL::Submarine::update(), SITL::MultiCopter::update(), SITL::Calibration::update(), update_dynamics(), and update_position().
◆ accel_noise
const float SITL::Aircraft::accel_noise |
|
protected |
◆ achieved_rate_hz
float SITL::Aircraft::achieved_rate_hz |
|
protected |
◆ ahrs_orientation
AP_Int8* SITL::Aircraft::ahrs_orientation |
|
protected |
◆ airspeed
float SITL::Aircraft::airspeed |
|
protected |
◆ airspeed_pitot
float SITL::Aircraft::airspeed_pitot |
|
protected |
◆ ang_accel
◆ autotest_dir
const char* SITL::Aircraft::autotest_dir |
|
protected |
◆ battery_current
float SITL::Aircraft::battery_current = 0.0f |
|
protected |
◆ battery_voltage
float SITL::Aircraft::battery_voltage = -1.0f |
|
protected |
◆ dcm
Definition at line 132 of file SIM_Aircraft.h.
Referenced by SITL::Calibration::_attitude_set(), SITL::Calibration::_calibration_poses(), Aircraft(), SITL::Submarine::calculate_forces(), SITL::Plane::calculate_forces(), SITL::JSBSim::create_templates(), extrapolate_sensors(), fill_fdm(), get_attitude(), get_dcm(), SITL::XPlane::receive_data(), SITL::Gazebo::recv_fdm(), SITL::last_letter::recv_fdm(), SITL::CRRCSim::recv_fdm(), SITL::JSBSim::recv_fdm(), smooth_sensors(), SITL::Tracker::update(), SITL::Helicopter::update(), SITL::SimRover::update(), SITL::Balloon::update(), SITL::SingleCopter::update(), SITL::FlightAxis::update(), update_dynamics(), update_mag_field_bf(), and update_position().
◆ enabled
bool SITL::Aircraft::enabled |
◆ FEET_TO_METERS
const float SITL::Aircraft::FEET_TO_METERS = 0.3048f |
|
protected |
◆ frame
const char* SITL::Aircraft::frame |
|
protected |
◆ frame_counter
uint32_t SITL::Aircraft::frame_counter = 0 |
|
private |
◆ frame_height
float SITL::Aircraft::frame_height |
|
protected |
◆ frame_time_us
uint64_t SITL::Aircraft::frame_time_us |
|
protected |
Definition at line 167 of file SIM_Aircraft.h.
Referenced by SITL::Calibration::_angular_velocity_control(), SITL::Calibration::_attitude_set(), SITL::Calibration::_stop_control(), adjust_frame_time(), filtered_idx(), SITL::XPlane::receive_data(), setup_frame_time(), time_advance(), SITL::Tracker::update(), SITL::SimRover::update(), and update_dynamics().
◆ ground_behavior
enum { ... } SITL::Aircraft::ground_behavior |
◆ ground_level
float SITL::Aircraft::ground_level |
|
protected |
◆ gyro
Definition at line 133 of file SIM_Aircraft.h.
Referenced by SITL::Calibration::_angular_velocity_control(), SITL::Calibration::_attitude_set(), SITL::Calibration::_stop_control(), add_noise(), SITL::Submarine::calculate_forces(), extrapolate_sensors(), fill_fdm(), get_gyro(), SITL::Plane::getForce(), SITL::Plane::getTorque(), SITL::XPlane::receive_data(), SITL::Gazebo::recv_fdm(), SITL::last_letter::recv_fdm(), SITL::CRRCSim::recv_fdm(), SITL::JSBSim::recv_fdm(), smooth_sensors(), SITL::Tracker::update(), SITL::Helicopter::update(), SITL::SimRover::update(), SITL::Balloon::update(), SITL::SingleCopter::update(), SITL::FlightAxis::update(), and update_dynamics().
◆ gyro_noise
const float SITL::Aircraft::gyro_noise |
|
protected |
◆ gyro_prev
◆ home
Definition at line 126 of file SIM_Aircraft.h.
Referenced by Aircraft(), SITL::JSBSim::create_templates(), fill_fdm(), ground_height_difference(), hagl(), SITL::XPlane::receive_data(), SITL::JSBSim::recv_fdm(), smooth_sensors(), SITL::FlightAxis::update(), update_dynamics(), update_mag_field_bf(), and update_position().
◆ home_yaw
float SITL::Aircraft::home_yaw |
|
protected |
◆ instance
uint8_t SITL::Aircraft::instance |
|
protected |
◆ KNOTS_TO_METERS_PER_SECOND
const float SITL::Aircraft::KNOTS_TO_METERS_PER_SECOND = 0.51444f |
|
protected |
◆ last_ground_contact_ms
uint32_t SITL::Aircraft::last_ground_contact_ms |
|
private |
◆ last_speedup
float SITL::Aircraft::last_speedup = -1.0f |
|
protected |
◆ last_time_us
uint64_t SITL::Aircraft::last_time_us = 0 |
|
private |
◆ last_update_us
uint64_t SITL::Aircraft::last_update_us |
◆ last_wall_time_us
uint64_t SITL::Aircraft::last_wall_time_us |
|
protected |
◆ location
◆ mag_bf
◆ mass
float SITL::Aircraft::mass |
|
protected |
Definition at line 141 of file SIM_Aircraft.h.
Referenced by SITL::Balloon::Balloon(), SITL::Plane::calculate_forces(), SITL::Calibration::Calibration(), gross_mass(), SITL::Helicopter::Helicopter(), SITL::MultiCopter::MultiCopter(), SITL::Plane::Plane(), SITL::QuadPlane::QuadPlane(), SITL::SingleCopter::SingleCopter(), SITL::Helicopter::update(), and SITL::SingleCopter::update().
◆ min_sleep_time
const uint32_t SITL::Aircraft::min_sleep_time |
|
private |
◆ position
Definition at line 140 of file SIM_Aircraft.h.
Referenced by SITL::Submarine::calculate_buoyancy_acceleration(), SITL::Submarine::calculate_forces(), extrapolate_sensors(), get_position(), hagl(), SITL::XPlane::receive_data(), SITL::Gazebo::recv_fdm(), SITL::CRRCSim::recv_fdm(), SITL::FlightAxis::report_FPS(), smooth_sensors(), SITL::Balloon::update(), SITL::SimRover::update(), SITL::FlightAxis::update(), update_dynamics(), update_mag_field_bf(), and update_position().
◆ range
float SITL::Aircraft::range = -1.0f |
|
protected |
◆ rate_hz
float SITL::Aircraft::rate_hz |
|
protected |
◆ rcin
float SITL::Aircraft::rcin[8] |
|
protected |
◆ rcin_chan_count
uint8_t SITL::Aircraft::rcin_chan_count = 0 |
|
protected |
◆ rotation_b2e
◆ rpm1
float SITL::Aircraft::rpm1 = 0 |
|
protected |
◆ rpm2
float SITL::Aircraft::rpm2 = 0 |
|
protected |
◆ scaled_frame_time_us
float SITL::Aircraft::scaled_frame_time_us |
|
protected |
◆ servo_filter
◆ sitl
SITL* SITL::Aircraft::sitl |
|
protected |
◆ smoothing
struct { ... } SITL::Aircraft::smoothing |
◆ target_speedup
float SITL::Aircraft::target_speedup |
|
protected |
◆ terrain
AP_Terrain* SITL::Aircraft::terrain |
|
protected |
◆ time_now_us
uint64_t SITL::Aircraft::time_now_us |
|
protected |
Definition at line 160 of file SIM_Aircraft.h.
Referenced by fill_fdm(), SITL::XPlane::receive_data(), SITL::Gazebo::recv_fdm(), SITL::last_letter::recv_fdm(), SITL::CRRCSim::recv_fdm(), SITL::JSBSim::recv_fdm(), smooth_sensors(), time_advance(), SITL::Tracker::update(), SITL::FlightAxis::update(), and SITL::JSBSim::update().
◆ turbulence_azimuth
float SITL::Aircraft::turbulence_azimuth = 0.0f |
|
protected |
◆ turbulence_horizontal_speed
float SITL::Aircraft::turbulence_horizontal_speed = 0.0f |
|
protected |
◆ turbulence_vertical_speed
float SITL::Aircraft::turbulence_vertical_speed = 0.0f |
|
protected |
◆ use_smoothing
bool SITL::Aircraft::use_smoothing |
|
protected |
◆ use_time_sync
bool SITL::Aircraft::use_time_sync = true |
|
protected |
◆ velocity_air_bf
Vector3f SITL::Aircraft::velocity_air_bf |
|
protected |
◆ velocity_air_ef
Vector3f SITL::Aircraft::velocity_air_ef |
|
protected |
◆ velocity_ef
Definition at line 136 of file SIM_Aircraft.h.
Referenced by SITL::Plane::calculate_forces(), extrapolate_sensors(), fill_fdm(), get_velocity_ef(), SITL::XPlane::receive_data(), SITL::Gazebo::recv_fdm(), SITL::last_letter::recv_fdm(), SITL::CRRCSim::recv_fdm(), SITL::JSBSim::recv_fdm(), smooth_sensors(), SITL::Tracker::update(), SITL::SimRover::update(), SITL::FlightAxis::update(), update_dynamics(), and update_position().
◆ wind_ef
The documentation for this class was generated from the following files: