Peter Barker
dff026e30c
Tools: Replay: move starting of new logs into DataFlash
2017-07-19 16:37:28 +01:00
Peter Barker
6a7ed2646c
Tools: Replay: Use GCS_Dummy GCS singleton
2017-07-07 16:18:37 +01:00
Peter Barker
29de7b1a17
Replay: provide a log bitmask to Dataflash constructor
2017-06-29 15:43:38 +01:00
Peter Barker
10b69b46e1
Replay: StartUnstartedLogging replaces logging_started/start_logging
2017-06-11 20:34:12 +01:00
Randy Mackay
bc89432019
Replay: fix rangefinder instantiation
2017-02-27 15:18:14 +09:00
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
2017-02-23 23:03:54 -08:00
Peter Barker
f5c89117f6
Replay: remove unused variables
...
Also avoids segmentation fault on exit
2017-02-23 17:18:47 +11:00
priseborough
c8bdf2fab8
Replay: enable replay to ignore EK3_ENABLE setting in log
2017-01-27 16:57:42 +09:00
Andrew Tridgell
bebc7e4519
Replay: removed EKF_ENABLE parameter
2016-12-19 08:07:13 +11:00
Andrew Tridgell
35bed59bd4
Tools: Add EKF3 and remove EK1
2016-12-19 08:07:10 +11:00
Randy Mackay
d1f944d0c9
Replay: remove call to EKF1 logging
2016-11-30 17:57:09 +09:00
Randy Mackay
277ec38adc
Replay: add AP_Beacon to build
2016-11-30 17:57:08 +09:00
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)
^
2016-11-16 22:28:11 -02:00
Peter Barker
78d7a144b1
Replay: add close-on-exec to fopen flags
2016-11-16 22:20:33 -02:00
Peter Barker
4543f1c548
Replay: check return value from fopen() of output files
2016-11-16 22:20:10 -02:00
floaledm
8d0fd7cea8
Tools: add AP_Frsky_Telem
2016-11-08 07:42:39 +11:00
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.
2016-11-07 12:37:30 -03:00
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.
2016-11-02 16:28:20 -02:00
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.
2016-10-24 09:42:01 -02:00
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.
2016-08-29 10:27:36 -03:00
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().
2016-08-24 10:46:23 -03:00
Tom Pittenger
127e86562a
AP_Relay: remove FixedWing dependency on airspeed
2016-08-08 00:25:20 -07:00
Tom Pittenger
aa65fda01c
Revert "Replay: Convert references to AP_Airspeed."
...
This reverts commit 96b287735f
.
2016-08-07 17:54:24 -07:00
AndersonRayner
96b287735f
Replay: Convert references to AP_Airspeed.
2016-08-04 10:09:04 -07:00
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.
2016-08-01 22:04:16 -03:00
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.
2016-07-27 21:30:19 +10:00
Staroselskii Georgii
9576be3a21
Replay: encapsulated signal handling
2016-07-27 21:30:18 +10:00
Andrew Tridgell
70c4038751
Replay: changed Makefile to use waf
2016-07-27 21:28:30 +10:00
priseborough
cc0d3b89d3
Replay: use separated EKF horiz/vert position interfaces
2016-07-19 12:16:49 +10:00
Gustavo Jose de Sousa
f426e2c681
Replay: build: use separate library
...
There are checks for APM_BUILD_Replay in the source code, so Replay tools needs
a separate static library.
2016-06-30 12:55:18 -03:00
Paul Riseborough
094dd9d769
Replay: Fix bug preventing use of IMT data during replay
2016-06-28 14:20:13 +10:00
Peter Barker
eefdc32f51
Replay: print message when gap perceived in log
2016-06-07 14:00:14 +10:00
Peter Barker
f6c7a73170
Replay: command line option to disable FP exceptions
2016-06-07 12:45:38 +10:00
Andrew Tridgell
1e44251d35
Replay: include a minimal set of FMT messages at start of log
2016-05-26 10:10:27 +10:00
Andrew Tridgell
366d95f45e
Replay: fixed FMT messages in replay output
2016-05-26 09:40:21 +10:00
Gustavo Jose de Sousa
844222870c
waf: boards: bind get_board() to configure and build contexts
...
A convenience, since we don't expect the board to change for a given
configuration.
2016-05-25 17:47:00 -03:00
Andrew Tridgell
736c162d21
Replay: added --param-file option
2016-05-25 20:46:18 +10:00
Andrew Tridgell
600c23f3bf
Replay: use SCHED_LOOP_RATE for loop rate if available
2016-05-25 10:45:46 +10:00
Paul Riseborough
b1e9207c0f
Replay: extend ekf fault status reporting coverage
2016-05-21 15:13:51 +10:00
Andrew Tridgell
4116f80901
Replay: added --no-params option
2016-05-16 17:22:11 +10:00
Lucas De Marchi
cb0ffc0e07
Replay: fix build error due to missing noreturn
...
Add noreturn attribute to field_not_found(). This function always call
abort() if the field was not found. The compiler may not know about it
and may think some variables are used uninitialized:
../../Tools/Replay/LR_MsgHandler.cpp: In member function ‘void LR_MsgHandler_GPA_Base::update_from_msg_gpa(uint8_t, uint8_t*)’:
../../Tools/Replay/LR_MsgHandler.cpp:212:24: error: ‘sacc’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
gps.setHIL_Accuracy(gps_offset, vdop*0.01f, hacc*0.01f, vacc*0.01f, sacc*0.01f, have_vertical_velocity, sample_ms);
^
Instead of just initializing the variable (which is pointless in this case),
teach the compiler that this function never returns so require_field() works
properly.
2016-05-10 16:15:41 -03:00
dgrat
76362caee0
AP_Math: Replace wrap_* functions with template versions
2016-05-10 11:41:26 -03:00
Andrew Tridgell
84d45cce40
Replay: fixed log rate detection
2016-05-10 15:40:48 +10:00
Andrew Tridgell
276f5dd3f1
Replay: use a larger LOG_FILE_BUFSIZE for Replay
2016-05-09 13:58:37 +10:00
Andrew Tridgell
248ce2e0e6
Replay: enable LOG_REPLAY in replay
2016-05-09 12:48:30 +10:00
Andrew Tridgell
dbe9091d58
Replay: set last sample time for GPS
2016-05-07 18:27:23 +10:00
Andrew Tridgell
7abaa75653
Replay: added --logmatch option
...
match logging rate to input log
2016-05-07 18:27:22 +10:00
Andrew Tridgell
c2aeb058cd
Replay: mark GPA as generated
2016-05-07 18:27:22 +10:00
Andrew Tridgell
468f020b51
Replay: cope with GPS ground couse in degrees
2016-05-07 18:27:21 +10:00
Andrew Tridgell
2bcd3c48f0
Replay: use baro last update time if available
2016-05-07 18:27:21 +10:00