Commit Graph

553 Commits

Author SHA1 Message Date
Andrew Tridgell 535d7f0d85 AP_HAL_SITL: removed terrain home correction 2022-03-10 07:34:20 +11:00
Andrew Tridgell 5eb8b8d72e HAL_SITL: support mavcan message forwarding 2022-02-12 16:36:05 +11:00
Andrew Tridgell 9fd25907e2 HAL_SITL: fixed mapping of --serial ports in SITL
uart paths are still in uartABCD order
2022-01-21 10:07:55 +11:00
Peter Barker ee341bc4eb SITL: add compilation option AP_SIM_CRSF_ENABLED 2022-01-15 21:56:33 +11:00
Peter Barker 08b8d3ad34 AP_HAL_SITL: correct compilation when SIM options disabled
AP_HAL_SITL: use AP_ASIM_GIMBAL_ENABLED

AP_HAL_SITL: use AP_SIM_ADSB_ENABLED

AP_HAL_SITL: use AP_SIM_RPLIDARA2_ENABLED

AP_HAL_SITL: use AP_SIM_PS_LIGHTWARE_SF45B_ENABLED

AP_HAL_SITL: use AP_SIM_PS_TERRARANGERTOWER_ENABLED

AP_HAL_SITL: use AP_SIM_AIS_ENABLED

AP_HAL_SITL: use AP_SIM_JSON_MASTER_ENABLED
2022-01-15 17:37:24 +11:00
Pierre Kancir 6584fef711 AP_HAL_SITL: catch more signal for correct exit
SIGINT is for ctrl-c
SIGHUP and SIGQUIT are use within term. If the term close before SITL, it will trigger one of those and then exit cleanly anyway
2022-01-12 12:31:56 +11:00
Shiv Tyagi af950e266b AP_HAL_SITL: add dataflash to spi device table
We simulate jedec flash for logging. Hence, we need to add dataflash to device table. Also, we need to remove HAL_LOGGING_SITL_ENABLED since we no longer need it

Co-Authored-By: Divyateja Pasupuleti <divyateja2004@gmail.com>
2021-12-25 09:14:31 +11:00
Andy Piper fa91e74fde AP_HAL_SITL: remove redundant harmonics from DSP 2021-12-22 18:13:38 +11:00
Peter Barker fbe46f400f AP_HAL_SITL: stop passing home_str to _sitl_setup
This is poked into the model now
2021-12-13 09:30:33 +11:00
Peter Barker 2f77fef10e AP_HAL_SITL: permit float-equal while we do comparison vs INFINITY 2021-12-13 08:38:17 +11:00
Peter Barker acbe567202 AP_HAL_SITL: consolidate rangefinder range calculations 2021-12-11 20:10:10 +11:00
Peter Barker 6e8c7c6b03 AP_HAL_SITL: remove unused mag-data delay buffer state variables
This delay buffer code is now in AP_Compass_SITL
2021-12-07 16:41:11 +11:00
Peter Barker cce14d8461 AP_HAL_SITL: remove unused _home_str member 2021-12-07 09:36:22 +11:00
Peter Barker 8cc7f51de1 AP_HAL_SITL: tidy set/get of hw RTC 2021-12-06 12:58:43 +11:00
Peter Barker 11cbd68296 AP_HAL_SITL: remove incorrect use of ARRAY_SIZE
This was converted to a linked list....
2021-11-24 18:26:17 +11:00
Peter Barker cdccc67fb8 AP_HAL_SITL: make SITL::ADSB a SITL::SerialDevice 2021-11-23 11:09:29 +11:00
Andrew Tridgell 3b3abdeef0 AP_HAL_SITL: support up to 9 UARTs 2021-11-22 22:48:59 +11:00
Peter Barker eb6da9512f AP_HAL_SITL: quieten i2c-device-creation diagnostics 2021-11-12 10:17:28 +11:00
bugobliterator 09096cb355 AP_HAL_SITL: add get_storage_ptr method 2021-11-10 17:21:35 +11:00
Peter Barker 9ebd0cdeed AP_HAL_SITL: use SITL::SerialDevice in place of pipe for communication 2021-11-06 16:54:07 +11:00
Peter Barker 02dc42275c AP_HAL_SITL: remove unused/unimplemented methods/vars, tidy namespacing 2021-10-28 09:09:44 +11:00
Andrew Tridgell 8192661042 AP_HAL_SITL: rename uLanding simulation to USD1 2021-10-26 15:31:12 +11:00
Peter Barker cf9bbb570c AP_HAL_SITL: correct nullptr check on simulated mavlink rangefinder
Obvious copy/paste error
2021-10-22 21:46:01 +11:00
Peter Barker 1ab8a3e3aa AP_HAL_SITL: make simulated GPS work as a SerialDevice 2021-10-21 12:09:21 +11:00
Peter Barker 99e80549b1 SITL: move sitl_gps.cpp to SIM_GPS.cpp 2021-10-21 12:09:21 +11:00
Stephen Dade 1356beb14d AP_HAL_SITL: Add instance to ADSB simulation 2021-10-20 20:21:33 +11:00
Peter Barker 21030c4e83 AP_HAL_SITL: remove written-only AP::sitl().update_rate_hz 2021-10-20 19:07:17 +11:00
Peter Barker 8c9ade3f7f AP_HAL_SITL: move simulated megasquirt to SerialDevice framework 2021-10-17 10:00:08 +11:00
Asa Davis 85fbbe0704 SITL: add simulator for LORD Microstrain serial EAHRS 2021-10-17 08:55:03 +11:00
Peter Barker f5d5387358 AP_HAL_SITL: remove unused ext_fifo_fd member variable 2021-10-12 20:07:19 +11:00
Peter Barker 67226433e3 AP_HAL_SITL: add simulated RAMTRON device 2021-10-12 20:01:49 +11:00
Peter Barker 58a7f022fd AP_HAL_SITL: add simulated SPI devices 2021-10-12 20:01:49 +11:00
Peter Barker d98cda12c6 AP_HAL_SITL: remove HIL_MODE vestiges 2021-10-12 08:57:05 +11:00
Peter Barker 521918d74c SITL: remove set-but-not-used _framerate member variable 2021-10-08 14:23:18 +11:00
Iampete1 9f04cded3b AP_HAL_SITL: AnalogSource: return bool for set_pin 2021-10-06 18:42:51 +11:00
Peter Barker 402669f269 AP_HAL_SITL: add and use HAL_SITL &hal_sitl
analogous to our normal "extern hal" stuff but removes need for casting
2021-10-05 22:24:38 +11:00
Peter Barker 3292128531 AP_HAL_SITL: allow for selection of Storage backend type at runtime 2021-10-05 10:16:54 +11:00
Andrew Tridgell 9a29f2558c HAL_SITL: fixed cygwin build
cygwin does not handle panic being weak, it gets a link error
2021-10-03 14:00:34 +11:00
Peter Barker 6bd2bc2179 AP_HAL_SITL: remove mtk GPSs
These are ancient and of very poor quality.
2021-09-29 17:28:59 +10:00
Josh Henderson 328cf01436 AP_HAL_SITL: make panic() WEAK 2021-09-28 09:11:48 +10:00
Peter Barker 9c24916115 AP_HAL_SITL: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Andrew Tridgell f77e64ac83 HAL_SITL: Fixed default PWMs for blimp 2021-09-18 08:26:23 +10:00
Peter Barker ae40531cd7 AP_HAL_SITL: make heli-blade simulation work 2021-09-08 14:33:19 +10:00
Peter Barker 129eb4c184 AP_HAL_SITL: do not overwrite FETTecESC telemetry data w/SITL ESC data 2021-09-01 18:25:51 +10:00
Pierre Kancir aebe2beba5 AP_HAL_SITL: check that _sitl is not nullptr before using it 2021-08-14 10:20:33 +10:00
Pierre Kancir c91c570814 AP_HAL_SITL: don't use timer_event() that is static from the _scheduler instance 2021-08-14 10:20:33 +10:00
Peter Barker 26f2393014 AP_HAL_SITL: add simulated FETtec ESC 2021-08-13 16:22:37 +10:00
Iampete1 6deacda180 AP_HAL_SITL: load SIM_AIS 2021-08-10 08:11:18 +09:00
bugobliterator 26e2a4a3cb AP_HAL_SITL: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
Iampete1 5ff0f42372 AP_HAL_SITL: add slave JSON instances 2021-08-03 09:22:19 +10:00