Patrick José Pereira
b014b6c857
AP_Baro: Use SSL variables
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Eugene Shamaev
40e2d0d0c9
AP_HAL_SITL: SITL of several airspeed sensors
7 years ago
Mark Whitehorn
dedb40ce0b
SITL: add parameter to simulate reversed pitot tube order
7 years ago
Michael du Breuil
58e784024f
AP_HAL_SITL: Add support for blocked pitot tube simulations
8 years ago
Pierre Kancir
1c8d169814
AP_HAL_SITL: sitl_airspeed simplify include
8 years ago
Pierre Kancir
775ca9303a
AP_HAL_SITL: sitl_airspeed correct style
8 years ago
Pierre Kancir
0afc907b0a
AP_HAL_SITL: rename sitl_ins & _update_ins to sitl_airspeed & _update_airspeed
8 years ago
Pierre Kancir
3f045a4905
AP_HAL_SITL: airspeed_simulated use is_zero
8 years ago
Pierre Kancir
599e3d7b83
SITL: make range finder a standalone sitl plugin
8 years ago
Andrew Tridgell
ac82d1a65d
HAL_SITL: moved SITL baro to AP_Baro_SITL
8 years ago
Andrew Tridgell
961da9deb8
HAL_SITL: use quaterion instead of eulers
8 years ago
Peter Barker
e9a0e98863
AP_HAL_SITL: use fabs on double values
8 years ago
Andrew Tridgell
def6e014cf
HAL_SITL: removed old optflow simulation
8 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
priseborough
747f3a8cfd
AP_HAL_SITL: Simulate range finder position offset
8 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
Caio Marcelo de Oliveira Filho
85d12efbef
AP_HAL_SITL: use millis/micros/panic functions
9 years ago
Andrew Tridgell
95ca0b39a8
HAL_SITL: moved virtual INS sensor to AP_InertialSensor_SITL
9 years ago
Lucas De Marchi
ffa37e6de2
AP_HAL_SITL: standardize inclusion of libaries headers
...
Do the missing header changes due to changing the code before the pr
getting accepted.
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
Tom Pittenger
d51e6d466b
AP_HAL_SITL: add support for airspeed failures
10 years ago
Randy Mackay
2b4aaf2368
SITL: add vibe monitor and SIM_ACC2_RND to sitl
10 years ago
Andrew Tridgell
8dce5e11d6
HAL_SITL: removed earth-frame rates
10 years ago
Tom Pittenger
7b95241306
AP_HAL_SITL: float to double promotion via cos instead of cosf
10 years ago
Tom Pittenger
1c8efb25a8
AP_HAL_SITL: replace fabs() with fabsf()
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
Tom Pittenger
b7fb4022b4
AVR_SITL: fix compile warnings re float constants
10 years ago
Peter Barker
c95348c1d9
SITL: Avoid run-time FPEs due to bad gyro settings if SIM_DRIFT_TIME is set to 0
...
_gyro_drift essentially suffers a divide-by-zero if SIM_DRIFT_TIME is 0. The gyro initialisation routines in AP_InertialSensor do not return once the generated NaN propogates back to them.
10 years ago
Sean O\'Brien
bfba8870e2
AP_HAL_AVR_SITL: added sensor delays to sitl.
10 years ago
Andrew Tridgell
f13248e5f5
SITL: implement SIM_TERRAIN
...
either use AP_Terrain or flat earth
10 years ago
Andrew Tridgell
22237f2530
HAL_SITL: fixed handling of SIM_FLOAT_EXCEPT in main thread
10 years ago
Andrew Tridgell
5da5360dde
HAL_SITL: fixed sonar correction for attitude
11 years ago
Andrew Tridgell
5a55101703
HAL_SITL: added millis64() and micros64()
11 years ago
Andrew Tridgell
b559e9d331
SITL: better rangefinder simulation
...
able to handle a wider range, and takes account of attitude
11 years ago
Randy Mackay
5f1f619829
HAL_AVR_SITL: integrate ACC_BIAS and BARO_GLITCH
...
Adjust simulated accelerometer values and barometer altitude
11 years ago
Andrew Tridgell
e69a473315
SITL: update simulated sonar support
11 years ago
Andrew Tridgell
05bffb5915
HAL_SITL: enable use of SIM_FLOAT_EXCEPT parameter
11 years ago
Andrew Tridgell
cc4c443b32
SITL: simulate dual accel/gyro
11 years ago
Andrew Tridgell
5d7346b5c2
HAL_SITL: fixed build with new HIL INS API
11 years ago
Andrew Tridgell
b075f8735f
SITL: moved airspeed pin to pin 1
...
keep it separate from the sonar, allowing both to be used at the same time
11 years ago
Ben Nizette
339da1c21b
SITL: Add noise and glitching behaviour for the sonar sensor
11 years ago
Ben Nizette
70d37d2cf6
SITL: Wire in basic support for SITL downward-looking sonar sensors
11 years ago
Andrew Tridgell
428479b9d5
SITL: added SIM_ACCEL_FAIL option
...
used to test accelerometer failure in flight
11 years ago
Andrew Tridgell
ede927f68a
HAL_SITL: added airspeed noise control
11 years ago
Andrew Tridgell
f5d20b4085
SITL: reduce the minimum accel and gyro noise
...
on APM2 and PX4 we do a lot of smoothing of accels and gyros, so a 2
bit error isn't a good representation of the min noise
12 years ago
Andrew Tridgell
119ffb0fc0
SITL: fixed simulated airspeed value
12 years ago
Andrew Tridgell
589b8cdb58
AP_HAL: added voltage_average_ratiometric() call to AnalogIn
...
this is for ratiometric sensors such as the 3DR airspeed sensor and
the Maxbotix analog sonar
12 years ago
Andrew Tridgell
0ffc7dab6b
SITL: added GPS speed down to SITL state
12 years ago