Andrew Tridgell
b4ebae5e1b
HAL_SITL: use baro atmospheric tables
2024-05-07 21:19:06 +10:00
Andrew Tridgell
4370d2e348
HAL_SITL: added Glider SITL model
2024-05-05 07:57:54 +10:00
Andrew Tridgell
4bb5a9ac52
HAL_SITL: link in StratoBlimp
2024-04-27 22:03:05 +10:00
Iampete1
64b57de559
AP_HAL_SITL: call `_sitl->set_stop_MAVLink_sim_state()` when alocating elrs
2024-04-23 09:16:55 +10:00
Iampete1
cbd5bcb694
AP_HAL_SITL: SITL_State_common: add elrs and pass portnumber in `create_serial_sim`
2024-04-23 09:16:55 +10:00
Iampete1
b0ceaa7610
AP_HAL_SITL: use DataRateLimit helper
2024-04-23 09:16:55 +10:00
Tatsuya Yamaguchi
8874c1a560
AP_HAL_SITL: added HEXA X
2024-04-18 08:25:41 +10:00
Iampete1
6017f372a2
AP_HAL_SITL: and `uart_log` method and stats struct
2024-04-09 10:00:50 +10:00
Iampete1
e970a6cb5d
AP_HAL_SITL: UARTDriver: add getters for cumulative tx and rx counts
2024-04-09 10:00:50 +10:00
Iampete1
d93cc7f113
AP_HAL_SITL: report baudlimit_enable in bw_in_bytes_per_second function
2024-04-03 13:10:06 +01:00
Iampete1
0b95b515bd
AP_HAL_SITL: implement uart_info to populate @SYS/uarts.txt
2024-04-03 13:10:06 +01:00
Peter Barker
db0188d3a3
AP_HAL_SITL: add support for RC input from SITL FDM data
2024-03-25 22:35:04 +11:00
Peter Barker
4005bce85c
AP_HAL_SITL: add and use AP_RCProtocol_UDP
2024-03-25 22:35:04 +11:00
jkronk
c38cdc7d72
AP_HAL_SITL: add Ainstein SITL driver
2024-03-18 12:40:37 -07:00
Peter Barker
a77a894b8a
AP_HAL_SITL: correct define around use of RC singleton
...
... you may not be a periphs and *still* not have RC...
2024-03-12 09:09:21 +11:00
Peter Barker
7d8e58ea17
AP_HAL_SITL: move support for SFML joysticks down into AP_RCProtocol
2024-03-12 08:48:35 +11:00
Andrew Tridgell
6a16cbf3bb
AP_HAL_SITL: fixed get_baud_rate()
2024-02-29 11:00:40 +11:00
Andrew Tridgell
a74dab8c0a
HAL_SITL: don't run IO procs in examples
2024-02-28 19:22:14 +11:00
Andrew Tridgell
39efe75e79
HAL_SITL: allow delay() and delay_microseconds() to work in examples
...
when we have no sitl object we need to directly call stop_clock()
2024-02-28 19:22:14 +11:00
Andrew Tridgell
e4c103972c
HAL_SITL: use NoVehicle for example tests and replay
...
allows for example runs without -C --model XXX
2024-02-28 19:22:14 +11:00
Peter Barker
df3267c9ba
waf: remove SKETCH and SKETCHNAME from build sysmte
...
... renaming one of them to AP_BUILD_TARGET
2024-02-26 15:42:25 +11:00
Andrew Tridgell
c26f6d0a98
HAL_SITL: use integer maths for clocks
...
same fix as for HAL_Linux
2024-02-06 07:31:21 +11:00
Peter Barker
34188e892f
AP_HAL_SITL: correct ubsan compilation
2024-01-23 11:30:23 +11:00
Peter Barker
940b6fd1fb
AP_HAL_SITL: new Loweheiser generator/efi sim
2024-01-23 11:27:30 +11:00
Peter Barker
efd5fec24d
AP_HAL_SITL: allow sim_vehicle.py -I to work again
...
... or at least not die instantly because instance-0 has bound this port
2024-01-17 18:29:26 +11:00
Peter Barker
7201eae4ed
AP_HAL_SITL: move simulated height_agl into fdm structure
...
allows value to be shipped via multicast to simulated peripherals
2024-01-08 20:00:01 +11:00
Andrew Tridgell
69df468b88
AP_HAL_SITL: use SocketAPM_native
2024-01-03 12:14:47 +11:00
Andrew Tridgell
b28912c351
HAL_SITL: cope with no _sitl state
2024-01-03 12:14:47 +11:00
Andrew Tridgell
671bcdad18
HAL_SITL: avoid socket headers in .h files
...
this makes mixing SITL and lwip sockets possible
2024-01-03 12:14:47 +11:00
Peter Barker
f83b561566
AP_HAL_SITL: guard against DSP being compiled out of code
2024-01-03 11:45:31 +11:00
Andrew Tridgell
f0aa2a65e4
HAL_SITL: reimplement CAN with BinarySemaphore
2024-01-03 07:37:05 +11:00
Andrew Tridgell
7059f980b8
HAL_SITL: implement BinarySemaphore
2024-01-03 07:37:05 +11:00
Oleksiy Protas
e855c9f46a
AP_HAL_SITL: ensure stdint include
2024-01-02 13:42:58 +11:00
Andrew Tridgell
cfa28c5246
HAL_SITL: fixed unbuffered UART writes in SITL
...
this was causing PPP to slow down by about 1000x due to duplicate
writes
2024-01-02 08:12:37 +11:00
Andrew Tridgell
c1016ae52e
HAL_SITL: cope with no _sitl state
2024-01-02 08:12:37 +11:00
Andrew Tridgell
ac49480f6a
HAL_SITL: disable FG view by default
2024-01-02 08:12:37 +11:00
Andrew Tridgell
74c2855be3
HAL_SITL: implement begin(0) on UARTs
...
the begin(0) is used to claim a uart for the current thread in
ChibiOS, we need to ignore it on SITL and not change baudrate
2023-12-26 06:21:42 +11:00
Andrew Tridgell
f3303c9272
HAL_SITL: use uint64_div1000()
...
match ChibiOS
2023-12-21 09:09:11 +11:00
Thomas Watson
14180b5b93
AP_HAL_SITL: deprecate and warn on legacy --uartX option use
2023-12-19 06:53:15 +11:00
Thomas Watson
9044632315
AP_HAL_SITL: eliminate internal legacy UART ordering/references
...
Legacy command line arguments are kept to avoid breaking users.
The vestigial `_tcp_client_addr` variable is removed.
Serial port status messages are updated to a slightly different format
to clarify the numbering scheme being used and prompt any external
consumers to update.
2023-12-19 06:53:15 +11:00
Thomas Watson
c56599e210
AP_HAL_SITL: pass UARTs to AP_HAL in SERIALn order
2023-12-19 06:53:15 +11:00
Andrew Tridgell
38960a3db2
HAL_SITL: added InertialLabs simulator
2023-12-17 09:47:30 +11:00
Ryan Friedman
5bcdaa360e
AP_HAL_SITL: Add MicroStrain7 support to SITL
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-12-05 11:09:22 +11:00
Thomas Watson
3c82ac6043
AP_HAL_SITL: introduce get_HAL_mutable() to complement get_HAL()
...
Returns a mutable reference to the same HAL for certain purposes where
the HAL needs to be mutated to avoid UB problems with casting away const
and to make the fact that mutation is happening obvious.
2023-11-28 08:24:25 +11:00
Andrew Tridgell
58cf4f65a9
HAL_SITL: use SocketAPM for CAN multicast and SITL_Periph state
2023-11-25 12:19:43 -08:00
Andrew Tridgell
f30ac4052c
HAL_SITL: added SERIAL4 as UDP output for SITL periph
2023-11-22 17:19:12 +11:00
Andy Piper
04fa8ed593
AP_HAL_SITL: return success status from serial_led_send and set_serial_led_rgb_data
2023-11-20 19:22:20 +11:00
Peter Barker
f134a1df34
AP_HAL_SITL: add simulator Hirth EFI
2023-11-17 13:09:02 +11:00
Peter Barker
2af98a949b
AP_HAL_SITL: add JAE JRE simulator
2023-11-15 10:50:49 +11:00
Peter Barker
c953b4e512
AP_HAL_SITL: track simulated ADSB vehicles relative to simulation origin
...
removes dependence on ArduPilot AHRS library
Also removes vehicles based off vehicle simulated position rather than distance-from-origin, so you always have company
2023-11-02 15:52:42 +11:00