Commit Graph

1058 Commits

Author SHA1 Message Date
Andrew Tridgell 3e3c086ab7 SITL: build the whole simulator as double precision 2023-08-15 22:39:23 +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
Peter Barker 7f8df080f8 SITL: correct compilation for CubeOrange-SimOnHardware
../../libraries/SITL/SIM_GPS.cpp: In member function 'void SITL::GPS::send_gsof(const uint8_t*, uint16_t)':
../../libraries/SITL/SIM_GPS.cpp:1292:24: error: 'AP_InternalError' has not been declared
 1292 |         INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
2023-08-11 12:40:59 +10:00
Peter Barker 65cc16c51d SITL: add descriptions for simulated IMU scale factors 2023-08-11 10:34:02 +10:00
Peter Barker cbd2b199eb SITL: factor simulated GPS 2023-08-11 10:01:56 +10:00
Ryan Friedman 6a2a852450 SITL: Implement GSOF SIM
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-09 12:26:10 +10:00
bnsgeyer 53100c8e96 SITL: fix vertical axis dynamics for autorotation 2023-08-07 22:10:09 -04:00
Ryan Friedman 843a14ee57 SITL: Add heading and speed_2d utils
* These are also needed by the upcoming GSOF PR

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-07 08:40:58 -07:00
Ryan Friedman 7c2baa75d9 SITL: Rename LORD to MicroStrain
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-07 19:16:03 +10:00
Peter Barker 5d52d7f78b SITL: add description for SIM_BATT_VOLTAGE 2023-08-07 15:32:31 +10:00
Andrew Tridgell 217f073165 SITL: added simulated MSP GPS 2023-07-31 14:24:04 +10:00
Andy Piper 3224cf19a8 SITL: remove unused variables 2023-07-13 11:02:40 +10:00
Peter Barker 6b87318062 SITL: act on safety switch being enabled in SITL by zeroing outputs 2023-07-12 17:53:12 +10:00
rishabsingh3003 6b8dfdfc10 SITL: Add simulated nooploop tofsense 2023-06-28 17:16:22 +10:00
Peter Barker 320bd43334 SITL: use SIM_config for ship and adsb simulations 2023-06-17 17:57:15 +10:00
Peter Barker 5791aea3fc SITL: correct compilation when AP_SIM_IS31FL3195_ENABLED off
object won't exist in that case
2023-06-17 15:14:45 +10:00
bnsgeyer a18c818949 SITL: cleanup tradheli gas engine inputs 2023-06-16 23:18:23 +10:00
bnsgeyer 1bef3839e5 SITL: tradheli - add gas engine model for conventional heli 2023-06-16 23:18:23 +10:00
Peter Barker 7952e99813 SITL: add IS31FL3195 simulator 2023-06-15 12:14:26 +10:00
Randy Mackay 29292c2aaa SITL: simulated SF45b fixes and enhancements
resolve crash if time_delta_ms is too long
correct sample_count calculation
sends one reading per 3deg (closer to real device)
distance max is 53m
returns -1m on failure
sweeps back and forth -190~190 deg
2023-06-14 17:49:30 +10:00
Ryan Friedman 35dda812ae SITL: Value Semantics for TOW calc
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-31 15:01:31 +10:00
Peter Barker dccac6dfd0 SITL: add documentation for SIM_GPS_TYPE and SIM_GPS2_TYPE 2023-05-25 17:59:12 +10:00
Peter Barker 34a55166f8 SITL: correct compilation for SimOnHardware 2023-05-22 22:55:54 +10:00
Peter Barker bce2625918 SITL: fix missing method declaration compile failure
RyanF found this when eliminating other problems
2023-05-20 17:28:08 +10:00
Henry Wurzburg 68ff5a2b48 SITL: add metadata to simulated compass 2023-05-18 11:18:23 +10:00
Henry Wurzburg 0a060aa520 SITL: Move SITL on hdwr scripts to Tools and simplify 2023-05-16 21:11:36 +10:00
Peter Barker 29d6c51f43 SITL: stop using mavlink channels for packing messages
precedent was set in the mavlink rangefinder; we don't need to re-use SITL buffers for this
2023-05-16 10:17:56 +10:00
Peter Barker ae7fb93e4c AP_HAL_SITL: add simulated RPLidarA1 2023-05-16 10:15:23 +10:00
Peter Barker 2257d4686f SITL: add simulated RPLidarA1 2023-05-16 10:15:23 +10:00
Peter Barker ae6b1ffc8f SITL: factor RPLidar simulation to allow for subclassing 2023-05-16 10:15:23 +10:00
Peter Barker 5ba3260870 SITL: rename SIM_PS_RPLidarA2 to SIM_PS_RPLidar 2023-05-16 10:15:23 +10:00
Peter Barker 742416c2aa SITL: RPLidar: add support for GET_DEVICE_INFO command 2023-05-16 10:15:23 +10:00
Peter Barker b7f3d25bed SITL: add simulator for LM2755 RGBLED 2023-05-15 22:02:07 +10:00
Peter Barker aac43a2302 SITL: guard against LP5562 not being included
... not included on SIMOnHardware, for  example
2023-05-14 18:25:36 +10:00
Peter Barker 67537b1806 SITL: add simulator for RDS02UF rangefinder 2023-05-13 20:05:18 +10:00
Peter Barker 19d2659179 SITL: add simulator for LP5562 RGBLED 2023-05-11 11:08:50 +10:00
Pierre Kancir 442d4ba4e0 SITL: fix memory leak on multi fcu json sim 2023-05-09 20:39:04 +10:00
Willian Galvani 9179bce1ca SITL: initialize battery at 0V 2023-04-12 15:20:05 +10:00
Andrew Tridgell 4c4af3330a SITL: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
Rhys Mainwaring c3b576a72f SITL: enable 32 servos in SITL_JSON
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>

SITL: update JSON readme

- Update servo data packet section for 32 channel output.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-03-29 21:56:38 +11:00
bugobliterator 5f2dd4ab5c SITL: add support for testing DroneCAN 2023-03-29 17:16:39 +11:00
bugobliterator e7533c006b SITL: add support for auxiliary IMUs 2023-03-21 10:04:16 +11:00
Andrew Tridgell d659642826 SITL: prevent a conflict with a _serialize() macro on cygwin
some cygwin versions define a macro _serialize with 1 argument
2023-03-15 19:32:22 +11:00
Pierre Kancir f0777b5cb0 SITL: constraint SITL rover to 360deg/s yaw rate on ackerman
This prevent the gsf to blow up due to the rover reaching 1042 deg/s yaw rate.
2023-03-15 19:31:26 +11:00
Peter Barker 1cdcc0b5f1 SITL: add documentation for SIM_OPOS* and SIM_FLOAT_EXCEPT 2023-03-14 10:44:28 +11:00
Peter Barker 06e20761de SITL: improve IE24 simulated tank pressure
this is simply the inverse of what the flight code does
2023-03-11 11:50:20 +11:00
Peter Barker 05c996bfcc SITL: correct use of uninitialised stack data in SIM_Gimbal 2023-03-06 14:18:59 +11:00
Peter Barker 8f7f0d5e72 SITL: add and use SIM_RGBLED 2023-02-28 10:24:43 +11:00
Peter Barker 4591895540 SITL: add gyro bias simulation 2023-02-24 09:21:42 +11:00
James O'Shannessy 010b4fc58c SITL: Remove support for reading gyro data from file for SIM on Hardware build 2023-02-21 16:48:43 +11:00