Peter Barker
1c7e2f5094
AP_HAL_SITL: correct bind-value SIM_RC_FAIL handling
...
If SITL is not receiving any sitl rc input (so _sitl_rc_in.recv(...) is allways returns -1 then the bind-values code would never be crossed so the RC input values would remain at their initialisation values rather than honouring the SIM_RC_FAIL setting which says they should go to bind values (notably throttle-to-950)
3 years ago
Henry Wurzburg
e682296b58
AP_HAL_SITL: add TeraRange Neo Rangefinder
3 years ago
bugobliterator
8e81ee0292
AP_HAL_SITL: add support for starting node in maintenance mode
3 years ago
Andrew Tridgell
9b0c8674d6
HAL_SITL: catch ubsan errors into a log file
3 years ago
Andrew Tridgell
f55aadfedf
HAL_SITL: fixed undefined behaviour in GPIO
3 years ago
Andy Piper
061ddf7a3f
AP_HAL_SITL: save a sliding window of frequency bins
3 years ago
Iampete1
031115577a
AP_HAL_SITL: enable 32 servo outs
3 years ago
Clyde McQueen
25fd69b947
AP_HAL_SITL: init ArduSub pwm_output to [1500, ...]
...
Signed-off-by: Clyde McQueen <clyde@mcqueen.net>
3 years ago
Andrew Tridgell
7dc5da1247
HAL_SITL: cleanup SITL airspeed handling
...
fixed handling of EAS2TAS, and fixed ratio per sensor.
Removed the wind delay code (which was never being used). We should
add a generic delay filter if we need this again
3 years ago
Andrew Tridgell
a6cd7ffd20
HAL_SITL: fixed warning
3 years ago
Andy Piper
3199412bff
AP_HAL_SITL: add vector addition function
3 years ago
Andy Piper
63229d7eca
AP_HAL_SITL: correct disable channel maths
...
unilaterally write rcoutput to appease the sitl gods
3 years ago
Andrew Tridgell
f8aa4623ef
HAL_SITL: don't use terrain adjustment
3 years ago
bugobliterator
bd2bf7fedc
AP_HAL_SITL: add support for CANFD in SITL
3 years ago
Andrew Tridgell
535d7f0d85
AP_HAL_SITL: removed terrain home correction
3 years ago
Andrew Tridgell
5eb8b8d72e
HAL_SITL: support mavcan message forwarding
3 years ago
Andrew Tridgell
9fd25907e2
HAL_SITL: fixed mapping of --serial ports in SITL
...
uart paths are still in uartABCD order
3 years ago
Peter Barker
ee341bc4eb
SITL: add compilation option AP_SIM_CRSF_ENABLED
3 years ago
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
3 years ago
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
3 years ago
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>
3 years ago
Andy Piper
fa91e74fde
AP_HAL_SITL: remove redundant harmonics from DSP
3 years ago
Peter Barker
fbe46f400f
AP_HAL_SITL: stop passing home_str to _sitl_setup
...
This is poked into the model now
3 years ago
Peter Barker
2f77fef10e
AP_HAL_SITL: permit float-equal while we do comparison vs INFINITY
3 years ago
Peter Barker
acbe567202
AP_HAL_SITL: consolidate rangefinder range calculations
3 years ago
Peter Barker
6e8c7c6b03
AP_HAL_SITL: remove unused mag-data delay buffer state variables
...
This delay buffer code is now in AP_Compass_SITL
3 years ago
Peter Barker
cce14d8461
AP_HAL_SITL: remove unused _home_str member
3 years ago
Peter Barker
8cc7f51de1
AP_HAL_SITL: tidy set/get of hw RTC
3 years ago
Peter Barker
11cbd68296
AP_HAL_SITL: remove incorrect use of ARRAY_SIZE
...
This was converted to a linked list....
3 years ago
Peter Barker
cdccc67fb8
AP_HAL_SITL: make SITL::ADSB a SITL::SerialDevice
3 years ago
Andrew Tridgell
3b3abdeef0
AP_HAL_SITL: support up to 9 UARTs
3 years ago
Peter Barker
eb6da9512f
AP_HAL_SITL: quieten i2c-device-creation diagnostics
3 years ago
bugobliterator
09096cb355
AP_HAL_SITL: add get_storage_ptr method
3 years ago
Peter Barker
9ebd0cdeed
AP_HAL_SITL: use SITL::SerialDevice in place of pipe for communication
3 years ago
Peter Barker
02dc42275c
AP_HAL_SITL: remove unused/unimplemented methods/vars, tidy namespacing
3 years ago
Andrew Tridgell
8192661042
AP_HAL_SITL: rename uLanding simulation to USD1
3 years ago
Peter Barker
cf9bbb570c
AP_HAL_SITL: correct nullptr check on simulated mavlink rangefinder
...
Obvious copy/paste error
3 years ago
Peter Barker
1ab8a3e3aa
AP_HAL_SITL: make simulated GPS work as a SerialDevice
3 years ago
Peter Barker
99e80549b1
SITL: move sitl_gps.cpp to SIM_GPS.cpp
3 years ago
Stephen Dade
1356beb14d
AP_HAL_SITL: Add instance to ADSB simulation
3 years ago
Peter Barker
21030c4e83
AP_HAL_SITL: remove written-only AP::sitl().update_rate_hz
3 years ago
Peter Barker
8c9ade3f7f
AP_HAL_SITL: move simulated megasquirt to SerialDevice framework
3 years ago
Asa Davis
85fbbe0704
SITL: add simulator for LORD Microstrain serial EAHRS
3 years ago
Peter Barker
f5d5387358
AP_HAL_SITL: remove unused ext_fifo_fd member variable
3 years ago
Peter Barker
67226433e3
AP_HAL_SITL: add simulated RAMTRON device
3 years ago
Peter Barker
58a7f022fd
AP_HAL_SITL: add simulated SPI devices
3 years ago
Peter Barker
d98cda12c6
AP_HAL_SITL: remove HIL_MODE vestiges
3 years ago
Peter Barker
521918d74c
SITL: remove set-but-not-used _framerate member variable
3 years ago
Iampete1
9f04cded3b
AP_HAL_SITL: AnalogSource: return bool for set_pin
3 years ago
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
3 years ago