Andrew Tridgell
efa83d5d6d
SITL: added moving precland simulator
...
added SIM_PLD_SHIP to make the precland location track the SIM_SHIP
location, giving a nice way of having a landing marker on a moving
ship
2024-03-14 09:33:55 +09:00
Peter Barker
e8708227a1
SITL: new Loweheiser generator/efi sim
...
Co-authored-by: Joshua Henderson <hendjoshsr71@gmail.com>
SITL: break out common GeneratorEngine code
2024-01-23 11:27:30 +11:00
Peter Barker
5ae4355e26
SITL: correct compilation when HAL_LOGGING_ENABLED is false
2024-01-17 18:25:55 +11:00
Peter Barker
3a37796eb2
SITL: move simulated height_agl into fdm structure
...
allows value to be shipped via multicast to simulated peripherals
2024-01-08 20:00:01 +11:00
Andrew Tridgell
9428e41301
SITL: fixed running example firmwares
...
don't call model update with no sitl instance
2024-01-02 08:12:37 +11:00
Peter Barker
fbe690d44b
SITL: track simulated ADSB vehicles relative to simulation origin
...
removes dependence on ArduPilot AHRS library
Also removes vehicles based off vehicle simulated position rather than distance-from-origin, so you always have company
2023-11-02 15:52:42 +11:00
Tom Pittenger
8c4d00e6f2
SITL: add a thermal at home
2023-09-27 12:19:00 -07:00
Peter Barker
34bceb8eec
SITL: log achieved speedup rate
2023-09-23 19:49:02 +10:00
Andrew Tridgell
1b6c329de5
SITL: use NaN for invalid rangefinder data
...
needed to cope properly with terrain errors leading to negative
rangefinder data
2023-08-24 13:06:40 +10:00
Michelle Rossouw
e4d44c1006
SITL: Make SIM_Aircraft use double precision to stop SITL's short-range teleporting
2023-08-12 10:49:02 +10:00
bugobliterator
5f2dd4ab5c
SITL: add support for testing DroneCAN
2023-03-29 17:16:39 +11:00
Andrew Tridgell
7a4483b091
SITL: new XPlane backend
...
this makes use of DRefs to greatly improve XPlane support. It only
supports XPlane 11 and later
The key change is the use of a JSON file to map ArduPilot output
channels to DataRefs, and map raw joystick inputs to RC inputs
this gets rid of the awful throttle hack handling, and allows for
control of a much wider range of aircraft
2023-01-31 11:22:08 +11:00
Andrew Tridgell
eed6edc3b0
SITL: fixed sign of wind with AHRS_EKF_TYPE=10 and builtin models
...
an alternative to #21929 that doesn't break RealFlight
needs testing with sailboats
2022-12-11 09:42:07 +11:00
Andrew Tridgell
1138f9e624
SITL: allow for extra actuators to be marked as motors
2022-10-16 20:38:19 +11:00
Andrew Tridgell
a0af08a3aa
SITL switched to motor_mask for which actuators are motors
...
this allows for any output to be an ESC, which allows for proper
simulation of quadplanes with ESCs on outputs 5-8 or 9-12, for testing
notch filtering
2022-10-16 20:38:19 +11:00
Peter Barker
6be8d9cd06
SITL: remove unneeded circular rangfinder include
2022-10-11 10:50:13 +11:00
Shiv Tyagi
998119d011
SITL: fix var naming for precland device center
2022-08-09 18:00:11 +10:00
Iampete1
b3f09e5573
SITL: params always use set method
2022-08-03 13:43:48 +01:00
Andrew Tridgell
8cc5172ff3
SITL: fill in wind from flightaxis
2022-08-02 07:49:34 +10:00
Peter Barker
e6e45eda97
SITL: populate rangefinder ranges for inbuilt sims
...
These values are returned for the SITL rangefinder backend, type=100
2022-05-24 10:38:57 +10:00
Peter Barker
348f0ad590
SITL: add SIM_SONAR_ROT, use it for measuring horizontal distances
2022-04-19 10:26:10 +10:00
Andrew Tridgell
536b59ed42
SITL: don't use adjusted terrain in SITL
2022-03-28 16:01:21 +11:00
Peter Barker
edef2ceb56
SITL: usleep only on AP_HAL_SITL
2022-03-17 14:39:55 +11:00
Peter Barker
b360521d0b
SITL: permit double-precision maths in SITL even on embedded hardware
2022-03-17 14:39:55 +11:00
Peter Barker
0957131543
SITL: use AP_HAL::micros() for get_wall_time_us
2022-03-17 14:39:55 +11:00
Andrew Tridgell
07b78ab9a6
SITL: removed terrain home correction
2022-03-10 07:34:20 +11:00
Iampete1
b188d8fc5e
SITL: remove custom rotations
2022-03-02 18:16:42 +11:00
Andrew Tridgell
7643c5d3f3
SITL: log airspeed in SIM2
2022-02-07 14:13:49 +11:00
Peter Barker
af1a454820
SITL: fix may-be-used-uninitialised error in thermalling code
2022-02-02 18:59:23 +11:00
Peter Barker
497e6df326
SITL: correct submarine rangefinding
2021-12-11 20:10:10 +11:00
Peter Barker
6fcf724b67
SITL: tidy range calculations
...
Also return INFINITY if the rangefinder can't see the ground
2021-12-11 20:10:10 +11:00
Peter Barker
581629b332
SITL: make Ship simulator optional
2021-11-01 21:34:04 +11:00
Iampete1
ef9580fcf2
SITL: update tailsitter ground behavoir
2021-10-26 10:03:00 +11:00
Andrew Tridgell
46287dcb00
SITL: fixed plane-tailsitter model
...
it doesn't play well with smoothing
2021-08-19 12:08:54 +10:00
Andrew Tridgell
477f936560
SITL: mark logger Write() calls as streaming where appropriate
2021-08-18 10:20:03 +10:00
Peter Barker
97057a1350
SITL: add simulated FETtec ESC
2021-08-13 16:22:37 +10:00
Andrew Tridgell
8196f422cb
SITL: mark SIM2 as a streaming message
2021-08-03 10:23:36 +10:00
Andrew Tridgell
0048167f16
SITL: added SIM2 message
...
useful for EKF debugging
2021-07-22 10:19:02 +10:00
Andrew Tridgell
5eaf76cdc8
SITL: separate origin and home in SITL
...
this allows for accurate sensor data when flying a very long distance
from the takeoff location
2021-07-14 17:34:40 +10:00
Peter Barker
05a0205c21
SITL: change to use terrain singleton
2021-07-12 17:34:44 +10:00
Andrew Tridgell
01062cccd7
SITL: fixup offset calls
2021-07-10 07:20:41 +10:00
Andrew Tridgell
fb275c9874
SITL: convert to double precision for positions
2021-06-24 21:34:30 +10:00
Peter Barker
09ba017b5b
SITL: panic if we attempt to filter out-of-range servo index
2021-06-21 14:13:18 +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
Andrew Tridgell
7b9826cdce
SITL: change for AP::terrain as a pointer
2021-04-07 20:56:01 +10:00
Andrew Tridgell
b7f68e87b4
SITL: added barometer wind coefficients
2020-12-11 15:21:41 +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
32bda36908
SITL: fixed build with no GCS
2020-11-10 16:15:45 +11:00
Andrew Tridgell
a0bc9d3148
SITL: fixed quadplane mass and rpm indexing
2020-10-28 14:20:44 +11:00