Commit Graph

1221 Commits

Author SHA1 Message Date
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
Peter Barker 93704c573c SITL: add documentation for SIM_ENGINE_FAIL and SIM_ENGINE_MUL 2024-07-30 09:21:26 +09:00
BLash 1d1bb5724e AP_ExternalAHRS_VectorNav: Address review comments
Remove unnecessary header
Switch parameters to default initialization
Change pointer casting to prevent a const_cast, and remove doubled sync byte when echoing ASCII messages
Fix Valgrind report by preventing use of nmea_printf on buffers which may not be null-terminated
2024-07-29 15:52:29 +10:00
BLash 50980ee03e AP_ExternalAHRS_VectorNav: Update SIM to match new message definitions
Redefine messages to 3 INS packets, and send as appropriate
Resolve SITL failures due to too-long logger message headers
2024-07-29 15:52:29 +10:00
Randy Mackay a1579bc31e SITL: integrate SlungPayload 2024-07-24 17:09:06 +10:00
Randy Mackay 5c2b758f42 SITL: add SlungPayload 2024-07-24 17:09:06 +10:00
George Zogopoulos e170710de9 SITL: Glider improvements
Fixed balloon going below ground.
Enabled glider torque logging.
2024-07-24 17:03:48 +10:00
Rhys Mainwaring 4354072d34 SITL: SIM_Rover: add simulation for omni3 mecanum rover
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2024-07-23 13:27:04 +10:00
Peter Barker ba135b9008 SITL: split MAVLink and physical gimbal simulations 2024-07-21 17:01:47 +10:00
Peter Barker fc28e2d7b8 SITL: adjust for renaming of Gimbal to SoloGimbal 2024-07-21 14:22:05 +10:00
Peter Barker ae4254bba8 SITL: rename SIM_Gimbal files to SIM_SoloGimbal 2024-07-21 14:22:05 +10:00
Peter Barker 9c1fe4e1c9 SIM_VectorNav: stop using nmea_printf on buffer data
can't use nmea_printf here as the buffer data won't be null-terminated
2024-07-20 22:44:19 +10:00
Peter Barker dcf342d7e3 SITL: add instructions on testing simulated mavlink gimbal 2024-07-20 22:44:10 +10:00
Peter Barker 2584cfd786 SITL: use distinct source system for gimbal
gimbal was sending mavlink into ArduPilot with the target system's own sysid/compid tuple.  ArduPilot was simply discarding these as its own messages being looped back to it
2024-07-20 22:44:10 +10:00
Stephen Dade 887a890c4a SITL: Add skid steering motorboat 2024-07-20 19:10:09 +10:00
Peter Barker 1626611e0b SITL: add documentation for SIM_ACC?_RND parameters 2024-07-20 13:43:44 +10:00
BLash 3f00280628 AP_ExternalAHRS_VectorNav: Move allocation to local scope
Move receive_buf to method scope allocation rather than class scope
2024-07-17 17:49:18 +10:00
BLash b3961ec2eb AP_ExternalAHRS_VectorNav: Update VectorNav sim to respond to received commands
Aside from the RRG,1 call, the simulation should reply with exactly what was received as a receipt confirmation to allow the driver to proceed past init
2024-07-17 17:49:18 +10:00
Peter Barker 647048f703 SITL: add simulator for 1-LED boards 2024-07-17 17:18:27 +10:00
Thomas Watson ca0cd9a7e8 SITL: allow disabling CAN interfaces
Also corrects an issue where setting an invalid type could result in
undefined behavior.
2024-07-16 10:13:11 +10:00
Peter Barker e42c9a588e SITL: add support for simulated GPIO LEDs 2024-07-11 20:08:13 +10:00
Ep Pravitra f3d55d821e SITL: fix json airspeed
Airspeed calculation for JSON was not quite working because velocity_air_ef was not updated in SIM_JSON.cpp

Update libraries/SITL/SIM_JSON.cpp

Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
Update libraries/SITL/SIM_JSON.cpp

Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>

comment changes

remove redundant airspeed calculation
2024-07-10 08:24:19 +10:00
Peter Barker 9090420db0 SITL: remove duplicated crc code
same as one we already have
2024-07-05 23:02:18 +10:00
BLash 0e4124060c SITL: VectorNav: Add support for sensors outside VN-100 and VN-300
Includes naming changes to match new broadened usage
2024-07-05 21:41:22 +10:00
George Zogopoulos 2cd5413b0d SITL: Documented SIM_WIND_DIR_Z 2024-07-03 18:13:11 +10:00
bnsgeyer 9c2d43f6c4 SITL: improve dual heli dynamics model 2024-06-30 18:21:21 -04:00
Andrew Tridgell 077c5f38f7 SITL: added comments on how to fly the glider 2024-06-30 10:02:15 +10:00
Peter Barker 12197b2d60 SITL: correct and improve Hirth simulator
we weren't sending an ACK for the set-values message
2024-06-19 08:48:32 +10:00
Peter Barker 5994664bf9 SITL: add simulated tie-down clamp 2024-06-11 09:56:43 +10:00
Peter Barker dd56f2465b SITL: make simulated SBP2 vastly more accurate
I have no idea if this is actually the sort of number which these devices will return.

However, for the EKF to be happy with the GPS the reported speed accuracy must be much lower than the SBP2 driver reports when we give it these numbers.

It might be that we are interpretting these fields incorrectly in the driver and that the simulator is, in fact, correct.
2024-06-11 09:29:14 +10:00
Peter Barker 6751bce0fc SITL: log number of times sim paused on serial0 buffer
SITL pauses the simulation if we do not have a minimum amount of space in its out queue.

Log the number of times we do this.
2024-06-11 08:51:25 +10:00
George Zogopoulos d2901dc9c9 SITL: Removed trailing underscore 2024-06-05 19:03:31 +10:00
Andrew Tridgell 4e1b2b95d4 SITL: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
muramura eec7876028 SITL: correct valgrind failure in SIM_GPS_SBP2 2024-06-03 21:30:32 +10:00
Andrew Tridgell 4e0e20aee1 SITL: added plane-steering model for ground steering
needs to be updated with improved yaw rate calculation
2024-06-01 20:09:25 +10:00
Peter Barker b2b8eb93a6 SITL: correct valgrind failure in SIM_GPS_SBP 2024-05-31 13:23:03 +10:00
Andrew Tridgell e0af22ad8f SITL: update to work on newer cygwin versions 2024-05-28 11:33:38 +10:00
Thomas Watson d2456f4199 SITL: remove references to legacy UART order 2024-05-28 09:23:39 +10:00
Andrew Tridgell 1603869140 SITL: added SIM_WIND_TC
time constant for wind changes
2024-05-21 09:59:37 +10:00
Ryan Friedman fbb785859a SITL: fix GPS headings
* Rename NMEA heading to ground_course_deg
* Rename heading() utility to ground course (it was wrong)
* Add _rad prefix to be pedantic about units
* Add missing degrees conversion in NMEA because NMEA is not SI

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-05-12 21:06:52 +10:00
Andrew Tridgell 67c506e75c SITL: use new atmospheric tables
and improve pitot handling
2024-05-07 21:19:06 +10:00
Andrew Tridgell 53c0619a9a SITL: added Glider SITL model 2024-05-05 07:57:54 +10:00
Daniel Field 33892aa049 SITL: modifications to lift in SIM_StratoBlimp (#3)
* Update SIM_StratoBlimp.cpp

* Update SIM_StratoBlimp.h
2024-05-01 15:45:22 +10:00
Peter Barker c08d982c0c SITL: populate speed accuracy uBlox messages from SITL parameters 2024-05-01 10:19:58 +10:00
Peter Barker dce3a41657 SITL: add description for SIM_BARO_DRIFT 2024-04-30 16:39:32 +10:00
Andrew Tridgell 202cc6ae9d SITL: fixed param meta-data name 2024-04-28 06:48:25 +10:00
Andrew Tridgell 1976f3d2d6 SITL: added StratoBlimp simulator 2024-04-27 22:03:05 +10:00
Iampete1 30fdae880f SITL: allow disabling MAVLink simstate messages 2024-04-23 09:16:55 +10:00