Commit Graph

399 Commits

Author SHA1 Message Date
Peter Hall 3002089396 AP_HAL_SITL: update function names 2020-03-10 10:37:26 +11:00
Andrew Tridgell 09d10df3a3 HAL_SITL: allow more than 32 LEDs on a pin 2020-02-27 13:12:26 +11:00
Andy Piper dcdd1707f7 AP_HAL_SITL: make throttle comply with quadplane dynamics 2020-02-22 11:15:37 +11:00
Andy Piper 7571b4d95c AP_HAL_SITL: SITL version of DSP implementation 2020-02-22 11:15:37 +11:00
Pierre Kancir 95ee01082f AP_HAL_SITL: update search for dumpstack.sh 2020-02-20 20:41:26 +11:00
Rishabh c65d1ff8d8 HAL_SITL: support new motor orders 2020-02-19 11:28:25 +09:00
Peter Barker df614cc34f AP_HAL_SITL: print valid model names if none supplied 2020-02-07 15:03:05 +11:00
Peter Barker 51a1ee83a6 AP_HAL_SITL: correct name on stacktrace files
We write these files out for many more things than just segfaults
2020-02-06 13:48:11 +11:00
Andrew Tridgell ae9e8c3dbc HAL_SITL: fixed bitmask error on storage erase 2020-01-31 11:06:29 +11:00
Rishabh ded7c422f7 HAL_SITL: support new motor orders 2020-01-29 16:57:23 +09:00
Peter Barker 623c84ae74 AP_HAL_SITL: implement trap method 2020-01-29 10:27:01 +11:00
Andrew Tridgell dd1426cf73 HAL_SITL: allow for separate position for 2nd GPS
makes for better simulation of moving baseline
2020-01-26 16:55:17 +11:00
Peter Barker 9ef23872e0 AP_HAL_SITL: check result code of pthread_attr_init 2020-01-21 11:22:20 +11:00
Andrew Tridgell 4aa78dc891 AP_HAL_SITL: make all semaphores recursive
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
2020-01-19 20:19:30 +11:00
Andrew Tridgell 28dcca4e1e HAL_SITL: added betaflight-x-rev frame type 2020-01-16 19:13:13 +11:00
Peter Barker f504009287 AP_HAL_SITL: disable SITL stack checking due to memory corruption
There appears to be issues with pthread_attr_setstack.
2020-01-15 19:41:58 +11:00
Peter Barker 3074855ea3 AP_HAL_SITL: correct port numbers in diagnostic output 2020-01-09 09:43:56 +11:00
Peter Barker 0c8e6f212d AP_HAL_SITL: add simulated frsky support 2020-01-08 23:53:48 +11:00
Andy Piper a469a31528 AP_HAL_SITL: prevent dump_stack_trace() blowing up on macOS 2020-01-06 14:57:46 +11:00
Andy Piper 8b0fc1207d AP_HAL_SITL: record throttle value instead of motors on/off 2019-12-31 10:34:02 +11:00
Peter Barker f480df228b AP_HAL_SITL: set cloexec on eeprom.bin 2019-12-02 19:06:34 +11:00
Peter Barker 907977b2f2 AP_HAL_SITL: support for virtual hardware safety switch 2019-11-26 10:14:11 +11:00
Andrew Tridgell b6d1170c2e HAL_SITL: update EFI simulation 2019-11-17 20:10:54 +11:00
Willian Galvani e190d99bc6 SITL: Add 6dof frame for Sub 2019-11-11 07:39:57 -08:00
Peter Barker fdb9fb2f62 AP_HAL_SITL: add support for simulated serial rangefinders
AP_HAL_SITL: add Benewake rangefinder simulator

AP_HAL_SITL: add support for simulated LightWareSerial rangefinder

AP_HAL_SITL: add support for simulated Lanbao rangefinder

AP_HAL_SITL: add support for simulated BLping rangefinder

AP_HAL_SITL: add support for simulated LeddarOne rangefinder

AP_HAL_SITL: add support for simulated uLanding rangefinders

AP_HAL_SITL: add support for simulated MaxsonarSerialLV rangefinders

AP_HAL_SITL: add support for simulated Wasp rangefinders

AP_HAL_SITL: add support for simulated NMEA rangefinders
2019-11-08 20:12:28 +11:00
Peter Barker 9da0e480f2 AP_HAL_SITL: add support for bi-directional simulated serial devices 2019-11-08 20:12:28 +11:00
Mark Whitehorn 3873baf676 AP_HAL_SITL: change in_sensor_config_error to in_config_error 2019-11-08 10:14:34 +11:00
Peter Hall 58d2c9669e AP_HAL_SITL: pass ADSB home location not string 2019-11-05 11:46:59 +11:00
Peter Barker b0f3c89939 AP_HAL_SITL: correct format string 2019-11-05 11:29:08 +11:00
Andrew Tridgell fc4577dce8 HAL_SITL: support simulated serial LEDs 2019-11-04 13:01:59 +11:00
Peter Barker 49687d4e5d AP_HAL_SITL: ToneAlarm doesn't play tones if disabled via param 2019-10-16 16:00:35 +11:00
Peter Barker 111c17d0b4 AP_HAL_SITL: add a simulated buzzer 2019-10-16 16:00:35 +11:00
Andrew Tridgell b9291d95f0 HAL_SITL: pre-fill stack on each loop with NaN
this allows us to catch use of uninitialised stack variables in SITL
without having valgrind running
2019-10-01 17:35:26 +10:00
Peter Barker 045960fe57 AP_HAL_SITL: catch SIGTERM and exit with zero exit status 2019-09-23 19:36:38 +10:00
Andrew Tridgell 85332d49a2 HAL_SITL: added MotorBoat 2019-09-23 17:22:01 +10:00
Andrew Tridgell f86a7d347d Revert "AP_HAL_SITL: set initial PWM values to a flag value"
This reverts commit 1735563bb7.

This commit broke RC input on high channels with sim_vehicle.py, plane
getc RC failsafe immediately
2019-09-15 18:26:50 +10:00
Peter Barker 1735563bb7 AP_HAL_SITL: set initial PWM values to a flag value
These should never be used.  Setting them to a flag value may give a
hint to someone trying to debug a problem in the future.
2019-09-13 08:58:43 +10:00
Peter Barker 15308af230 AP_HAL_SITL: avoid lockstep scheduling issue with semaphores
If there is another thread holding a lock that the main thread wants to
take while pretending to be the IO thread, we will wait forever as we do
not move SITL time forward while pretending to be the IO thread.

This patch simply allows time to move forward if we've failed to take a
semaphore immediately and need to wait.
2019-09-10 21:01:37 +10:00
Randy Mackay 0dd8525c99 AP_HAL_SITL: resolve compiler warning in sitl_airspeed by using fabsf 2019-09-10 09:15:56 +10:00
Andrew Tridgell 5e5c30efe8 HAL_SITL: allow SITL to use SERIALn_PROTOCOL=23
this allows for testing of RC input protocol parsing in SITL
2019-09-06 08:51:45 +10:00
Michael du Breuil 69d3e97533 AP_HAL_SITL: Remove set_stop_pin from AnalogSource 2019-09-04 09:54:50 +10:00
Jaaaky d7abd636ac AP_HAL_SITL: Fix build with --sitl-flash-storage option 2019-08-28 06:23:04 +10:00
Michael du Breuil 2d40250f9b AP_HAL_SITL: Fix bad check order on heap_realloc 2019-08-27 13:54:54 +10:00
Peter Hall 4492c09b3b AP_HAL_SITL: Scheduler skip set stack on Cygwin 2019-08-20 15:59:32 -07:00
mhefny c1c32ab615 AP_HAL_SITL: add Webots support 2019-08-19 19:36:25 +10:00
Peter Barker 94d2ce13d2 AP_HAL_SITL: allow starting location to come from parameters 2019-08-15 18:00:35 +10:00
Peter Barker cdab58d598 AP_HAL_SITL: remove home_str from constructor
No Aircraft was actually using this in the constructor, so it's really
adding overhead for no good reason.
2019-08-15 15:16:11 +10:00
Anthony Velte 5d2f114947 AP_HAL_SITL: Add scrimmage simulator support 2019-08-13 10:07:26 +10:00
Pierre Kancir 1a71519e17 AP_HAL_SITL: add missing header 2019-08-06 09:37:30 +10:00
Rajat Singhal 4d1f4f3386 HAL_SITL: enable airsim SITL backend 2019-07-17 07:26:50 +10:00