Lorenz Meier
b2a223eaab
Move logging to main rcS to save RAM
2016-05-14 17:21:46 +02:00
Paul Riseborough
b8b05b1b4b
ecl: update submodule reference
...
Fixes error in calculation of observation variance used by terrain estimator.
2016-05-14 22:02:13 +10:00
CarlOlsson
ee33f21303
added airspeed to ekf2 replay
2016-05-14 11:32:11 +02:00
Beat Küng
6a07d61671
parameter source parser: validate length of parameter name (limited to 16)
2016-05-14 11:29:24 +02:00
Daniel Agar
97bcea292e
logger.cpp fix style
2016-05-14 11:27:07 +02:00
Daniel Agar
c57bc26d5b
fully restore px4fmu-v2_lpe
2016-05-14 11:27:07 +02:00
Daniel Agar
9c32792017
param_test link libmsg_gen
2016-05-14 11:27:07 +02:00
Beat Küng
cf667dedb8
tests: increase stack size from 8000 to 9000
...
clang failed with:
../src/systemcmds/tests/test_mathlib.cpp:56:5: fatal error: stack frame
size of 7400 bytes in function 'test_mathlib' [-Wframe-larger-than=]
int test_mathlib(int argc, char *argv[])
2016-05-14 11:27:07 +02:00
Beat Küng
d082060429
commander: fix wrong #ifdef header guard in state_machine_helper_test.h
2016-05-14 11:27:07 +02:00
Beat Küng
4b8152465d
logger: unsubscribe from all topics when logger exits
2016-05-14 11:27:07 +02:00
Beat Küng
0f30bfa0ac
logger: fix -e parameter (logger immediately stopped again after start)
2016-05-14 11:27:07 +02:00
Beat Küng
408f299dbb
cmake px4fmu-v2_test: disable sdlog2 (avoids flash overflow)
2016-05-14 11:27:07 +02:00
Beat Küng
197b37fc17
fix cpuload.msg: remove timestamp (cleanup after rebase)
2016-05-14 11:27:07 +02:00
Beat Küng
fcf7e8b78c
logger: -e option only logs until disarm, add -f option to log until shutdown
2016-05-14 11:27:07 +02:00
Beat Küng
fc51f81bf5
logger: add free space check (need at least 50MB to start)
2016-05-14 11:27:07 +02:00
Beat Küng
501544520f
logger: change some PX4_WARN to PX4_INFO and PX4_ERR
2016-05-14 11:27:07 +02:00
Beat Küng
fe2b80ffb8
logger: add '-t' option to use GPS date/time for file and dir name
2016-05-14 11:27:07 +02:00
Beat Küng
9da2eac3d3
logger: remove unneeded start parameters (-x & -a)
2016-05-14 11:27:07 +02:00
Beat Küng
d9ced9730b
logger: remove unnecessary MODULE_CFLAGS from CMakeLists.txt
2016-05-14 11:27:07 +02:00
Beat Küng
ec6c53eb60
logger: correct cleanup in case 'logger start' fails
2016-05-14 11:27:07 +02:00
Beat Küng
da1e63eaf3
logger: fix resource leaks in LogWriter
2016-05-14 11:27:07 +02:00
Julian Oes
d3a9930b50
logger: get paths working on Snapdragon
2016-05-14 11:27:07 +02:00
Beat Küng
a0beef3204
logger: output error on failed to get log file name
2016-05-14 11:27:07 +02:00
Beat Küng
693703de1e
logger: initialize logger_ptr with null
2016-05-14 11:27:07 +02:00
Beat Küng
cfa491467e
logger: fix 'logger stop' when nothing has been logged yet
...
when executing 'logger stop' and the logger did not log yet, _running was
false, so log_writer thread would never exit.
2016-05-14 11:27:07 +02:00
Beat Küng
d7f0808316
logger: create _vehicle_status_sub & _parameter_update_sub on stack
...
Since it's only used in run().
2016-05-14 11:27:07 +02:00
Beat Küng
4f0573d612
logger: reset _write_dropouts after status output
2016-05-14 11:27:07 +02:00
Beat Küng
6e7c605279
Tools/px_generate_uorb_topic*: combine the src & header generators into one script
2016-05-14 11:27:07 +02:00
Beat Küng
093eece29b
orb message templates: move common code into px_generate_uorb_topic_helper.py
...
This also greatly speeds up the generators.
2016-05-14 11:27:07 +02:00
Beat Küng
797d0f24d6
reformat orb message templates
2016-05-14 11:27:07 +02:00
Beat Küng
d5dcbf01d0
logger: add copyright to files
2016-05-14 11:27:07 +02:00
Beat Küng
04f301619f
refactor LogWriter: remove friend class Logger and use the public interface
2016-05-14 11:27:07 +02:00
Beat Küng
dde96dd4d7
logger: allocate _vehicle_status_sub & _parameter_update_sub on the logger thread
...
This makes sure the file descriptors are closed in the right thread.
Before on NuttX, when stopping the logger, orb unsubscribe failed due to
this.
2016-05-14 11:27:07 +02:00
Beat Küng
7d42a648f0
logger: make sure the buffer is at least 300B larger than _min_write_chunk
...
We always write larger chunks (orb messages) to the buffer, so the buffer
needs to be larger than the minimum write chunk
2016-05-14 11:27:07 +02:00
Beat Küng
9a02dbdd66
logger: extend status ouput, disable DBGPRINT for now
2016-05-14 11:27:07 +02:00
Beat Küng
4ce658ab99
logger: move _writer.lock() call after write_changed_parameters()
...
write_changed_parameters() also takes the lock and thus would deadlock
otherwise.
2016-05-14 11:27:07 +02:00
Daniel Agar
3de7fbb0a9
logger and uORBTest_UnitTest astyle
2016-05-14 11:27:07 +02:00
Beat Küng
1edf03767a
logger: KB/s -> kB/s
2016-05-14 11:27:07 +02:00
Beat Küng
eabc43d78c
orb structs: add padding bytes to align the structs where necessary
...
This is required for the logger, we just manually add the padding bytes
what would otherwise be done by the compiler. Additionally we reorder
the fields by type, so that padding is only necessary for nested types.
2016-05-14 11:27:07 +02:00
Beat Küng
7d4c4c0401
px_generate_uorb_topic_sources.py: add search_path to the environment
2016-05-14 11:27:07 +02:00
Daniel Agar
69c1ce1714
WIP logger serialization
2016-05-14 11:27:07 +02:00
Beat Küng
8f5cb4084d
logger: use non-scientific format for status output
2016-05-14 11:27:07 +02:00
Beat Küng
4edc0d9ea9
fix logger: add forgotten unlock in Logger::write_info
2016-05-14 11:27:07 +02:00
Beat Küng
63bd2cebf9
refactor logger: add a write_wait method to avoid code duplication
2016-05-14 11:27:07 +02:00
Daniel Agar
768e5ab66f
adc_report remove timestamp
2016-05-14 11:27:07 +02:00
Mark Whitehorn
c7e7026f47
remove code obsoleted by move of log buffer
2016-05-14 11:27:07 +02:00
Mark Whitehorn
4e50f271d6
use C99 print format for size_t
2016-05-14 11:27:07 +02:00
Mark Whitehorn
26596dbe15
fix infinite loop when not logging
2016-05-14 11:27:07 +02:00
Beat Küng
f40afac448
logger: fix 'Undefined symbols for architecture x86_64' on clang for _min_write_chunk
2016-05-14 11:27:07 +02:00
Beat Küng
dae12f1238
mathlib: replace math::{min,max,constrain} with template methods
2016-05-14 11:27:07 +02:00