David Jablonski
c6239ce8c2
replay: fix replay msg ids larger than 128 ( #20865 )
2023-01-11 09:13:53 -05:00
Daniel Agar
7c809f034d
replay: ReplayEkf2 disable parameter auto save
...
- not needed and silences a startup error
2022-08-08 21:27:47 -04:00
Hamish Willee
30e2490d5b
Docs are now in user guide and main ( #19977 )
...
* Fix links to docs in source to point to docs on main not master
* More docs and scripts that need to point to main
2022-08-01 11:39:39 +10:00
Daniel Agar
15223009d2
combine sensor_gps + vehicle_gps_position msgs (keeping separate topics)
2022-07-07 10:24:11 -04:00
Daniel Agar
d5839e2dd5
optical flow sensor pipeline overhaul
...
- all sources of optical flow publish sensor_optical_flow
- sensor_optical_flow is aggregated by the sensors module, aligned with integrated gyro, and published as vehicle_optical_flow
Co-authored-by: alexklimaj <alex@arkelectron.com >
2022-06-20 20:56:56 -04:00
Beat Küng
a0e72b35a4
replay: ignore ULogMessageType::PARAMETER_DEFAULT messages
2021-10-20 08:10:05 +02:00
Beat Küng
4c73ac3805
uorb: use single byte for internal types in o_fields metadata
...
Reduces flash usage by ~9KB.
2021-10-20 08:10:05 +02:00
Peter van der Perk
d5e3e9a7bc
[Kconfig] Decompose Kconfig, now each module has its own Kconfig
...
Which is better for versioning and decomposability
2021-10-07 10:09:01 -04:00
David Jablonski
9d974062d0
replay: improved logging for format mismatchs
2021-09-11 14:37:52 -04:00
Hyungsub
d089d4a6a4
fix memory bugs in replay and bl_update
2021-08-18 07:45:51 +02:00
Daniel Agar
142452f80c
replay: print parameter changes and error on mismatch
2020-11-04 11:47:01 -05:00
Daniel Agar
27f23ac290
move initial sensor priority to parameters and purge ORB_PRIORITY
...
- CAL_ACCx_EN -> CAL_ACCx_PRIO
- CAL_GYROx_EN -> CAL_GYROx_PRIO
- CAL_MAGx_EN -> CAL_MAGx_PRIO
2020-08-21 10:12:13 -04:00
Beat Küng
157ef43e28
replay: use lockstep scheduler
2020-06-23 11:53:55 -04:00
Daniel Agar
746a8f5cf9
commander: reboot/shutdown usability fixes
...
- always check with state machine before reboot/shutdown
- respect BOARD_HAS_POWER_CONTROL (shutdown from command, low battery, power button)
- px4_shutdown_request add optional delay and always execute from HPWORK
- px4_shutdown_request split out px4_reboot_request
2020-05-06 13:53:54 -04:00
Hamish Willee
8236b8da81
Fix up doc links to point to master branch
2020-04-21 08:58:40 +02:00
Daniel Agar
9585055e9e
uORB: add bitset for faster orb_exists check and remove uORB::Subscription lazy subscribe hack/optimization
...
- add PX4 bitset and atomic_bitset with testing
- add uORB::Subscription constructor to take ORB_ID enum
- move orb test messages into msg/
2020-03-11 09:06:33 -04:00
CarlOlsson
a61f1647ad
replay: remove GPS relative timestamps
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2020-02-07 08:19:22 +01:00
Daniel Agar
1c4e854f93
cmake don't build param "c" files and remove param defines
...
- these aren't actual source code
2019-11-11 10:25:42 -05:00
Daniel Agar
a475d71ca9
astyle shift module documentation to bottom of files
...
- Astyle chokes on the module description strings, so for now we can keep them near the bottom of each file.
2019-11-02 10:58:47 -04:00
Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
c13835c0f0
replay module split replay_main.cpp into separate compilation units
2019-09-17 14:33:04 +02:00
Daniel Agar
78ef8aab2d
STACK_MAIN increase default 1024 -> 2048
2019-08-30 19:11:51 -07:00
roangel
e50dd7c364
replay: close replay log file after replay is finished, then exit ( #11264 )
2019-08-28 08:13:50 +02:00
CarlOlsson
ed2d4f6a9c
replay: fix issue when original logfile had topics with zero timstamps
...
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com >
2019-03-25 16:00:39 -04: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
TSC21
8dd610ab78
replay: subscribe to vehicle_visual_odometry
2018-09-18 09:52:33 +02:00
TSC21
8f23a073a4
ekf2: add vehicle_odometry usage and data validation check; update replay as well
2018-09-18 09:52:33 +02:00
Beat Küng
e989c80205
replay: fix potential invalid memory access
...
_subscriptions is a vector that is resized when needed. However there could
still be references to elements in the vector when the resize happens.
These references then become invalid.
Using a vector of pointers fixes that.
2018-08-06 07:15:51 +02:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Beat Küng
71b4ad62a1
ekf2 replay: handle multi multiple GPS instances ( #9433 )
2018-05-09 10:00:59 +10: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
Daniel Agar
2a58c7a28c
EKF2 and replay add all consumed messages to ekf2_timestamps and refactor
2018-04-11 23:26:58 -04:00
Daniel Agar
07edec282e
replay update sensor_combined fields
2018-04-11 23:26:58 -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
545ce9ae24
modules remove extra semicolons
2017-09-16 21:29:52 +01:00
Daniel Agar
9b5fe8c476
ignore -Wsign-compare per module
2017-09-07 10:27:36 +02:00
Beat Küng
c59d7baad8
replay: add backward compatibility for updated sensor_combined topic
2017-07-16 14:08:37 +02:00
Beat Küng
cef3a29ac9
refactor replay: split timestamp offset into separate method
2017-07-16 14:08:37 +02:00
Beat Küng
682dabded1
replay: use module base class & add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
9141bf8386
replay: handle INFO_MULTIPLE & FLAG_BITS ULog messages
2017-07-07 17:06:48 +02:00
Beat Küng
f179049e95
replay: ignore the ULogMessageType::INFO message
...
This got introduced the the addition of the perf counter to the log.
Fixes the error:
unknown log message type 73
2017-04-06 11:48:35 +02:00
Beat Küng
358bcb6ae0
visibility.h: add #pragma GCC poison getenv setenv putenv
...
Just to make sure that it will never be used on NuttX. This is not an
architectural limitation, just a memory optimization, since we call
clearenv() on NuttX.
2017-03-29 23:02:09 +02:00
Beat Küng
ca05e64a9f
replay: update & add some comments
2017-03-04 22:47:54 +08:00
Beat Küng
1d48d7e053
ekf2 replay: add statistics output when replay finished
...
The error counter is an indicator that the logger missed samples or dropped
due to a too small write buffer.
2017-03-04 22:47:54 +08:00
Beat Küng
2a11a2bc0b
ekf2 replay: switch from ekf2_replay to ekf2_timestamps topic
2017-03-04 22:47:54 +08:00
Beat Küng
473192aa81
replay: some API refactoring & extensions
...
in preparation to the updated ekf2 replay
2017-03-04 22:47:54 +08:00
Beat Küng
ba89839f65
replay: make sure ReplayEkf2::handleTopicUpdate is protected, not private
2017-03-04 22:47:54 +08:00
Beat Küng
63203625bc
replay: add ekf2 replay method (can be selected with 'export replay_mode=ekf2')
2017-03-04 22:47:54 +08:00
Beat Küng
e251c64c5f
refactor replay: add some overrideable methods
2017-03-04 22:47:54 +08:00
Beat Küng
9d54f62d37
replay: check if topic timestamp is smaller than logging start
...
This could happen and then the sleep duration would wrap and be huge.
2017-03-04 22:47:54 +08:00