Caio Marcelo de Oliveira Filho
f27f8f2f5d
Tools: include SITL only for SITL board
...
Include board-specific files only when the board is used. Since these
should be exceptional cases, let the includer handle the ifdef instead
of putting ifdefs in every platform-specific header.
In the future we should evaluate whether the HAL for the board should
instantiate this.
9 years ago
Caio Marcelo de Oliveira Filho
49a42dc985
SITL: use a SITL namespace
9 years ago
Peter Barker
e502f353c1
Replay: handle df format changes - IMT vs IMU
9 years ago
Caio Marcelo de Oliveira Filho
ef615a5da1
Replay: implement HAL::Callbacks
...
Also removes includes for each board since they are not necessary
anymore.
9 years ago
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
9 years ago
Andrew Tridgell
643178fbe3
Replay: handle EKF2 replay
10 years ago
Andrew Tridgell
b71678b901
Replay: fixed build with NavEKF2
10 years ago
Randy Mackay
803ca92f73
Replay: remove INS start style
10 years ago
Andrew Tridgell
da2ad49276
Replay: fix for changes to AP_RangeFinder API
10 years ago
Peter Barker
43adcd39ab
Replay: DataFlash needs a version string
10 years ago
Gustavo Jose de Sousa
84b5555a1a
Tools: 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
f2106f39aa
Replay: save CHEK messages when not being generated
10 years ago
Andrew Tridgell
2eb204d0ca
Replay: added --downsample option
10 years ago
Andrew Tridgell
dd53f5a7a1
Replay: added --nottypes option
10 years ago
Lucas De Marchi
547dbb3906
Replay: use ARRAY_SIZE macro
10 years ago
Andrew Tridgell
bdddfae57f
Replay: don't write out duplicate FMT messages
...
this makes replay output the same as input for when input is a replay
log
10 years ago
Andrew Tridgell
93800fb3a1
Replay: automatically find message types, and improve rate detection
10 years ago
Andrew Tridgell
b20318aaeb
Replay: remap msgids on pass-through to avoid conflicts
...
if msg IDs have changed since the log was produced they need to be
remapped
10 years ago
Andrew Tridgell
a5abb7c698
Replay: use tabs in replay_results.txt
10 years ago
Andrew Tridgell
f79ae4b749
Replay: add to replay_results.txt when run with --check
10 years ago
Andrew Tridgell
2c0d6c0406
Replay: fixed yaw error calculation
10 years ago
Andrew Tridgell
d07b93e661
Replay: fixed writing of CHEK messages
10 years ago
Peter Barker
8bbeedb158
Replay: flush dataflash log on floating point exception
10 years ago
Andrew Tridgell
2291a8994e
Replay: fixed build
10 years ago
Peter Barker
2266f118e9
Replay: DataFlash frontend/backend split
10 years ago
Andrew Tridgell
f2756ecb22
Replay: added checking of solution
10 years ago
Andrew Tridgell
9016a3d3db
Replay: added --chek-generate option
...
adds CHEK messages based on current estimates
10 years ago
Peter Barker
54efa3d727
Replay: split off a ReplayVehicle class
...
Like "Copter copter" and "Plane plane": "ReplayVehicle replayvehicle"
10 years ago
Andrew Tridgell
31f7525a61
Replay: added --no-imt flag
10 years ago
Andrew Tridgell
c7cb980498
Replay: support IMT messages
10 years ago
Peter Barker
7eb588e9ff
Replay: use a subclasss of DataFlashFileReader to determine log rate
10 years ago
Peter Barker
125042e1db
Replay: use GetOptLong for command line parsing
10 years ago
Andrew Tridgell
b1002eae3b
Replay: fixed -A0 for "arm immediately"
10 years ago
Andrew Tridgell
26e55f078a
Replay: converted to .cpp files
10 years ago
Andrew Tridgell
2007d2b6eb
Replay: cope with FRAM messages
...
use them to trigger ahrs updates
10 years ago
Andrew Tridgell
f08f0ca2f9
Replay: show time of AHRS health change
10 years ago
Andrew Tridgell
7177d5df7e
Replay: removed attempt to interpolate IMU data
...
it seems to cause more harm than good
10 years ago
Andrew Tridgell
49146a2a88
Replay: call Log_Write_POS()
10 years ago
Andrew Tridgell
9f05e54d90
Replay: added support for EV message for copter arming
10 years ago
Andrew Tridgell
64a55c908f
Replay: fixed trailing nul and don't wait for EKF to init
10 years ago
Andrew Tridgell
460489e2dc
Replay: fixed cast of AP_AHRS_DCM
10 years ago
Peter Barker
32beaea48c
Replay: use column labels rather than IDs in Replay.pde
10 years ago
Andrew Tridgell
9e02ce44ae
Tools: fix for HAL_SITL rename
10 years ago
Peter Barker
56a8bf5460
Replay: use the message's name rather than number to determine which message handler to use for a message
10 years ago
Randy Mackay
211bdb0bb6
Replay: include AP_RangeFinder.h
10 years ago
Randy Mackay
1f58cb9980
Replay: pass range finder into ahrs constructor
10 years ago
Andrew Tridgell
8f09ee077c
Replay: try to cope better with millisecond timestamps in 400Hz copter logs
10 years ago
Andrew Tridgell
ea10877113
Replay: fix handling of old IMU messages
10 years ago
Andrew Tridgell
95a1ab0cab
Replay: fixed build with new AP_Compass API
10 years ago
Randy Mackay
774332ea02
Replay: fixup after inertial nav and baro glitch removal
10 years ago