Martina
8662c71d82
logger: enable trajectory_waypoint and trajectory_waypoint_desired logging
2018-07-12 16:36:11 -04:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
d21cf7123e
version library add ECL
2018-06-22 08:46:30 +02:00
Simone Guscetti
700b2c6294
logger: fix overflow on SD card total bytes
2018-06-01 19:27:30 +02:00
Jun-Tao
c7cb62eb28
logger: Fix calculation of total and left bytes
2018-06-01 19:27:30 +02:00
acfloria
30fc8cd608
Add iridiumsbd_status to logger
2018-05-27 12:11:35 -04:00
Daniel Agar
222a91c6be
mathlib delete Matrix, Quaternion, Vector
2018-05-23 17:27:09 -04:00
Beat Küng
9b5df10631
logger watchdog: avoid using printf from IRQ context
...
PX4_ERR calls printf, which calls lib_sem_initialize, which calls sem_wait
2018-05-18 22:23:32 +02:00
Beat Küng
b8a94bf8d4
logger: move pthread_t cast to pid_t into watchdog_initialize
...
avoids compile error on OSX, trying to cast pthread_t to pid_t
2018-05-18 22:23:32 +02:00
Beat Küng
bda237b368
logger: ensure that fsync is called at least every second
...
In case a log ends abruptly, we will know that we have everything up to the
last second.
A test showed that CPU load and the amount of logging drops are unaffected
by this.
2018-05-18 22:23:32 +02:00
Beat Küng
dd30012b27
logger: add watchdog that boosts its priority when the writer is blocked for >1s
...
This is to guard against busy-looping tasks, so that we at least have a
log. In case the watchdog is triggered, it also logs CPU load of all
tasks.
2018-05-18 22:23:32 +02:00
Beat Küng
401eefd39b
refactor logger: add struct timer_callback_data_s used in the timer callback
2018-05-18 22:23:32 +02:00
Beat Küng
9b72080ec1
refactor logger: add an enum for the reason of printing the cpu load
2018-05-18 22:23:32 +02:00
Mohammed Kabir
bbcf5b1b65
logger : log ping topic
2018-05-15 18:57:34 +02:00
Beat Küng
19a12ba75d
logger: avoid memset, use braced initializer instead
2018-05-09 07:59:46 +02:00
Mohammed Kabir
fc07b23f41
logger : log timesync topic
2018-05-03 09:59:16 +02:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Beat Küng
d4faaff854
logger: remove some unneeded SITL topics
...
We got over the limit
2018-04-12 11:32:15 +02:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
Daniel Agar
5dc23def2a
move pressure altitude from baros to sensors module
2018-04-11 23:26:58 -04:00
Beat Küng
b821297f20
logger: add board subtype
2018-04-04 13:30:52 -04:00
Daniel Agar
e395b3578f
delete unused ARMING_STATE_ARMED_ERROR state
2018-03-29 10:25:56 -04:00
Beat Küng
0038a5e755
uorb: fix constness for _uorb_topics_list
...
_uorb_topics_list was marked as 'const char *' array, which means the data
of the array was not actually const and thus landed in the data section
(so in RAM instead of FLASH).
The size of the array is 436 bytes.
2018-03-29 10:06:21 -04:00
Daniel Agar
623e16e8be
logger SITL add additional messages by default
2018-03-06 17:42:33 +01:00
Beat Küng
40675bd1f4
logger: fix potential semaphore counter overflow
...
When the timer callback is called at a higher rate than the logger can
execute the main loop (which is never the case under normal conditions),
the semaphore counter will increase unbounded, and eventually lead to
an assertion failure in NuttX.
The maximum semaphore counter is 0x7FFF, and when the logger runs at
default rate (3.5ms), the logger task must be blocked for 0x7FFF*3.5/1000
= 114 seconds continuously for an overflow to happen.
I see 2 cases where that could happen:
- the logger execution blocks somehow, or busy-loops in an inner loop
- a higher-prio task runs busy and hogs the CPU over a long period of time
2018-02-27 21:01:29 +01:00
Daniel Agar
2bea09a997
rate controller status include rates
...
- the actual corrected rates currently used by mc_att_control are not
logged
2018-01-29 09:10:56 -05:00
Andreas Antener
98441ac100
Log rate controller integrators (FW + MC)
2018-01-29 09:10:56 -05:00
Daniel Agar
c0615c9e70
logger add safety
2018-01-24 17:36:53 +01:00
Beat Küng
f672152d2d
logger: change 'removing log directory' warning to info
2018-01-17 02:19:01 -05:00
Nicolas de Palezieux
90e3aeda6c
logger : add support for logging precision landing messages
2018-01-15 10:27:23 +01:00
Daniel Agar
916d6a15fd
Mission merge offboard + onboard and simplify
2018-01-14 12:53:53 +01:00
Beat Küng
dac2a93ea2
logger: add sensor_combined at full rate to high rate profile
...
useful in case the ekf replay topics are not enabled
2018-01-10 07:59:32 +01:00
Lorenz Meier
413b161250
Logger: Style cleanup and comments
2018-01-08 09:27:22 +01:00
Daniel Agar
1ea5de43cf
logger add vehicle_status_flags
2017-12-22 10:42:14 -05:00
Daniel Agar
642aeccd1e
logger add home_position to the default set
2017-12-17 00:57:17 -05:00
lamping7
63718bf27b
fix MISSION_ITEM REACHED message broadcast ( #8332 )
2017-12-10 02:30:58 -05:00
Beat Küng
1dbeec6a19
logger: do not write param changes if _should_stop_file_log is set
...
_should_stop_file_log is set after disarming: logging continues for 1s
to measure the CPU usage.
During that time, other modules might change params (such as ekf), and
we don't need to have these the log. However currently all modules do
not notify the system when setting params after disarming.
Meaning this patch is not strictly needed, it's more a preventive
measure.
2017-12-07 11:55:51 +00:00
Beat Küng
41a4d07e4f
logger: make type passed to param_get() explicit
2017-10-27 10:43:15 +02:00
Paul Riseborough
c9f44531c2
logger: Add logging profile to support comparison of multiple sensors ( #8134 )
2017-10-20 09:30:55 -04:00
Beat Küng
8b797d9b05
logger: use int for loop counter
2017-10-18 08:40:32 +02:00
Beat Küng
7381ea8222
logger: remove unused topics commander_state & rc_channels
...
flight review now uses vehicle_status & manual_control_setpoint
2017-10-18 08:40:32 +02:00
Beat Küng
deaf125c81
logger: check for newly published topics while not logging
...
If logger is started very early, orb_exists() will fail for a lot of
topics, they will be advertised within the next few seconds.
Logger already dynamically adds subscriptions during logging, but if we
do that before as well, we'll avoid any delays and having to subscribe
to a lot of topics all at once.
2017-10-18 08:40:32 +02:00
Beat Küng
3be252289a
logger: use orb_exists to check if we need to subscribe to the first instance
...
To keep track of the configured interval, we store it as negative file
descriptor, until we do the subscription.
This frees up a considerable amount of file descriptors in most use-cases.
2017-10-18 08:40:32 +02:00
Beat Küng
98e6ba858d
logger: change SDLOG_PROFILE into a bitset
...
This is more flexible, allowing a combination of sets.
The default enables the same set & rates as before
2017-10-14 14:21:11 +02:00
Beat Küng
be6079bc52
logger: add high rate & debug profiles
2017-10-14 14:21:11 +02:00
Beat Küng
4da4093839
logger status output: print 'Not logging' if not actually logging
2017-10-12 16:40:47 +02:00
Dario Röthlisberger
3dd4454a87
version: include FIRMWARE_TYPE in vendor version
2017-10-09 14:41:58 +02:00
Dario Röthlisberger
257e54b304
logger: write vendor version if existent
2017-10-09 14:41:58 +02:00
Daniel Agar
086ddf5078
logger coverity fix 143427
2017-09-16 21:28:24 +01:00
Daniel Agar
e15afcca7a
vehicle_command commands are uint16, not uint32
2017-09-08 09:06:30 +02:00