Thomas Stastny
ebe0a4095c
wip: squashed patch
2022-12-19 13:12:42 +01:00
Michael Schaeuble
064a602962
Add PPS capture message to logged topics, simplify timestamp logic and small cleanup
2021-12-17 07:56:08 +01:00
Michael Schaeuble
5ad8b84dec
Fix PPS based UTC timestamp in camera trigger and capture messages
...
The existing implementation has about 100ms difference to a reference clock. With the changes this error less than 25us.
- Use sensor_gps messages with hrt timestamps as RTC reference and not the system realtime clock. The PPS interrupt can then be aligned with the GPS clock system.
- Keep fallback based on system RTC when no PPS pulse was captured
2021-12-17 07:56:08 +01:00
Michael Schaeuble
3e4031cf0f
Set rtc_edge_time also in capture_callback
...
When using an FMU channel as PPS capture GPIO, the rtc_edge_time is now set as well. The delay between actual capture and callback is compensated with the elapsed time of the rtc clock.
2021-12-17 07:56:08 +01:00
Igor Mišić
c6098ef3dd
camera_capture: update to use PPS correction for UTC time
2021-12-17 07:56:08 +01:00
Daniel Agar
43a04c9bca
fix PARAM_PREFIX for boards with px4io (CONFIG_BOARD_IO)
2021-12-16 07:20:12 +01:00
Beat Küng
4ba84d56c9
logger: introduce optional topics
...
The current practice of adding topics to the default set isn't scalable,
as it affects all setups.
By making sure topics are advertised on init, logger can just discard
topics that don't exist. This does not work for all topics, so topics are
specifically marked as optional. It can be extended to more topics later
on though.
This reduces the list of topics by ~35 on a pixracer configured as quad,
and reduces RAM usage by ~1KB.
2021-11-15 09:02:03 -05:00
Beat Küng
296db60a58
camera_capture: use output functions for pin configuration if SYS_CTRL_ALLOC==1
2021-11-05 12:36:04 -04:00
Beat Küng
062dd28f4d
camera_capture: use up_input_capture_set directly
...
It reserves the channel and pwm_out will not use it
2021-09-08 16:10:24 -04:00
David Sidrane
b6435bb7f2
drivers:camera_capture Use inttypes
2021-06-16 17:07:47 +02:00
Daniel Agar
3f9e5a6934
drivers/device/ringbuffer: move into crazyflie syslink (only remaining user)
2020-11-17 19:47:06 -05:00
Beat Küng
316085c154
camera_capture: remove board-specific ifdef
2020-08-04 13:37:40 +02:00
Daniel Agar
e951531b12
camera_feedback: move to WQ callback and uORB::Subscription
2019-11-30 15:49:55 -05:00
Daniel Agar
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
2019-10-28 10:50:31 -04:00
Daniel Agar
26364d44c9
px4_work_queue: command line status output and shutdown empty queues
...
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
* WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
2019-10-02 12:23:17 -04:00
Daniel Agar
e69398c09f
introduce uORB::PublicationQueued and transition most orb_advertise_queue usage
2019-08-04 10:08:09 -04:00
DanielePettenuzzo
3e9acee83e
add camera capture support for av_x board (not timer capture but gpio capture)
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
15abb159a8
camera_capture: change topic namings to make logging, mavlink streaming and geotagging easier
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
faf535b040
camera_capture: remove trig_buffer and replace it with public structure
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
0ee66c5434
camera_capture: clean trigger modes and change fmu to 4pwm2cap
2019-02-10 18:07:44 -05:00
David Sidrane
a153148ef5
camera_capture:Use IOCTL to set capture mode.
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
96961c6f9c
camera trigger and camera capture publish on two different topics and camera feedback module uses CAM_CAP_FBACK param to choose between the two.
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
011a7f26f4
fix camera_trigger publish and reduce time in capture interrupt routine
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
3f99204de2
camera_trigger.msg: add feedback field to understand if message camera from trigger or capture driver
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
38c8a6ff74
camera_capture: add cycle for cycle_trampoline
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
ea9d6899ae
clean up camera capture driver
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
42e2bd47c4
add camera capture mode and edge params
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
d49752141d
rename camera capture feedback param and move it from camera_feedback module to camera capture driver
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
42afc88285
add camera trigger feedback (input capture when camera actually takes the photo)
2019-02-10 18:07:44 -05:00
bresch
5229882470
Camera Capture - Use falling edge only
2019-02-10 18:07:44 -05:00
bresch
7906bff914
Camera Capture - add "status" to camera_capture usage help message
2019-02-10 18:07:44 -05:00
Mohammed Kabir
94bb02a9c7
Add camera_capture driver
2019-02-10 18:07:44 -05:00