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
d98cda12c6
AP_HAL_SITL: remove HIL_MODE vestiges
2021-10-12 08:57:05 +11: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
Andrew Tridgell
7550368fc7
HAL_SITL: update for changed SITL API
2021-07-14 17:34:40 +10:00
Peter Barker
67ebdc300b
AP_HAL_SITL: reduce scope of loop variable
2021-06-27 10:57:07 +10:00
Peter Barker
933aba66f8
AP_HAL_SITL: avoid nullptr dereference in Replay
2021-01-19 15:15:35 +11:00
Andrew Tridgell
7cc71dc573
HAL_SITL: support VectorNav simulation
2021-01-05 21:13:12 +11:00
Andrew Tridgell
cf187ff837
AP_HAL_SITL: convert to using hal.serial() instead of hal.uartX
2020-12-15 10:32:46 +11:00
Peter Barker
c1202e4878
AP_HAL_SITL: add simulated SF45B
2020-12-09 21:32:36 +11:00
Peter Barker
5e2bd6d9ec
AP_HAL_SITL: add terarangertower simulator
2020-12-08 09:21:06 +11:00
Peter Barker
c52298352a
AP_HAL_SITL: add simulator for IntelligentEnergy 2.4kWh
2020-11-24 12:54:52 +11:00
bugobliterator
09a0d8d0c0
HAL_SITL: add support for AP_Periph SITL build
2020-11-04 19:59:40 +11:00
Peter Barker
602a9592ce
SITL: add Maxell SMBus battery support
2020-10-26 20:34:05 +11:00
Peter Barker
2319638dd2
AP_HAL_SITL: simulated i2c support
2020-08-04 21:40:21 +10:00
Peter Barker
2b69b7ba6a
AP_HAL_SITL: move calculation of simulated rangefinder range to inside SIM_Aircraft
...
this will allow us to use the for non-serial rangefinder backends
2020-08-04 21:40:21 +10:00
Peter Barker
38e3d63fac
AP_HAL_SITL: correct AP_Terrain cast-align compilation failure on SITL_arm_linux_gnueabihf
2020-07-23 18:10:06 +10:00
Andrew Tridgell
ac604cac54
HAL_SITL: update for GPS param changes
2020-07-10 13:28:38 +10:00
Andy Piper
a9ded9d870
AP_HAL_SITL: add CRSF simulation driver
2020-07-07 18:48:06 +10:00
Peter Barker
0b431f3ecd
AP_HAL_SITL: add simulated GY-US42-v2 rangefinder
2020-07-04 13:40:10 +10:00
Peter Barker
6056cc9d54
AP_HAL_SITL: add support for simulated RichenPower generator
2020-07-03 08:21:42 +09:00
Peter Barker
c3246d61f4
AP_HAL_SITL: add simulated LightWare serial lidar talking new binary protocol
2020-07-02 10:50:59 +10:00
Randy Mackay
630bc01101
AP_HAL_SITL: send vehicle velocity to sitl vicon class
2020-06-02 08:33:42 +09:00
Peter Barker
be9fc57e8f
AP_HAL_SITL: add support for simulated RPLidarA2
2020-05-22 17:06:16 +10:00
Peter Barker
185bc68476
AP_HAL_SITL: add simulated mavlink-attached rangefinder
2020-04-21 20:44:59 +10:00
Peter Barker
e67347f011
AP_HAL_SITL: rename APMrover2 to Rover
2020-04-14 09:50:34 +09: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
Andy Piper
dcdd1707f7
AP_HAL_SITL: make throttle comply with quadplane dynamics
2020-02-22 11:15:37 +11:00
Peter Barker
0c8e6f212d
AP_HAL_SITL: add simulated frsky support
2020-01-08 23:53:48 +11:00
Andy Piper
8b0fc1207d
AP_HAL_SITL: record throttle value instead of motors on/off
2019-12-31 10:34:02 +11:00
Andrew Tridgell
b6d1170c2e
HAL_SITL: update EFI simulation
2019-11-17 20:10:54 +11: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
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
Peter Barker
111c17d0b4
AP_HAL_SITL: add a simulated buzzer
2019-10-16 16:00:35 +11: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
Peter Barker
94d2ce13d2
AP_HAL_SITL: allow starting location to come from parameters
2019-08-15 18:00:35 +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
Peter Barker
be5478902c
AP_HAL_SITL: add precland object
2019-03-01 20:28:22 +11:00
Peter Barker
80e8f9cdd8
AP_HAL_SITL: read all available SITL RC input packets
...
MAVProxy runs on its own clock. While our clock is stopped for whatever
reason MAVProxy will continue to send RC input. This patch always gives
us the most recent RC input from MAVProxy.
Also add sanity check on packet received
2019-02-26 14:17:21 +11:00
Peter Barker
17589ae3b9
AP_HAL_SITL: allow testing of throttle-goes-to-low-fixed-value rc failsafes
2019-02-14 11:49:59 +11:00
Tom Pittenger
81df9aaeb4
AP_HAL_SITL: unify singleton naming to _singleton and get_singleton()
2019-02-10 19:09:58 -07:00
Peter Barker
9253e9b381
AP_HAL_SITL: add simulated parachute
2019-01-09 13:16:03 +11:00
Peter Barker
3d08d02a66
AP_HAL_SITL: reorder setting SO_REUSEADDR and binding rc in port
...
This stops things failing on cygwin, and may explain rebind failures we
see in SITL.
2018-12-19 16:03:08 +00:00
Pierre Kancir
a5e5ee73eb
AP_HAL_SITL: correct battery setup for rover
2018-12-18 14:36:32 +09:00
Peter Barker
e420f62b62
AP_HAL_SITL: check to see if setting socket and fd options worked
2018-12-18 08:51:01 +11:00
Kristian Klausen
d7f529d3c6
AP_HAL_SITL: Use double point precision when converting langitudes and longitudes from degrees to radians.
...
See #9536
2018-11-15 11:22:56 +11:00
Andrew Tridgell
5480479e73
HAL_SITL: fixed SITL example progs
2018-11-07 07:35:45 +11:00
Peter Barker
d968e27b45
AP_HAL_SITL: eliminate float-equals issues
2018-08-28 09:54:47 +10:00
Patrick José Pereira
fb7c46bda0
AP_HAL_SITL: Remove unused check
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-08-27 23:35:34 +01:00
Pierre Kancir
96c54550e5
AP_HAL_SITL: rearrange Grippers and Sprayers in SITL
...
Adds parameters to configure and disable
2018-07-31 23:34:43 +10:00
Andrew Tridgell
3fc6968700
HAL_SITL: allow delay from other than main thread
2018-07-09 19:41:18 +10:00
Patrick José Pereira
cd5c59773b
AP_HAL_SITL: Use SITL, baro, INS and compass singletons
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Patrick José Pereira
a4d8ed4b75
AP_HAL_SITL: Use reinterpret_cast with AP_Param::find_object
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-26 00:02:01 +01:00
Francisco Ferreira
06c41bc768
AP_HAL_SITL: re-use unused FDM address option for FG view IP address
2018-06-20 16:38:52 +01:00
Francisco Ferreira
46868409ec
AP_HAL_SITL: remove unused code
2018-06-20 16:38:52 +01:00
Peter Barker
f2a842e415
AP_HAL_SITL: set_cloexec on SITL's RCIN port
2018-06-19 09:14:28 +10:00
Eugene Shamaev
5d4579a086
AP_HAL_SITL: add wind type parameters
2018-05-02 07:32:25 -07:00
Michael du Breuil
5bd4091976
AP_HAL_SITL: Protect against nullpointer dereference
2018-03-31 16:15:48 +09:00
Michael du Breuil
8dd55a85cd
SITL: Create a second voltage to monitor for battery voltages
2018-03-27 22:12:21 +01:00
Peter Barker
85b41a8abb
AP_HAL_SITL: add vicon-over-mavlink support
2018-03-27 20:28:51 +09:00
Peter Barker
1151d76345
AP_HAL_SITL: sim: namespace for specifying SITL devices from cmdline
2018-03-27 20:28:50 +09:00
Andrew Tridgell
403ba0c325
HAL_SITL: cope with cygwin64
2018-03-02 17:11:31 +11:00
Nicholas Engle
8b08e9388d
AP_HAL_SITL: Add SIM_WIND_DIR_Z parameter for SITL
...
This controls the vertical pitch of the 3d wind vector, allowing futher control of the wind
using systems like dronekit. This change directly effects the calcuation of the wind vector
2018-02-05 16:38:53 -08:00
khancyr
4413ebab7b
AP_HAL_SITL: suppress output until initialization is finished
2017-11-13 10:52:38 +11:00
Jacob Walser
07fa65a88c
AP_HAL_SITL: Add current and voltage monitoring implementation for Sub
2017-11-13 10:50:27 +11:00
Miguel Arroyo
86b9942d51
AP_HAL_SITL: move SITL Compass to standard sensor backend model
2017-06-29 09:22:08 +10:00
Pierre Kancir
0afc907b0a
AP_HAL_SITL: rename sitl_ins & _update_ins to sitl_airspeed & _update_airspeed
2017-06-07 20:29:02 +10:00
Pierre Kancir
599e3d7b83
SITL: make range finder a standalone sitl plugin
2017-06-07 20:28:25 +10:00
Andrew Tridgell
ac82d1a65d
HAL_SITL: moved SITL baro to AP_Baro_SITL
2017-05-03 20:12:04 +10:00
Pierre Kancir
f0f7ca2386
SITL: State constrain rover motor input between 1000 and 2000
2017-04-26 10:38:01 +10:00
Andrew Tridgell
961da9deb8
HAL_SITL: use quaterion instead of eulers
2017-04-16 14:01:36 +10:00
Andrew Tridgell
3236090d71
HAL_SITL: allow plane and rover to use SIM_ENGINE_FAIL
2017-04-09 16:45:19 +10:00
Guilherme Sousa
584890a864
AP_HAL_SITL: Fail motors with SIM_ENGINE_FAIL
2017-03-29 22:43:14 +11:00
Pierre Kancir
5b8c89225a
SITL: Make socket more verbose
2017-03-18 19:58:11 +11:00
Pierre Kancir
567a8d68e5
SITL: Make socket error more verbose
2017-03-18 19:58:11 +11:00
Pierre Kancir
1bb4e3c9b7
AP_IRLock_SITL: make port variable
2017-03-18 19:58:11 +11:00
Andrew Tridgell
def6e014cf
HAL_SITL: removed old optflow simulation
2016-11-28 08:26:56 +11:00
Pierre Kancir
86c8145bd9
SITL: Change Flighgear port with instance number
2016-11-16 08:27:48 +11:00
Pierre Kancir
e2b939df39
SITL: rename simin to rcin for better readability
2016-11-16 08:27:48 +11:00
Pierre Kancir
59c84c637e
SITL: make fg view optional
2016-11-16 08:27:48 +11:00
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
2016-11-02 16:04:47 -02:00
Andrew Tridgell
d2287caf1c
HAL_SITL: removed old servo slew rate code
2016-10-25 20:39:38 +11:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Tom Pittenger
acaf0c6a5d
SITL: LPF the SIM_WIND_DIR and SIM_WIND_SPD values to eliminate step inputs
2016-07-15 18:37:40 -07:00
Peter Barker
309ac53806
SITL: correct adsb initialisation
...
Parameters have not yet been initialised in _sitl_setup, so move
should-run checks into update
2016-06-20 18:16:34 -07:00
Tom Pittenger
1770f314ac
SITL: change SIM_ADSB default to -1 to default disabled to leave telem port available
2016-06-15 17:22:54 -07:00
Tom Pittenger
f2b5f5f4a5
AP_HAL_SITL: adsb is always enabled in the sim, controlled by param SIM_ADSB_COUNT
2016-06-14 21:03:30 -07:00
Andrew Tridgell
0166ab2038
HAL_SITL: check for SIM_RC_FAIL
2016-06-05 05:54:56 +10:00
Tom Pittenger
5df2e57209
AP_HAL_SITL: do not compile terrain class when terrain is not disabled via compile flag
2016-06-03 11:07:36 -07:00
Andrew Tridgell
9081310ff1
HAL_SITL: support simulator RC input
2016-05-04 12:51:28 +10:00