Daniel Agar
6f2d1d55f6
logger use uORB::PublicationQueued for ulog_stream
...
- queue depth is now set by the msg
2019-08-06 11:07:59 -04:00
Daniel Agar
5b511eaa1a
logger move non-logged subscriptions to uORB::Subscription
2019-08-06 11:07:59 -04:00
Daniel Agar
e69398c09f
introduce uORB::PublicationQueued and transition most orb_advertise_queue usage
2019-08-04 10:08:09 -04:00
David Sidrane
e296297ab7
Revert "hotfix for logger: use '%i' instead of '%zu'"
...
This reverts commit e6aa035209 .
Root cause was fixe in Nuttx and backported
2019-07-25 05:28:46 -07:00
Beat Küng
e6aa035209
hotfix for logger: use '%i' instead of '%zu'
...
Work-around for https://github.com/PX4/Firmware/issues/12485 .
This can be reverted after the root-cause is fixed.
2019-07-16 13:11:41 +02:00
Martina Rivizzigno
0ee770e853
logger: log obstacle_distance_fused instead of obstacle_distance
2019-07-15 10:58:00 +02:00
Beat Küng
a2471fb539
logger: handle 'char' type in messages
...
Fixes errors like:
ERROR [logger] No definition for topic char[10] key;uint8_t[2] _padding0; found
when the Debug logging profile is selected.
2019-07-03 10:43:59 +02:00
Bharat Tak
1ebf5d04d9
logger: add Ulog sync bytes at 1Hz and tagged log message definition ( #12144 )
2019-06-11 11:00:54 +02:00
Daniel Agar
97c2dba2fa
logger move print_usage() to bottom of file and format
2019-06-08 03:23:50 -07:00
Julian Oes
e7d0cabb52
logger: fix uninitialized member variable
...
This was reported by Coverity Scan.
2019-06-05 14:46:03 +02:00
Beat Küng
d68dcb9cf7
log_writer_file: increase stack size by 20 bytes
...
Seems to be due to the console buffer.
2019-06-04 11:57:54 +02:00
Beat Küng
0d71eeccbf
console buffer: write to log as 'boot_console_output' message
2019-06-04 11:57:54 +02:00
Daniel Agar
2c63e335e9
uORB::Subscription subscribe directly to uORB device node object
2019-06-03 17:06:21 -04:00
Beat Küng
ed9d25a75a
logger: add arming/disarming via AUX1 RC channel logging mode
2019-05-29 11:41:22 +02:00
Beat Küng
721f9f901f
log_writer_file: fix race condition for fast consecutive stop & start calls
2019-05-29 11:41:22 +02:00
Daniel Agar
0206375de6
logger reduce default topics
2019-04-09 10:14:49 -04:00
Daniel Agar
6648937789
logger increase stack 3600 -> 3700 bytes
2019-04-03 14:32:45 -04:00
Beat Küng
14ef009aab
logging: add SDLOG_MODE = -1 to disable logging completely
2019-03-21 08:15:48 +01:00
Daniel Agar
b35d048566
cmake enable -Wcast-align and disable per module
2019-03-16 11:47:15 -04:00
DanielePettenuzzo
15abb159a8
camera_capture: change topic namings to make logging, mavlink streaming and geotagging easier
2019-02-10 18:07:44 -05:00
Daniel Agar
2ffb49b734
delete px4_includes.h header and update boards/ to use syslog
2019-01-23 18:25:18 -05:00
Daniel Agar
edeb59a8c3
move logger array.h -> containers/Array.hpp
2019-01-20 12:03:53 +01:00
Beat Küng
c2f82b5996
logger: disable mission log by default (SDLOG_MISSION=0)
...
- I enabled it by default mostly for testing purposes
- Disabling it reduces resource usage as most setups don't need it
2019-01-09 08:59:29 -05:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Christian Rauch
8a2e3800d8
check CONFIG_SCHED_INSTRUMENTATION for print_load_nuttx
2018-12-21 05:43:21 -08:00
Beat Küng
dc49e259b3
logger: add separate profile for vision/avoidance
...
Keeps things more modular.
2018-12-07 11:51:59 +01:00
Beat Küng
fced1ce33b
logger: remove some unused logged topics in SITL
2018-12-07 11:51:59 +01:00
Daniel Agar
3e0a3559a9
cmake use standard mechanisms for settings flags
2018-11-26 14:40:14 -08:00
Mara Bos
e9fb17c51a
Always use FILE* for standard output.
...
The threads running commands for clients through the Posix daemon used
to write to a char buffer through snprintf (etc.) which was then written
directly to the file descriptor, whereas in the other case printf
(etc.) was used to write to stdout (FILE*). Both versions used some
macro's and repeated code to have the same output.
This change unifies these two cases by using a FILE* in both cases. The
(line) buffering is done by the standard C library's implementation
(just like with stdout), and px4_log.c now uses the same code in all
cases (using fprintf, etc.) for printing (colored) output.
2018-11-23 12:15:41 +01:00
baumanta
db514fe441
Add a collision avoidance library which uses range data
2018-11-20 14:11:33 +01:00
Daniel Agar
bba475aca1
logger limit trajectory_setpoint rate
2018-11-19 09:59:22 -05:00
TSC21
05d9932f6c
logger: limit vehicle_*_odometry topics to 30hz on default logging
2018-11-16 09:44:32 +01:00
TSC21
2c111222cf
logger: fix vision topics naming
2018-11-16 09:44:32 +01:00
bresch
7205e8f359
Auto traj - Add Trajectory logging
...
- move the update after the integration: a new computed jerk has an impact at the next epoch only
- add jerk reduction in case of too large integration time: when a jerk of "min_jerk" during dt is too much
- add jerk reduction if the integration time is larger than the predicted one and that integrating that jerk would lead to an acceleration overshoot
- rename some variables
2018-11-06 22:17:00 +01:00
Beat Küng
df559f3042
logger: unlock the mutex for fsync & call fsync only when backend is running
...
- fsync can be a long blocking operation, so we need to make sure the main
logger thread does not block during this time, when it tries to aquire
the mutex
- fixes calling fsync on an invalid file descriptor
2018-11-07 00:08:23 +08:00
Beat Küng
ee5c18a737
SDLOG_MISSION param: update description
2018-10-26 08:02:42 +02:00
Beat Küng
c5d8abff00
log_writer_file: rename argument to avoid shadowing warning
2018-10-26 08:02:42 +02:00
Beat Küng
2642915a76
logger: enable mission log by default
...
To get it field-tested. This can be reverted for a release...
2018-10-26 08:02:42 +02:00
Beat Küng
3a462c2ba7
refactor logger: move debug buffer printf into separate method (DBGPRINT)
2018-10-26 08:02:42 +02:00
Beat Küng
234ec7f2a2
logger: add mission log to frontend, configurable via SDLOG_MISSION
...
- mission logs are stored in a separate directory mission_log
- It's disabled by default
- Does not increase RAM usage if disabled (if enabled, only 300 bytes)
- Log rotate does not apply to the mission logs
2018-10-26 08:02:42 +02:00
Beat Küng
4fc1c5c4f5
LogWriterFile: split long header messages that exceed the buffer length
...
Some message formats are longer than the 300 bytes. We can split the writes
because we have to wait until they are written anyway.
2018-10-26 08:02:42 +02:00
Beat Küng
28ac7679e0
logger: change message id from uint16_t to uint8_t
...
256 subscriptions are enough for now.
Reduces RAM usage by 300 bytes.
2018-10-26 08:02:42 +02:00
Beat Küng
d6e820fe67
logger: add mission file to LogWriterFile backend
...
Not used yet, it should not affect anything, except for slight RAM
increase.
2018-10-26 08:02:42 +02:00
Beat Küng
b86c7d2e8f
Logger: only write subscribed topic format definitions
...
Previously the formats of all known uorb messages were written.
- reduces header size by about 13KB
- reduce ulog_message_format_s size to reduce required stack size.
Largest message format is about 1000 bytes.
2018-10-26 08:02:42 +02:00
Beat Küng
0745ba9052
refactor logger: move some code inside run() into separate methods
2018-10-26 08:02:42 +02:00
Beat Küng
5eafa1b34b
refactor logger: move some independent methods into separate util file
2018-10-26 08:02:42 +02:00
David Sidrane
9709d23179
logger:Use PX4 GUID for sys_uuid
2018-10-03 10:30:10 +02:00
Julien Lecoeur
a346619623
Logger: add debug_array topic
2018-09-27 12:33:12 -04:00
Beat Küng
3453506471
logger: log vehicle_air_data and vehicle_magnetometer by default & minor cleanup
...
Make sure vehicle_air_data & vehicle_magnetometer are logged if ekf2 replay
is disabled.
2018-09-24 13:25:01 +02:00
Daniel Agar
5207c420c3
generic position controller status/feedback message
2018-08-31 14:43:51 -04:00