Peter Barker
e76865eb9c
Tools: Replay: AP_AHRS no longer requires GPS in constructor
7 years ago
Andrew Tridgell
88abd34d40
Replay: fixed build with no create()
7 years ago
Peter Barker
ada7d700c2
Tools: support for units on fields
...
Tools: add units to minimal log format
Tools: add units to CHEK message
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
63ca1f755e
Tools: Replay: fix compiler warning for printf string
...
format ‘%ld’ expects argument of type ‘long int’, but argument has type ‘uint64_t {aka long long unsigned int}’
7 years ago
Lucas De Marchi
beabae6a98
global: use static method to construct AP_AHRS_NavEKF
7 years ago
Lucas De Marchi
c9fbf7b722
global: use static method to construct AP_NavEKF3
7 years ago
Lucas De Marchi
e2fe36357a
global: use static method to construct AP_NavEKF2
7 years ago
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
7 years ago
Lucas De Marchi
40fd1b346c
global: remove rangefinder from AP_AHRS_NavEKF
...
AP_AHRS_NavEKF doesn't use the rangefinder, it just delegates the
calls to the right estimator.
For libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp the initialization
order has also been modified to match the order on vehicles. It's more
correct since it passes a reference when EKF2/EKF3 are already
constructed, while thos constructors use a pointer. Ideally these
should be moved to an init() method though, or use a get_instance().
7 years ago
Lucas De Marchi
9027a55696
global: use static method to construct RangeFinder
7 years ago
Lucas De Marchi
53c82b4aaf
global: use static method to construct DataFlash_Class
7 years ago
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
7 years ago
Lucas De Marchi
87b30b4552
global: use static method to construct AP_InertialSensor
7 years ago
Lucas De Marchi
c1a957fbf3
global: use static method to construct Compass
7 years ago
Lucas De Marchi
91feec0e14
global: use static method to construct AP_Baro
7 years ago
Peter Barker
d475b91564
Tools: Replay: pass a lambda function to LR_MsgHandler_PARM to set parameters
...
This avoid duplication of parameter setting logic.
8 years ago
Peter Barker
0062084c40
Tools: Replay: option to print packet counts out at end
8 years ago
Peter Barker
b5e206f72f
Replay: print some statistics on exit
8 years ago
Randy Mackay
cd8661c665
Replay: integrate simpler Log_Write_EKF
8 years ago
Michael du Breuil
1b6c3aeea1
Replay: Avoid linking AFS
8 years ago
Peter Barker
1c2e1eeaf8
Tools: provide dummy function to avoid linking the AP_Camera
8 years ago
Peter Barker
dff026e30c
Tools: Replay: move starting of new logs into DataFlash
8 years ago
Peter Barker
6a7ed2646c
Tools: Replay: Use GCS_Dummy GCS singleton
8 years ago
Peter Barker
29de7b1a17
Replay: provide a log bitmask to Dataflash constructor
8 years ago
Peter Barker
10b69b46e1
Replay: StartUnstartedLogging replaces logging_started/start_logging
8 years ago
Randy Mackay
bc89432019
Replay: fix rangefinder instantiation
8 years ago
Peter Barker
e2f15e5fdb
Tools: create a GCS_Replay class
...
Avoids a segfault as we assume gcs() returns an object
Provides some usefult debug as to what we're sending to the GCS as
debug
8 years ago
Peter Barker
f5c89117f6
Replay: remove unused variables
...
Also avoids segmentation fault on exit
8 years ago
priseborough
c8bdf2fab8
Replay: enable replay to ignore EK3_ENABLE setting in log
8 years ago
Andrew Tridgell
bebc7e4519
Replay: removed EKF_ENABLE parameter
8 years ago
Andrew Tridgell
35bed59bd4
Tools: Add EKF3 and remove EK1
8 years ago
Randy Mackay
d1f944d0c9
Replay: remove call to EKF1 logging
8 years ago
Randy Mackay
277ec38adc
Replay: add AP_Beacon to build
8 years ago
Lucas De Marchi
6c9f46bafb
Replay: fix shadowed declaration
...
../../Tools/Replay/Replay.cpp: In member function ‘FILE* Replay::xfopen(const char*, const char*)’:
../../Tools/Replay/Replay.cpp:485:60: warning: declaration of ‘filename’ shadows a member of ‘Replay’ [-Wshadow]
FILE *Replay::xfopen(const char *filename, const char *mode)
^
8 years ago
Peter Barker
78d7a144b1
Replay: add close-on-exec to fopen flags
8 years ago
Peter Barker
4543f1c548
Replay: check return value from fopen() of output files
8 years ago
floaledm
8d0fd7cea8
Tools: add AP_Frsky_Telem
8 years ago
Lucas De Marchi
8cec2c188f
Tools: add O_CLOEXEC in places missing it
...
By opening with O_CLOEXEC we make sure we don't leak the file descriptor
when we are exec'ing or calling out subprograms. Right now we currently
don't do it so there's no harm, but it's good practice in Linux to have
it.
8 years ago
Lucas De Marchi
3620529c22
Replay: remove infinite loop from loop() method
...
Remove the while() loop inside Replay::loop() so the new signal handlers
correctly notify the mainloop to exit.
This makes SIGTERM/SIGINT work again.
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Lucas De Marchi
631d4a1152
Replay: add clean target for CI
...
CI has a generic infra that calls make clean before building and it
fails for Replay since it doesn't have a clean target.
9 years ago
Gustavo Jose de Sousa
b8e518a533
waf: use ap_library tool
...
That way we avoid recompiling source files that don't depend on vehicles.
Change notes:
- UTILITY_SOURCE_EXTS: moved to ap_library
- Task generators indexes: ap_library handles that now and in a better way
- Use of AP_STLIB_FEATURES: it doesn't make sense anymore, since the stlib
taskgen has empty source list
- Flags and defines: passed down to ap_library through AP_LIBRARIES_OBJECTS_KW
- Set use='mavlink' in AP_LIBRARIES_OBJECTS_KW instead of calls to
bld.ap_stlib().
9 years ago
Tom Pittenger
127e86562a
AP_Relay: remove FixedWing dependency on airspeed
9 years ago
Tom Pittenger
aa65fda01c
Revert "Replay: Convert references to AP_Airspeed."
...
This reverts commit 96b287735f
.
9 years ago
AndersonRayner
96b287735f
Replay: Convert references to AP_Airspeed.
9 years ago
Gustavo Jose de Sousa
f2dec971e7
waf: add "ap_" prefix to keywords "libraries" and "vehicle"
...
As an effort to keep things specific to ardupilot API in the build system
consistent and easy way to identify.
9 years ago
Staroselskii Georgii
bd8c61542d
Replay: make use of sigaction instead of signal API
...
It's a more proper and portable way to set up signal handlers.
9 years ago
Staroselskii Georgii
9576be3a21
Replay: encapsulated signal handling
9 years ago
Andrew Tridgell
70c4038751
Replay: changed Makefile to use waf
9 years ago
priseborough
cc0d3b89d3
Replay: use separated EKF horiz/vert position interfaces
9 years ago