Peter Barker
e17c3127b1
add teraranger simulator
2025-02-25 11:12:06 +11:00
Peter Barker
0862ec445f
SITL: sort i2c include list
...
will reduce conflicts on various branches if we keep these sorted
2025-02-25 11:12:06 +11:00
Peter Barker
5fcac2b304
SITL: add instructions for testing MaxSonarI2CXL in SITL
2025-02-18 11:34:10 +11:00
Peter Barker
fd1ade76ca
SITL: clamp rangefinder distance to 0m
...
our starting positions are often underground
2025-02-18 11:34:10 +11:00
Davide Iafrate
2257009eba
SITL: Added comment to clarify IMU acceleration value
2025-02-07 00:42:28 +00:00
Peter Barker
26c61f527e
SIM_XPlane: remove use-after-free issue
...
c_str points to a member of .str(), so we have to make sure that object persists
../../libraries/SITL/SIM_XPlane.cpp:239:34: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
239 | const char *type_s = d.get("type").to_str().c_str();
2025-02-05 20:06:10 +11:00
Peter Barker
53701655a0
SIM_XPlane: avoid leaking memory upon json load failure
...
../../libraries/SITL/SIM_XPlane.cpp:209:16: warning: Potential leak of memory pointed to by 'fname' [unix.Malloc]
return false;
^~~~~
2025-02-05 20:06:10 +11:00
Davide Iafrate
131c0f8e2d
SITL: Clarification for timestamp in JSON interface
2025-02-05 10:03:52 +11:00
Peter Barker
4e35eb3673
SITL: fix array-bounds warning in tsys01 sim
...
... if the driver ever asked for prom0 then we would do Very Bad Things here.
File: build/sitl/../../libraries/SITL/SIM_Temperature_TSYS01.cpp
Warning: line 38, column 13
Assigned value is garbage or undefined
2025-02-01 16:52:26 +11:00
Peter Barker
99aff5f0cf
SITL: remove variable dead stores
2025-01-30 08:47:34 +11:00
Peter Barker
a01b7e74f1
SITL: remove dead stores from rangefinder_range
...
roll and pitch are unused if !SITL_RANGEFINDER_AS_OBJECT_SENSOR
../../libraries/SITL/SIM_Aircraft.cpp:546:13: warning: Value stored to 'roll' is never read [deadcode.DeadStores]
roll = 0;
^ ~
../../libraries/SITL/SIM_Aircraft.cpp:551:13: warning: Value stored to 'roll' is never read [deadcode.DeadStores]
roll = 0;
^ ~
../../libraries/SITL/SIM_Aircraft.cpp:557:13: warning: Value stored to 'pitch' is never read [deadcode.DeadStores]
pitch = 0;
^ ~
../../libraries/SITL/SIM_Aircraft.cpp:562:13: warning: Value stored to 'pitch' is never read [deadcode.DeadStores]
pitch = 0;
2025-01-30 08:24:27 +11:00
Peter Barker
5b5dc8a128
SITL: add dotriaconta_octaquad_x frame
2025-01-27 14:03:41 +11:00
murata
7de6eb5b20
SITL: Support Hexadeca-Octa (OCTA-X16)
2025-01-27 14:03:41 +11:00
Peter Barker
00c1f1456e
SITL: correct documentation metadata for FETTechOneWireESC and RichenPower and IE24
...
.... we had documentation for these parameters but it wasn't being used!
2025-01-25 08:10:38 +11:00
Jeevan K
c1595c6cf1
SITL : Add ACC_TRIM, ARSPD documentation
2025-01-24 07:05:51 +11:00
Peter Barker
00f713cda8
SITL: allow for more than 327m range rangefinders
2025-01-21 10:54:05 +11:00
Jeevan K
372a1a6e6e
SITL: update sonar_pos info
2025-01-17 08:11:27 +11:00
Peter Barker
c8dc6ad75f
SITL: add Volz simulator
2025-01-15 18:45:45 +11:00
Peter Barker
9fcf2b674a
SITL: add plane-redundant
2025-01-15 18:45:45 +11:00
Peter Barker
61eea7e11c
SITL: correct buffer size in SIM_FETtecOneWireESC read
...
no need to subtract one here; read enough bytes to fill the buffer
2025-01-13 22:14:54 +11:00
Peter Barker
67bbe83167
SITL: add LD06 simulator
2025-01-09 15:39:34 +11:00
Andrew Tridgell
bb96db5466
SITL: support up to 32 rotors in a frame
2025-01-07 09:32:33 +11:00
Peter Barker
27662bd106
SITL: tidy creation of simulated rangefinders
2025-01-05 13:37:48 +11:00
Bob Long
dee88b4ecb
SITL: default SIM_ENGINE_MUL to 0
...
This makes SIM_ENGINE_FAIL work a little more intuitively, since it is
usually used to simulate a complete failure.
Also, drive-by fix of the SIM_ENGINE_MUL documentation.
2024-12-18 18:06:50 +11:00
Bob Long
58c3854325
SITL: make SIM_ENGINE_FAIL a mask
...
The param docs already claimed it was one.
2024-12-18 18:06:50 +11:00
Rhys Mainwaring
ee7376afb1
SITL: follow standard pattern for including ENABLED guards
...
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-12-15 11:32:36 -06:00
Rhys Mainwaring
70fe304c7e
SITL: add ENABLED defines for simulated I2C devices
...
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-12-15 09:49:34 +11:00
Peter Barker
fea17e6f59
SITL: remove superfluous linefeed from panic strings
...
panic adds this within the HAL layer.
2024-12-14 10:06:13 +11:00
rishabsingh3003
99f4f13369
SITL: Add simulator for tethered vehicle
2024-12-10 10:48:00 +11:00
Thomas Watson
adfc415cff
SITL: fix testing and simulated register scaling
...
* make test actually test something
* fix scaling to match datasheet values
2024-12-02 10:10:01 -06:00
Peter Barker
4cfbeb11e3
SITL: add support for ina3221 triple-channel current/voltage sensor
2024-12-02 10:10:01 -06:00
Randy Mackay
c72108c1af
SITL: precland alt and dist limit doc fix
2024-11-22 08:11:41 +09:00
Peter Barker
fab1ef7a87
SITL: add ability to simulate more than 2 GPSs
2024-11-20 15:07:45 +11:00
Peter Barker
0d74bb1a76
SITL: correct MCP9600 simulation
...
- correctly fill data-ready register
- adjust for different register configuration the driver shoves in
- correct WHOAMI register length
- correct 8-bit register reads in variable-length-register i2c simulation
2024-11-08 12:33:37 +11:00
Bob Long
61593e2b36
SITL: FlightAxis: add option to silence FPS
2024-10-25 18:14:22 +11:00
Bob Long
49bbb2c923
SITL: FlightAxis: add position reset option
2024-10-25 18:14:22 +11:00
Bob Long
9fdd0a4e84
SITL: FlightAxis: add options bitmask parameter
2024-10-25 18:14:22 +11:00
Peter Barker
b36f539c7c
SITL: avoid floating point exception around rangefinder distance
...
projecting onto an infinite plane can cause exceptionally long rangefinder distances - for now jsut cap the distance that the simulated rangefinder can return to avoid floating point exceptions.
the FPE is caused in the Plane FlyEachFrame autotest when flying quadplane-copter_tailsitter - which ends up with a rangefinder at yaw-minus-180.
2024-10-10 20:44:04 +11:00
Peter Barker
197d837b6c
SITL: clarify wind direction descriptions
2024-10-08 20:57:36 +11:00
Peter Barker
efec7ccdc5
SITL: remove stale parameter metadata
...
now done by having the subgroup in its own file
2024-10-01 10:25:49 +10:00
muramura
637aec0085
SITL: Change division to multiplication
2024-09-28 11:01:41 +10:00
Peter Barker
ebe9a75a66
SITL: re-order initialiser lines so -Werror=reorder will work
2024-09-24 22:50:28 +10:00
ARg
eb283ce607
SITL: correctly cast types for MegaSquirt error format string
...
`uint32_t` is `unsigned long int`, not `unsigned int`.
2024-09-24 09:00:29 +10:00
Valentin Bugrov
167dd7f447
SITL: unify names in ILabs sim
2024-09-17 09:34:32 +10:00
Yuxin Pan
d1562d5119
SITL: update baro param group info
2024-09-16 17:25:02 +10:00
Yuxin Pan
ac2751c17b
SITL: add baro param file
2024-09-16 17:25:02 +10:00
Valentin Bugrov
79bd82308c
SITL: Actualize InertialLabs sim
2024-09-14 19:29:02 +10:00
Andrew Tridgell
fea279b181
SITL: support more rangefinder orientations
...
allows for quadplane tailsitter rangefinders
2024-09-14 08:39:51 +10:00
Yuxin Pan
61afab2b70
SITL: remove params from whiltelist
2024-09-12 06:54:15 +10:00
Yuxin Pan
41ffc7c860
SITL: SITL.cpp parameters documentation update
2024-09-11 10:22:22 +10:00