Commit Graph

1197 Commits

Author SHA1 Message Date
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
Iampete1 700804a015 SITL: add ELRS simulator 2024-04-23 09:16:55 +10:00
Peter Barker 6ef131c0f9 SITL: correct diagnostic message about what AirSim-in addr we bound
Co-authored-by: Oleksiy Protas <elfy.ua@gmail.com>
2024-04-16 09:31:20 +10:00
muramura d4236a95c4 tools: change a word(NFC) 2024-04-10 14:20:04 +09:00
rishabsingh3003 fc0084fe83 SITL: Update RDS02UF CRC 2024-04-01 16:12:53 +11:00
Andrew Tridgell feb8c3be67 SITL: added SIM_OSD_ROWS and SIM_OSD_COLUMNS 2024-03-26 11:36:48 +11:00
Peter Barker 729c911462 SITL: add and use AP_RCProtocol_UDP 2024-03-25 22:35:04 +11:00
Peter Barker 94d5d92917 SITL: rename GPS_ to GPS1_ 2024-03-19 19:50:12 +11:00
Peter Barker 89bdb14916 Tools: adjust for GPS parameter renames 2024-03-19 19:50:12 +11:00
Peter Barker fe21c576c8 SITL: adjust for GPS parameter renames 2024-03-19 19:50:12 +11:00
jkronk a7785b0798 SITL: add Ainstein SITL driver 2024-03-18 12:40:37 -07:00
Ryan Friedman 41fc3a8dbb AP_ExternalAHRS: SIM_MicroStrain support quaternion attitude
* This replaces IMU orientation
* Fixed some usage docs

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-03-15 18:11:22 +11:00
Peter Barker aefa41f22a SITL: correct compilation on g++-7.5.0
.cpp: In member function void SITL::ShipSim::send_report():
BB-WAF: /mnt/volume_nyc3_01/autotest/APM/APM/libraries/SITL/SIM_Ship.cpp:189:42: sorry, unimplemented: non-trivial designated initializers not supported
BB-WAF:          autopilot : MAV_AUTOPILOT_INVALID};
BB-WAF:                                           ^
BB-WAF: compilation terminated due to -Wfatal-errors.
BB-WAF:
BB-WAF: Waf: Leaving directory `/home/autotest/build/tmp/binaries.build/SITL_x86_64_linux_gnu'
2024-03-15 18:10:53 +11:00
Andrew Tridgell c34e4907fe 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-12 10:45:56 +11:00
Peter Barker d24e7a916f SITL: SIM_Morse: correct compilation with HAL_GCS_ENABLED false 2024-03-08 15:09:34 +11:00
Peter Barker cfd76b8dd9 SITL: name fields when assembling vision_position_delta message 2024-03-07 18:13:35 +11:00
Peter Barker 8c9ed697fe SIM_Vicon: label fields going into VISION_SPEED_ESTIMATE packets 2024-03-07 18:13:26 +11:00
Peter Barker c12bb6720a SIM_Vicon: label fields going into _POSITION_ESTIMATE packets 2024-03-07 18:13:17 +11:00
Peter Barker b30bdb7dd3 SITL: Sim_Ship: label global_position_int and attitude packet fields 2024-03-07 18:13:09 +11:00
Peter Barker 28488cbfd6 SIM_Vicon: correct heartbeating
the heartbeat was packed but never sent
2024-03-07 18:13:01 +11:00
Peter Barker 298ef64836 SIM_Vicon: label fields going into ODOMETRY packets 2024-03-07 18:13:01 +11:00
Peter Barker 21ca4f83f4 SITL: name fields in loweheiser mavlink packet
avoid field ordering issues
2024-03-07 15:52:16 +11:00
Andrew Tridgell feff2f34e9 SITL: fixed the vehicle type of the simulated ship
this was broken by https://github.com/ArduPilot/ardupilot/pull/23763

we need to look for other places where we have assumed the MAVLink
field orderin in recent changes
2024-03-07 15:51:15 +11:00
Andrew Tridgell 4f9b66c267 SITL: fixed precland simulator
fixed units of height, was mixed cm and m, now just m AMSL
2024-03-06 09:39:51 +11:00
Andrew Tridgell 07f34a2f74 SITL: added NoVehicle 2024-02-28 19:22:14 +11:00