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
Andrew Tridgell
2718b0649b
HAL_SITL: fixed GPS rate in SITL when speedup used
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
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
655f57ad01
HAL_SITL: cleanup class names
...
remove SITL prefix
9 years ago
Caio Marcelo de Oliveira Filho
85d12efbef
AP_HAL_SITL: use millis/micros/panic functions
9 years ago
Caio Marcelo de Oliveira Filho
49a42dc985
SITL: use a SITL namespace
9 years ago
Michael Oborne
b861233677
AP_HAL_SITL: add file based gps
10 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
Michael du Breuil
c8c34f54cc
AP_HAL_SITL: Add hdop to ublox sitl sim (as well as vdop to be reported)
10 years ago
Andrew Tridgell
88a90495b2
HAL_SITL: allow for more data before GPS pipe flush
10 years ago
Andrew Tridgell
c81ad1d622
HAL_SITL: reformat HAL_SITL with astyle
10 years ago
Andrew Tridgell
b2b5c8cd18
HAL_SITL: fixed some build warnings
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
Fergus Noble
0480867de2
SITL: Update SBP simulation functions for pseudo-absolute mode
10 years ago
Andrew Tridgell
9748cb1e3e
HAL_SITL: use a synthetic clock when possible
...
this decouples wall clock time from simulation time if the FDM
supports it
10 years ago
Andrew Tridgell
8fee936ad7
HAL_SITL: fixed emulation of MTK1.6 GPS
10 years ago
Andrew Tridgell
869fb23062
HAL_SITL: implement SIM_GPSDRIFTALT
10 years ago
Jonathan Challinger
2d288d46a4
AP_HAL_AVR_SITL: fill in ublox accuracy metrics with reasonable values
10 years ago
Niels Joubert
fee79c5bac
SITL: Piksi Heartbeat Message support, Integer-RTK baseline simulation
11 years ago
Niels Joubert
e32b73f075
AP_HAL_AVR_SITL: Adding Swift Binary Protocol stand-alone simulator
11 years ago
Andrew Tridgell
af2f72acb0
HAL_SITL: honor SIM_GPS2_ENABLE option
11 years ago
Andrew Tridgell
0115b9fa07
HAL_SITL: support a 2nd GPS
11 years ago
Andrew Tridgell
af27921225
HAL_SITL: fixed GPS delay off by one
11 years ago
Andrew Tridgell
65ebdfa786
HAL_SITL: fixed time strings in simulated NMEA GPS
11 years ago
Andrew Tridgell
b7b9efd120
HAL_SITL: properly emulate timestamps on ublox and MTK
11 years ago
Andrew Tridgell
6438be74e0
HAL_SITL: get the ublox GPS timestamps right in SITL
11 years ago
Andrew Tridgell
55ba536331
HAL_SITL: fixed a warning
11 years ago
Andrew Tridgell
42bc8b12df
SITL: added a SIM_GPS_HZ option
...
this allows simulation of slow GPS updates (for example, the 1Hz GPS
problem)
12 years ago
Randy Mackay
c6a99ac24a
AutoTest: add support for GPS glitching
12 years ago
Andrew Tridgell
e75c48c029
SITL: added simulated NMEA GPS
...
useful for validating the NMEA GPS driver
12 years ago
Andrew Tridgell
e2eca3e273
AP_HAL_AVR_SITL: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
ed918dc6bc
SITL: use PACKED attribute instead of pragma pack
12 years ago
Andrew Tridgell
055da3c4b6
SITL: added SIM_GPS_NUMSATS parameter
...
this allows testing of the DCM code with less than 6 satellites
12 years ago
Andrew Tridgell
0ffc7dab6b
SITL: added GPS speed down to SITL state
12 years ago
Andrew Tridgell
fb4e68f0f0
SITL: added SIM_GPS_BYTELOSS option
...
this allows testing of protocol recovery after losing bytes on the GPS
serial link
12 years ago
Andrew Tridgell
3a582663fb
SITL: improve time field handling in simulated GPS
12 years ago
Andrew Tridgell
428966160a
SITL: added support for MTK16 and MTK19 simulated GPS types
12 years ago
Andrew Tridgell
10cd466035
SITL: added simulation of the original MTK GPS
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
c16db01395
HAL_SITL: add pragma pack
...
may be needed on some systems
12 years ago
Andrew Tridgell
9931009db2
Math: use pythagorous2() in some more places
12 years ago
Andrew Tridgell
5f7f6966af
SITL: fixed GPS and UART startup
12 years ago
Andrew Tridgell
98ead51801
SITL: fill in a lot more of the AP_HAL SITL backend
12 years ago
Andrew Tridgell
951e764442
SITL: prevent the GPS pipe filling up and delaying GPS readings
12 years ago
Andrew Tridgell
cd0672ce94
SITL: set a reasonable number of satellites in simulated uBlox
12 years ago
Andrew Tridgell
78a95290a3
SITL: prevent a fd leak in GPS code
13 years ago
Andrew Tridgell
c35a2e999b
SITL: added SIM_GPS_DELAY parameter
...
this allows a delay to be added to the gps data to test the impact on
AHRS/DCM
13 years ago