Commit Graph

469 Commits

Author SHA1 Message Date
Peter Barker c3246d61f4 AP_HAL_SITL: add simulated LightWare serial lidar talking new binary protocol 2020-07-02 10:50:59 +10:00
Peter Barker f842c27070 AP_HAL_SITL: correct clearing of UART drivers 2020-06-03 17:00:44 +10:00
Randy Mackay 630bc01101 AP_HAL_SITL: send vehicle velocity to sitl vicon class 2020-06-02 08:33:42 +09:00
Iampete1 c31a4f4b14 AP_HAL_SITL: add JSON backend 2020-05-29 08:25:24 +10:00
Peter Barker 80615c44ff AP_HAL_SITL: add discard_input method on UARTDriver 2020-05-26 09:20:32 +10:00
Andy Piper ee87ef7013 AP_HAL_SITL: make harmonics part of DSP
add vector mean function to dsp
allow fft_start() to use ObjectBuffer<float> for lock-free access
2020-05-24 07:43:34 +10:00
Peter Barker be9fc57e8f AP_HAL_SITL: add support for simulated RPLidarA2 2020-05-22 17:06:16 +10:00
bugobliterator 07907ac81d HAL_SITL: fix gcc build on macosx 2020-05-17 16:12:43 +10:00
Peter Barker 5f8a9d1e15 AP_HAL_SITL: create and use INTERNAL_ERROR macro so we get line numbers 2020-04-30 13:21:36 +10:00
Peter Barker 185bc68476 AP_HAL_SITL: add simulated mavlink-attached rangefinder 2020-04-21 20:44:59 +10:00
Peter Barker 59c02816b8 AP_HAL_SITL: find dumpstack when run from vehicle subdirectory 2020-04-20 14:25:08 +10:00
Peter Barker e67347f011 AP_HAL_SITL: rename APMrover2 to Rover 2020-04-14 09:50:34 +09:00
Andrew Tridgell 5125fc1a64 HAL_SITL: added checks for flash storage 2020-04-14 10:02:51 +10:00
Andrew Tridgell c0039c85e0 HAL_SITL: emulate sector size for flash storage properly 2020-04-14 10:02:51 +10:00
Andrew Tridgell e8fb082a9a HAL_SITL: fixed simulation of roll/pitch of moving baseline ublox 2020-04-11 21:14:31 +10:00
Andrew Tridgell b90b4f9157 HAL_SITL: implement moving baseline for ublox
this allows testing of the moving baseline dual ublox code
2020-04-11 21:14:31 +10:00
Peter Barker 78e432af0c AP_HAL_SITL: do not let outbound queue length to grow too far
This basically limits our loop rate to whatever is listening on uartA
can handle in terms of mavlink traffic.
2020-04-07 14:51:32 +10:00
Peter Barker 7028eb8d24 AP_HAL_SITL: provide method to get amount of data still pending in outbound system queues 2020-04-07 14:51:32 +10:00
bugobliterator 9d7022514e HAL_SITL: ensure that unique id string end in null char 2020-04-07 09:40:05 +10:00
Peter Barker 6f685b8ac5 AP_HAL_SITL: send statustext at regular intervals after watchdog reset 2020-03-31 14:30:11 +11:00
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
Grant Morphett fdcdbddecc AP_HAL_SITL: Send NMEA GPHDT sentence if enabled.
and add VTG message
2019-07-13 11:05:57 +10:00
Andrew Tridgell ac7a67fda0 HAL_SITL: added uartH 2019-07-12 17:01:21 +10:00
Peter Barker 848a70acd4 AP_HAL_SITL: fix rebooting while in sensor config error loop 2019-07-09 10:01:23 +10:00
Peter Barker fe8d631964 AP_HAL_SITL: ensure termination of readlink-derived progname 2019-07-08 13:18:22 +10:00
U-REDMOND\akolobov 6dd906f07f HAL_SITL: Integrating Silent Wings SITL with the sim_vehicle 2019-07-08 09:32:59 +10:00
Peter Barker 39b17e42d0 AP_HAL_SITL: add missing include for AP_BoardConfig.h 2019-07-04 13:57:40 +10:00
Michael du Breuil a6623bfad3 AP_HAL_SITL: Fix missing include for logger.h 2019-06-27 14:56:21 +10:00
Michael du Breuil 75c62154b5 AP_HAL_SITL: Add missing override declarations 2019-06-18 00:06:32 -07:00
Peter Barker ccbf3234f7 AP_HAL_SITL: return RC protocol being decoded 2019-06-18 11:35:38 +10:00
Peter Barker c59dde78c6 AP_HAL_SITL: dump stack trace as part of panic() 2019-06-13 09:25:42 +10:00
Peter Barker dd68b14f46 AP_HAL_SITL: move dump_strack_trace into HAL 2019-06-13 09:25:42 +10:00
Peter Barker e061df0f6d AP_HAL_SITL: attempt to dump stack trace as part of segv handler 2019-06-07 22:03:41 +10:00
Andrew Tridgell 02403d9b93 HAL_SITL: added support for exit on panic()
used by autotest server
2019-06-07 20:33:13 +10:00
Francisco Ferreira 0e33907cf7 AP_HAL_SITL: change NMEA output to use new macro 2019-05-21 09:41:15 +10:00
Peter Barker 0a3fe32209 AP_HAL_SITL: log watchdog reset 2019-05-16 17:21:24 +10:00
Andrew Tridgell f8bcdf9d3a HAL_SITL: fixed cygwin build error 2019-05-15 15:33:48 +10:00
Andrew Tridgell c1b201d051 HAL_SITL: fixed comment typo 2019-05-15 15:33:48 +10:00
Andrew Tridgell 916b3003e1 AP_HAL_SITL: removed unusued AP_Common/Semaphore.h 2019-05-15 15:33:48 +10:00
Andrew Tridgell 0873e54cc0 HAL_SITL: fixed build error 2019-05-15 15:33:48 +10:00
Andrew Tridgell 6897cecea2 HAL_SITL: support watchdog reset in SITL
this only works for speedup 1, and does not initialise the physics
models correctly for internal models
2019-05-15 15:33:48 +10:00
Peter Barker 900d9f71f6 AP_HAL_SITL: stop taking address of packed members 2019-05-01 19:36:49 -07:00
Peter Barker 0dd71e7b3a AP_HAL_SITL: Bitmask is now a template 2019-04-16 15:12:07 +10:00
Andrew Tridgell 7a70a888b5 HAL_SITL: added empty flash driver 2019-04-11 13:22:53 +10:00
Michael du Breuil a8a71db258 AP_HAL_SITL: Correct range check on UART ports
Coverity CID 308362
2019-04-09 13:01:33 +10:00
Pierre Kancir a700b647db AP_HAL_SITL: fix ‘heap’ shadowing 2019-04-08 08:02:40 -07:00
Tom Pittenger c39cc7dbb8 AP_HAL_SITL: rename dataflash to logger and refactor the filename logger.bin 2019-03-28 16:40:58 +11:00
Peter Barker 26c01accb9 AP_HAL_SITL: remove unused from method 2019-03-23 11:23:07 +11:00
Peter Barker a1088f6cd6 AP_HAL_SITL: add support for ToneAlarm via sfml 2019-03-23 07:10:50 +11:00
Peter Barker fa082df040 AP_HAL_SITL: add missing CLOEXECs on tcp ports 2019-03-13 18:02:48 +11:00
Peter Barker be5478902c AP_HAL_SITL: add precland object 2019-03-01 20:28:22 +11:00