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
Andrew Tridgell
abbe37be37
SITL: added emulated airspeed sensor on a pin
12 years ago
Andrew Tridgell
98ead51801
SITL: fill in a lot more of the AP_HAL SITL backend
12 years ago