Peter Barker
80615c44ff
AP_HAL_SITL: add discard_input method on UARTDriver
5 years ago
Peter Barker
7028eb8d24
AP_HAL_SITL: provide method to get amount of data still pending in outbound system queues
5 years ago
Andrew Tridgell
dd1426cf73
HAL_SITL: allow for separate position for 2nd GPS
...
makes for better simulation of moving baseline
5 years ago
Peter Barker
3074855ea3
AP_HAL_SITL: correct port numbers in diagnostic output
5 years ago
Peter Barker
0c8e6f212d
AP_HAL_SITL: add simulated frsky support
5 years ago
Peter Barker
9da0e480f2
AP_HAL_SITL: add support for bi-directional simulated serial devices
5 years ago
Michael du Breuil
a8a71db258
AP_HAL_SITL: Correct range check on UART ports
...
Coverity CID 308362
6 years ago
Peter Barker
fa082df040
AP_HAL_SITL: add missing CLOEXECs on tcp ports
6 years ago
Andrew Tridgell
d176776357
HAL_SITL: support limiting baudrate of simulated telemetry
6 years ago
Andrew Tridgell
73672c90d1
HAL_SITL: added support for multicast UDP connections
...
this allows several copies of SITL to see each other on the same
network, emulating a mesh network, which is useful for swarm testing
6 years ago
Andrew Tridgell
50018d7a7c
HAL_SITL: use mavlink_packetise()
6 years ago
Andrew Tridgell
9f8f36aad8
HAL_SITL: added udpclient support
...
this allows direct UDP output from SITL
6 years ago
Peter Barker
be19ae41d4
AP_HAL_SITL: increase debug for SIM connections
7 years ago
Peter Barker
e577a5564f
AP_HAL_SITL: correct segfault when uartg configured
7 years ago
Michael du Breuil
8680f1ab52
AP_HAL_SITL: Clear UART buffers when opening a port
7 years ago
Peter Barker
574a2b3652
AP_HAL_SITL: set cloexec on port 5760
7 years ago
Carlos Martínez Úbeda
30e0c7f746
AP_HAL_SITL: use FD_CLOEXEC instead of linux SOCK_CLOEXEC for socket
7 years ago
Pierre Kancir
f986f1366f
AP_HAL_SITL: set close-on-exec flag on uart socket
7 years ago
Andrew Tridgell
049e3ae02d
HAL_SITL: take account of available bytes in receive_time_constraint_us
7 years ago
Andrew Tridgell
4e452c77f8
HAL_SITL: implement UART timestamp API
7 years ago
Peter Barker
4db9a5e6fe
AP_HAL_SITL: remove cast to signed type
...
... we're currently taking an unsigned type, casting it to a signed type
and then comparing the result of that to an unsigned type. That's
unhealthy.
7 years ago
Peter Barker
7d271e0f3c
AP_HAL_SITL: check return value of setsockopt
7 years ago
Peter Barker
1151d76345
AP_HAL_SITL: sim: namespace for specifying SITL devices from cmdline
7 years ago
Siddharth Purohit
a6be19d8cf
HAL_SITL: fix sitl build for mac osx
7 years ago
Tom Pittenger
da11241aa8
AP_HAL_SITL: add const
7 years ago
Tom Pittenger
760c6185e5
AP_HAL_SITL: remove SBUS debug code
7 years ago
Pierre Kancir
c30642a348
AP_HAL_SITL: correct _unbuffered_writes usage
7 years ago
Mark Whitehorn
5a417e3152
AP_HAL_SITL: support SBusOut
...
add uart config methods
7 years ago
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.
8 years ago
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.
9 years ago
Andrew Tridgell
25f1dbd8c2
HAL_SITL: allowed SITL to reopen uart connections
9 years ago
Murilo Belluzzo
077e03678f
Global: Adapt Stream class to be used with Ringbuffer
9 years ago
Andrew Tridgell
fc9283964a
HAL_SITL: fixed segv on cygwin
9 years ago
Andrew Tridgell
04f87a452e
HAL_SITL: fixed tcp client mode
9 years ago
Andrew Tridgell
635a975486
HAL_SITL: use a smaller buffer for real SITL UARTs
...
better emulation of real hw
9 years ago
Andrew Tridgell
c6620b03b4
HAL_SITL: added --rtscts option to SITL
...
useful for radio testing
9 years ago
Andrew Tridgell
cb60384dc4
AP_HAL_SITL: allow auto-baudrate detection in GPS driver in SITL
...
this is useful when testing a real GPS in SITL
9 years ago
Andrew Tridgell
097c2011e1
HAL_SITL: prevent abort on select with -1 fd
9 years ago
Andrew Tridgell
deb0b9c197
HAL_SITL: read in larger chunks
9 years ago
Andrew Tridgell
655f57ad01
HAL_SITL: cleanup class names
...
remove SITL prefix
9 years ago
Andrew Tridgell
492c733750
HAL_SITL: added RingBuffers to UART driver
...
makes for faster log download
9 years ago
Caio Marcelo de Oliveira Filho
85d12efbef
AP_HAL_SITL: use millis/micros/panic functions
9 years ago
Andrew Tridgell
a5a1680fb3
HAL_SITL: added support for real UART devices
...
This allows use of real UART devices in the simulator. Useful for GPS
driver work or other MAVLink peripherals
10 years ago
Gustavo Jose de Sousa
27b9d71e2c
AP_HAL_SITL: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
8ec98a5ec9
SITL: make it possible to connect two SITL instances together
...
this adds --client to set uartC as a tcp client rather than a TCP
server
10 years ago
Andrew Tridgell
c81ad1d622
HAL_SITL: reformat HAL_SITL with astyle
10 years ago
Andrew Tridgell
40e3b422b5
HAL_SITL: rename HAL_AVR_SITL to HAL_SITL
...
it is nothing to do with the original AVR emulation now
10 years ago
Michael Oborne
c26f2c9b1c
SITL: add missing include 'select'
10 years ago
Andrew Tridgell
0115b9fa07
HAL_SITL: support a 2nd GPS
11 years ago
John Boiles
d8cdb57efa
HAL_SITL: Attempting to avoid SIGPIPE on all platforms
11 years ago