Commit Graph

1268 Commits

Author SHA1 Message Date
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
Randy Mackay
77ba7cf04d SITL: aircraft sends wind to slung payload 2024-09-06 14:47:38 +10:00
Randy Mackay
c3a6950d6f SITL: slung payload sends pos updates at 10hz 2024-09-06 14:47:38 +10:00
Randy Mackay
8d3ce78e98 SITL: slung payload affected by wind 2024-09-06 14:47:38 +10:00
Peter Barker
46db6c12c1 SITL: correct use of simulated GPS data
Co-authored-by: Andrew Tridgell <andrew@tridgell.net>

uses the elements out of the simulated GPS data "d", rather than going to the parameters in teh simulated GPS "backends".
2024-08-27 11:14:09 +10:00
Peter Barker
07b27d76be SITL: correct and augment SBF simulator
- checksum calculation was including header parts in CRC twice
 - need to send DOP message to make EKF happy
 - need to supply own number of satellites
 - must pad packets to a multiple of 4 bytes
2024-08-21 06:31:41 +10:00
chiara de saint giniez
c9f648b97c SITL: SBF driver 2024-08-21 06:31:41 +10:00
Iampete1
ee8a8f0254 SITL: SIM_Battery: provde dt in voltage filter apply function 2024-08-20 09:09:41 +10:00
Pierre Kancir
102547968f SITL: add missing header for timeval struct on alpine linux 2024-08-15 22:33:42 +10:00
Peter Barker
e23e58fc17 SITL: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00