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
Peter Barker
9749b91d46
SITL: initialise sigaction structs - valgrind fix
9 years ago
Lucas De Marchi
d418338e22
AP_HAL_SITL: remove I2CDriver
...
I2CDevice now serves for the same purpose.
9 years ago
Staroselskii Georgii
d69aeb4808
AP_HAL_SITL: use sigaction over signal API in SITL_State
9 years ago
Andrew Tridgell
d7faeada87
HAL_SITL: notify GCS on GPIO changes
...
useful for testing relays in SITL
9 years ago
Andrew Tridgell
5b081a704c
HAL_SITL: added GPIO simulation
...
using SIM_PIN_MASK
9 years ago
Tom Pittenger
acaf0c6a5d
SITL: LPF the SIM_WIND_DIR and SIM_WIND_SPD values to eliminate step inputs
9 years ago
Siddharth Bharat Purohit
d65f453da1
AP_HAL_SITL:use common fenv function
9 years ago
Andrew Tridgell
fc9283964a
HAL_SITL: fixed segv on cygwin
9 years ago
Peter Barker
309ac53806
SITL: correct adsb initialisation
...
Parameters have not yet been initialised in _sitl_setup, so move
should-run checks into update
9 years ago
Andrew Tridgell
acc76f80b0
HAL_SITL: added xplane support
9 years ago
Paul Riseborough
2cf5493b40
AP_HAL_SITL: Ensure simulated magnetic field is always used
9 years ago
Tom Pittenger
1770f314ac
SITL: change SIM_ADSB default to -1 to default disabled to leave telem port available
9 years ago
Tom Pittenger
52fcc36249
AP_HAL_SITL: remove -A --adsb argument, feature is now always enabled controlled by param
9 years ago
Tom Pittenger
f2b5f5f4a5
AP_HAL_SITL: adsb is always enabled in the sim, controlled by param SIM_ADSB_COUNT
9 years ago
Andrew Tridgell
0166ab2038
HAL_SITL: check for SIM_RC_FAIL
9 years ago
Tom Pittenger
5df2e57209
AP_HAL_SITL: do not compile terrain class when terrain is not disabled via compile flag
9 years ago
Andrew Tridgell
04f87a452e
HAL_SITL: fixed tcp client mode
9 years ago
Andrew Tridgell
969b6ebea9
HAL_SITL: support coaxcopter in SITL
9 years ago
Andrew Tridgell
a80e233836
HAL_SITL: added SingleCopter
9 years ago
Andrew Tridgell
635a975486
HAL_SITL: use a smaller buffer for real SITL UARTs
...
better emulation of real hw
9 years ago
Tom Pittenger
ad11f3815b
AP_HAL_SITL: rename aspd variables to arspd
9 years ago
Gustavo Jose de Sousa
2246343ec7
AP_HAL_SITL: pass signed value to abs()
...
Passing an unsigned value to abs() causes compilation error in gcc 6.1.1
(and doing that doesn't make sense too).
As a bonus, this patch fixes the code, since, for two unsigned integers
a and b, such that a > b, (a - b) without the casting to a signed
integer would produce garbage in the context of this patch. The type
int32_t is enough for the cases covered by this patch.
9 years ago
Peter Barker
8d5ceda534
AP_HAL_SITL: ensure specified SITL model is found
...
Without this check we get a null pointer exception the first time we attempt
to use the model object
9 years ago
Andrew Tridgell
c6620b03b4
HAL_SITL: added --rtscts option to SITL
...
useful for radio testing
9 years ago
Ricardo de Almeida Gonzaga
91e9dd10ba
AP_HAL_SITL: Fix typos
9 years ago
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
9 years ago
Gustavo Jose de Sousa
8c4c9ccfa6
AP_HAL_SITL: add calibration model
9 years ago
Andrew Tridgell
4318fd0ab8
HAL_SITL: update for changed API
9 years ago
Andrew Tridgell
2718b0649b
HAL_SITL: fixed GPS rate in SITL when speedup used
9 years ago
Andrew Tridgell
9081310ff1
HAL_SITL: support simulator RC input
9 years ago
Randy Mackay
3d646a26e2
AP_HAL_SITL: calls to terrain:height_amsl provide extrapolate and corrected params
9 years ago
Andrew Tridgell
46f368f17d
HAL_SITL: support fireflyy6 as quadplane
9 years ago
Andrew Tridgell
21fb38da8f
HAL_SITL: support Y6 frame
9 years ago
Andrew Tridgell
41b3cb2ff7
HAL_SITL: support tri sim
9 years ago
Andrew Tridgell
835c0b1759
HAL_SITL: follow sqrt law to 60m for wind
...
this makes testing wind in landings more useful
9 years ago
Andrew Tridgell
4ef977c68b
HAL_SITL: fixed initial path for uartF
9 years ago
Andrew Tridgell
0d27409511
HAL_SITL: added uartF
9 years ago
Ricardo de Almeida Gonzaga
5bd034a5a8
Global: start using cmath instead of math.h
9 years ago
Andrew Tridgell
4d01cb1716
HAL_SITL: fixed SITL engine mul error
...
expression without get() was treated as int
9 years ago
Andrew Tridgell
5c92adddf9
HAL_SITL: allow examples to run under SITL
9 years ago
Lucas De Marchi
e6059f5197
AP_Compass: rename files to follow other libraries
...
AP_Compass.h is the main header to be exported and AP_Compass.cpp its
implementation. There's no need for an additional header.
9 years ago
Lucas De Marchi
bcdc3336de
AP_HAL_SITL: replace header guard with pragma once
9 years ago
Will Sackfield
0a60d713af
AP HAL SITL: Use fully qualified SITL namespace
...
* using namespace SITL caused ambiguities due to
both SITL and HAL SITL using the same namespace
9 years ago
Michael du Breuil
287a3367ad
AP_HAL_SITL: Force the simulated gps time to be on valid intervals for u-blox hardware
9 years ago
Lucas De Marchi
c3d8ba3ea5
AP_HAL_SITL: use empty I2CDevice
9 years ago
Lucas De Marchi
9aa49cda93
Global: remove system_initializing() from scheduler
...
This is not used anymore.
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
Tom Pittenger
f695f37ca3
AP_HAL_SITL: handle negative throttle
...
- negative throttle was causing negative voltage offsets
9 years ago