Peter Barker
6d1d9df875
AP_HAL_SITL: add Sagetech MXS simulator
2023-10-25 20:06:47 +11:00
Andrew Tridgell
04bbe648e6
HAL_SITL: use AP_BUILD_ROOT
2023-10-25 09:50:08 +11:00
Andrew Tridgell
bf229b3dc1
HAL_SITL: enable ADSB simulator in SITL periph
2023-10-02 21:45:28 +11:00
Andrew Tridgell
18f3ab98e4
HAL_SITL: allow for I2C simulated devices in SITL AP_Periph
...
this allows for SMBbus batteries and other I2C simulated devices
2023-10-02 21:45:28 +11:00
Andrew Tridgell
9afc30671f
AP_HAL_SITL: added last_transmit_us to CAN stats
2023-09-05 06:56:51 +10:00
Andrew Tridgell
b6e79d05fd
HAL_SITL: support multicast UDP for CAN in SITL
...
this will work on windows and in WSL
2023-08-29 15:09:48 +10:00
Ryan Friedman
fd3a1d448a
AP_HAL_SITL: split to MicroStrain5
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-29 10:31:44 +10:00
Andrew Tridgell
f076f7c4f1
HAL_SITL: use nan to indicate no actuator value
...
this allows for multiple periph nodes, each providing a subset of
motors/servos
2023-08-24 13:06:40 +10:00
Andrew Tridgell
b72f4a3cd8
HAL_SITL: enable GPIO and RC output in periph
2023-08-24 13:06:40 +10:00
Andrew Tridgell
823ac579cd
HAL_SITL: added debug for multicast startup
...
useful for CI diagnosis
2023-08-24 13:06:40 +10:00
Andrew Tridgell
4a07f7a4eb
HAL_SITL: block in MC read for packet in AP_Periph
...
can't advance time without a new multicast packet
2023-08-24 13:06:40 +10:00
Andrew Tridgell
1144036a8d
HAL_SITL: support servo and ESC output in SITL AP_Periph
...
use another UDP socket back to the main firmware from peripheral
2023-08-24 13:06:40 +10:00
Andrew Tridgell
b76e2342db
HAL_SITL: added "Waiting for" message
...
this is needed for test.CAN autotest as it waits for periph startup
2023-08-24 13:06:40 +10:00
Andrew Tridgell
6d81f34db8
HAL_SITL: added --defaults handling to periph SITL
2023-08-24 13:06:40 +10:00
Andrew Tridgell
65ced84a0e
HAL_SITL: handle periph voltage/current and improve timing
2023-08-24 13:06:40 +10:00
Andrew Tridgell
a42a2fec2a
HAL_SITL: implement multicast comms for SITL AP_Periph
2023-08-24 13:06:40 +10:00
Andrew Tridgell
85c2c3609b
AP_HAL_SITL: removed native_millis/micros
2023-08-24 13:06:40 +10:00
Pierre Kancir
d78fe1ad99
AP_HAL_SITL: fix possible divide by 0 on synth.hpp
2023-08-24 07:46:20 +10:00
Andrew Tridgell
ba7d94d5ad
HAL_SITL: mark all as double precision
2023-08-15 22:39:23 +10:00
Ryan Friedman
e0b23ddf8f
AP_HAL_SITL: Rename LORD to MicroStrain
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-07 19:16:03 +10:00
Andy Piper
7238c603c1
AP_HAL_SITL: compile system as double so that time advances
2023-08-02 16:22:59 +01:00
Peter Barker
7b83ccfdd1
AP_HAL_SITL: change SITL unbuffered writes to more-closely minim ChibiOS HAL
...
We don't ever actually do unbuffered writes in ChibiOS. We just poke the relevant thread to say there's data available. This kind of mimics that my instantly evoking the same routine the timer-tick method does, which may or may not get all of the bytes out in good order.
2023-07-26 17:06:27 +10:00
Peter Barker
2cb3265131
AP_HAL_SITL: factor _timer_tick into read/write methods
2023-07-26 17:06:27 +10:00
Peter Barker
32659fd3b6
AP_HAL_SITL: correct return values on UARTDriver write call
2023-07-18 11:17:01 +10:00
Peter Barker
f288ba7cd0
AP_HAL_SITL: correct parsing of --rate on SITL commandline
...
it's in the help but not in the code...
2023-07-15 00:13:12 +10:00
Peter Barker
efc7b4b6ee
AP_HAL_SITL: remove race in SITL::UARTDriver::_write
...
txspace could change if another thread is involved
2023-07-13 18:13:42 +10:00
Andy Piper
d36149e1a8
AP_HAL_SITL: remove unused counter
2023-07-13 11:02:40 +10:00
Peter Barker
2c9551a25a
AP_HAL_SITL: act on safety switch being enabled in SITL by zeroing outputs
2023-07-12 17:53:12 +10:00
Andrew Tridgell
6e952bae17
HAL_SITL: allow override of serial devices in SITL periph
2023-07-12 17:06:02 +10:00
Andrew Tridgell
fca6f2cba2
HAL_SITL: fixed crash with command line args to SITL periph
2023-07-12 17:06:02 +10:00
Andrew Tridgell
4f81a40066
AP_HAL_SITL: moved UART port locking up to AP_HAL
2023-07-12 17:06:02 +10:00
rishabsingh3003
4957785fef
AP_HAL_STIL: add simulated nooploop tofsense rangefinder
2023-06-28 17:16:22 +10:00
Andrew Tridgell
3bcceb9420
HAL_SITL: fixed multicast UDP on cygwin
...
this will allow the SITL button on cygwin to work with multicast,
allowing for complex vehicle interactions between machines
2023-06-26 15:49:02 +10:00
muramura
bfa23aa7b0
AP_HAL_SITL: Resolve missing-declarations errors
2023-06-19 20:14:31 +10:00
acxz
ade161f0a8
AP_HAL_SITL: remove std:: scope from uint16_t
2023-05-17 11:15:43 +10:00
Peter Barker
ae7fb93e4c
AP_HAL_SITL: add simulated RPLidarA1
2023-05-16 10:15:23 +10:00
Peter Barker
4ed4c2d554
AP_HAL_SITL: add simulator for RDS02UF rangefinder
2023-05-13 20:05:18 +10:00
Jonathan Challinger
28598e82c0
AP_HAL_SITL: fix sitl_periph_gps build
2023-05-09 11:42:09 +10:00
Jonathan Challinger
4ef070956d
AP_HAL_SITL: ADC resolution configurable by define, default to 16 bit
2023-05-09 11:42:09 +10:00
Andy Piper
c0b008902f
AP_HAL_SITL: rename QSPIDevice to WSPIDevice
2023-04-28 08:31:15 +10:00
Andrew Tridgell
761297a068
AP_HAL_SITL: change to 16 bit timeout in event interface
...
prevent issues on 16 bit timers where we can end up with TIME_INFINITE
2023-04-19 17:26:57 +10:00
Andrew Tridgell
81b1b69cd5
HAL_SITL: fixed receive of CANFD in SITL socketcan
...
we need to use read() and look at the size to work out if each frame
is bxCAN of CANFD
See https://www.kernel.org/doc/Documentation/networking/can.txt
2023-04-10 14:46:54 +10:00
Andrew Tridgell
a960e647b5
HAL_SITL: fixed sitl periph storage
...
this allows persistent parameters for sitl_periph_gps target
2023-04-10 14:46:54 +10:00
Andrew Tridgell
b6ae79c700
HAL_SITL: fixed 64 bit periph build
2023-04-10 14:46:54 +10:00
Andrew Tridgell
baa7301977
HAL_SITL: fixed valgrind error
2023-04-08 07:11:23 +10:00
bugobliterator
b65c74940d
AP_HAL_SITL: setup for DroneCAN driver test build
2023-03-29 17:16:39 +11:00
Peter Barker
d626197c0b
AP_HAL_SITL: add and use a "bool read(c)" method to AP_HAL
...
this is much less likely to not work vs the int16_t equivalent
2023-03-22 17:59:11 +11:00
Samuel Tabor
49fb4f37c5
SITL: Send VCAS in Flightgear packet.
2023-02-20 05:37:21 -08:00
Peter Barker
ffa43c1b71
AP_HAL_SITL: avoid using struct Location
...
clang reports this could be a problem when compiling under some EABIs. Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
Andrew Tridgell
b43701fffa
HAL_SITL: exit on close of port 0 on cygwin
...
this fixes a long standing problem with SITL not exiting when you
close connection in MissionPlanner
2023-01-24 15:48:04 +11:00