Commit Graph

103 Commits

Author SHA1 Message Date
Andrew Tridgell
b0f2545a9f SITL: convert to double precision for positions 2021-07-04 08:19:11 +10:00
Peter Barker
bf8f327938 SITL: increase servo_filter array size
used for plane-dspoiler frame
2021-07-04 08:19:10 +10:00
Peter Barker
170062804f SITL: add accessor for battery voltage 2021-07-04 08:19:10 +10:00
Andrew Tridgell
bf1f27af32 SITL: added is_lock_step_scheduled() API
used to fix panic on bad timing
2021-05-24 20:13:37 +10:00
Pierre Kancir
cec82214d8 SITL: add local_ground_variable 2021-04-21 17:26:07 +10:00
Patrick José Pereira
07c3435f9d SITL: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Peter Barker
f7b2856af0 SITL: add simulator for IntelligentEnergy 2.4kWh
SITL: Added setup note to comment

SITL: IE24: Add Error param and cycle battery pwr
2020-11-24 12:54:52 +11:00
Andrew Tridgell
e07cecb264 SITL: added support for simulated battery discharge 2020-10-28 14:20:44 +11:00
Andrew Tridgell
a0bc9d3148 SITL: fixed quadplane mass and rpm indexing 2020-10-28 14:20:44 +11:00
Peter Barker
abab203b32 SITL: remove zero initialisations, move more into class definitions 2020-09-28 12:15:04 +10:00
Iampete1
2764126a1c SITL: add apparent wind sensor support 2020-09-09 18:26:54 +10:00
Iampete1
16a9506cf2 SITL: SIM_Aircraft: add rangefinder array 2020-08-05 18:24:36 +10:00
Peter Barker
80d7a4ee5e SITL: simulated i2c support 2020-08-04 21:40:21 +10:00
Peter Barker
0303c5c4a8 SITL: move calculation of simulated rangefinder range to inside SIM_Aircraft
this will allow us to use the for non-serial rangefinder backends
2020-08-04 21:40:21 +10:00
Mark Whitehorn
f9e129e617 SITL: read 12 flightaxis input channels 2020-07-27 12:02:53 +10:00
Peter Barker
88c8dd8465 SITL: add RichenPower generator simulator 2020-07-03 08:21:42 +09:00
Andrew Tridgell
5349113104 SITL: improved the speedup code
more accurate sleeps using sleep debt system
2020-06-06 08:17:25 +10:00
Andrew Tridgell
750b220a5f SITL: simulations optimisations
- change to 600Hz physics rate by default
 - don't export rotational acceleration (not needed)
 - report speedup in terminal output at 0.5Hz (wall clock rate)
2020-06-06 08:17:25 +10:00
Alexander Maryanovsky
d73043fc2f SITL: get_wall_time_us() to use a monotonic clock on non-Windows systems 2020-06-04 10:05:22 +10:00
Mark Whitehorn
db1c7d9bdd SITL: add support for AHRS_ORIENTATION=ROTATION_CUSTOM 2020-04-28 10:57:26 +10:00
Samuel Tabor
5082c9be8b SITL: Add plane-soaring type, including parameters, mission, simulated thermals and glider sim settings. 2020-04-08 09:11:54 +10:00
Peter Barker
59dfaad749 SITL: provide method to retrieve desired speedup 2020-04-07 14:51:32 +10:00
Andy Piper
c0c61660b0 SITL: quadplane updates 2020-02-22 11:15:37 +11:00
Mark Whitehorn
76b985fc9c SITL: only recalculate ahrs rotation matrix if necessary 2019-12-17 11:42:40 +11:00
Andy Piper
c807267bab SITL: add rpm-based motor noise per-motor to gyros and accels
convert multicopter thrust to rpm per motor
2019-12-17 10:07:06 +11:00
Peter Barker
990273a778 SITL: add accessor for rangefinder range 2019-11-08 20:12:28 +11:00
Peter Barker
32ec6d7e9a SITL: add a simulated buzzer 2019-10-16 16:00:35 +11:00
Peter Barker
169013cae2 SITL: allow starting location to come from parameters 2019-08-15 18:00:35 +10:00
Peter Barker
f7b47679bb SITL: remove home_str from constructor 2019-08-15 15:16:11 +10:00
Anthony Velte
92a9ab6c6d SITL: Add scrimmage simulator support 2019-08-13 10:07:26 +10:00
Andrew Tridgell
5c3afa2621 SITL: use AP_Math/definitions.h 2019-07-13 11:05:57 +10:00
Michael du Breuil
b7bca441e5 SITL: Fix a number of includes that were coming in via AP_Airspeed 2019-06-27 14:56:21 +10:00
Peter Barker
6939a9fa91 SITL: add capability to twist the aircraft
This makes the EKF very, very unhappy, but is useful for compass
calibration testing
2019-04-23 10:06:17 +10:00
Peter Barker
4db011f530 SITL: add SIM_SHOVE_* options to shove the simulated vehicle
The parameter values are time in milliseconds and body-frame
acceleration in m/s/s

So to test throw mode:
 mode throw
 param set SIM_SHOVE_Z -30
 arm throttle
 param set SIM_SHOVE_TIME 500
2019-03-12 11:09:37 +11:00
Pierre Kancir
04bc267a61 SITL: add precland object
add position for precland object
add refresh rate
add alt and lateral range
add diffusion range
2019-03-01 20:28:22 +11:00
Peter Barker
d3b9ac5c8c SITL: add simulated parachute
Doesn't actually change aerodynamics at the moment
2019-01-09 13:16:03 +11:00
Andrew Tridgell
8d86b6fbee SITL: added support for laser scanner for Morse 2018-12-04 18:29:41 +11:00
Pierre Kancir
37f7cc4bcf SITL: rearrange Grippers and Sprayers in SITL 2018-07-31 23:34:43 +10:00
Peter Barker
dfcf4788d3 SITL: add vicon-over-mavlink support 2018-03-27 20:28:52 +09:00
Peter Barker
0d77cfb6c3 SITL: method to return current vehicle location 2018-03-27 20:13:03 +09:00
Andrew Tridgell
6a89fdf268 SITL: use AP_Declination for magnetic tables 2018-02-08 17:36:33 +11:00
Nicholas Engle
1103e92884 SITL: Add SIM_WIND_DIR_Z parameter for SITL
This controls the vertical pitch of the 3d wind vector, allowing futher control of the wind
using systems like dronekit. This change directly effects the calcuation of the wind vector
2018-02-05 16:38:53 -08:00
Andrew Tridgell
917d9842c4 SITL: support AHRS_ORIENTATION in SITL
this allows for tailsitters in RealFlight
2017-11-23 14:26:11 +11:00
Andrew Tridgell
c5cd1b873c SITL: use thread for FlightAxis comms
this allows us to run SITL at a much higher framerate than RF can
provide, and results in the EKF being much happier
2017-10-21 11:57:59 +11:00
Andrew Tridgell
74265f523a SITL: support -roll180 option to frames 2017-10-10 10:57:38 +11:00
Pierre Kancir
b176ba53d7 SIM_Aircraft: move advance in time from update_position to time_advance 2017-06-07 20:29:02 +10:00
Pierre Kancir
579f655e76 SIM_Aircraft: change define in favor of static constexpr 2017-06-07 20:29:02 +10:00
Pierre Kancir
148e84320b SITL: Sim_aircraft correct style 2017-06-07 20:28:25 +10:00
Pierre Kancir
599e3d7b83 SITL: make range finder a standalone sitl plugin 2017-06-07 20:28:25 +10:00
Pierre Kancir
ee7355a301 SITL: Reduce some variables scope and include 2017-03-18 19:58:11 +11:00