Peter Barker
6a97056736
AP_Camera: stop libraries including AP_Logger.h in .h files
...
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h
This necessitated moving The PID_Info structure out of AP_Logger's
namespace. This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!
There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
3 years ago
Peter Barker
1b970545c0
AP_Camera: include cleanups
3 years ago
Peter Barker
1835a63bfb
AP_Camera: don't use stale image number in CAMERA_FEEDBACK
3 years ago
Peter Barker
8f1c255693
AP_Camera: stash information required for camera_feedback message
...
This means the data sent in the mavlink message is closer to the
information when the picture was taken, rather than when we decide we
have the space to send the mavlink message. When we process the
deferred request to send the camera feedback message is up to the
vagaries of mavlink scheduling, so the data can become quite out-of-date
3 years ago
Peter Barker
8ce4a1fce7
AP_Camera: use AP_AHRS singleton to get current location and home
3 years ago
Patrick José Pereira
5375980aa6
AP_Camera: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Josh Henderson
d6dc8864db
AP_Camera: Privatize AP_Camera
4 years ago
Mirko Denecke
2dfc7c4108
AP_Camera: call update in update_trigger
5 years ago
Matt Lawrence
05b94de9a0
AP_Camera: Make trigger type enum class
5 years ago
Matt Lawrence
a2af217adf
AP_Camera: Add handling of GoPro mavlink commands
5 years ago
Pierre Kancir
09f0f34fe5
AP_Camera: pass mavlink_message_t by const reference
6 years ago
Peter Barker
41bddf682f
AP_Camera: remove unused includes
6 years ago
Peter Barker
01773d9025
AP_Camera: use singletons for relay and ahrs insead of storing references
6 years ago
Michael du Breuil
fc3f09c6c0
AP_Camera: fixup includes
6 years ago
Peter Barker
caec67762e
AP_Camera: move reliance on GCS into .cpp file
6 years ago
Andrew Tridgell
c1516da203
AP_Camera: use timestamp from trigger time
...
this avoids time inaccuracy from loop times in timestamps
6 years ago
ChrisBird
d8281f3171
AP_Camera: Adding ability to control the Black Magic Micro Cinema Camera
...
via SBUS from the flight controller directly. Handles the flipping of
certain channels. Relies on change to SRV_Channel to add additional functions.
6 years ago
Peter Barker
049f61c943
AP_Camera: populate camera singleton
7 years ago
Peter Barker
fb786b8d56
AP_Camera: add singleton
7 years ago
Michael du Breuil
f8e9e57523
AP_Camera: reduce feedback pin timer work, remove unneeded inits
7 years ago
Michael du Breuil
0e6213a4c6
Camera: Track number of completed events
...
Closes #3903
7 years ago
Andrew Tridgell
573a5bf3d0
AP_Camera: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Peter Barker
7258fa81d9
AP_Camera: use GPS singleton
7 years ago
André Kjellstrup
1a63fd85d8
AP_Camera: Option to trig by distance only when in AUTO mode
7 years ago
Lucas De Marchi
ddde53f84c
AP_Camera: add static create method
7 years ago
Peter Barker
bb06b02df6
AP_Camera: add const to some parameters
8 years ago
Peter Barker
9390539231
AP_Camera: tidy up usage of trigger_pic
8 years ago
Peter Barker
84ef63edc7
AP_Camera: camera is responsible for taking distance-based-images and logging
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
9f31fbb895
AP_Camera: support fast timer capture on AUX4 on Pixhawk
...
microsecond capture of hot-shoe
9 years ago
Lucas De Marchi
d721ad70eb
AP_Camera: replace header guard with pragma once
9 years ago
Andrew Tridgell
dc998a2eaf
AP_Camera: make AP_Camera::control() return bool for picture trigger
...
this allows a picture to be logged if it is requested
9 years ago
Andrew Tridgell
2099f40d89
AP_Camera: added CAM_FEEDBACK_POL option
...
allows selection of trigger polarity
9 years ago
Andrew Tridgell
061ee5e4fd
AP_Camera: use timer for faster camera trigger pin detection
9 years ago
Dario Lindo Andres
2f3510023d
AP_Camera: Support for camera feedback signal
...
Added _feedback_pin;
Added _camera_triggered;
Included FEEDBACK_PIN parameter and his default definition
9 years ago
Andre Kjellstrup
6da7e76990
AP_Camera: Camera options for better camera control
...
All on one because they would not pass autotest if split up.
9 years ago
Lucas De Marchi
1c8f6c2ee5
AP_Camera: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
squilter
8391764c60
AP_Camera: add support for do_digicam_x via command_long
10 years ago
Andrew Tridgell
745a5998f2
AP_Camera: added CAM_RELAY_ON parameter
...
allows for camera that trigger low
10 years ago
Gustavo Jose de Sousa
4887d8eb94
AP_Camera: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Grant Morphett
444841537e
AP_Camera: Just putting the newline at the end of the file.
10 years ago
Tom Pittenger
c1d4992dac
Camera: fix compile warnings re float constants
10 years ago
Randy Mackay
337a94e52e
Camera: remove empty configure_msg method
10 years ago
Jaime Machuca
38491c4ff7
Camera: fix mission cmds sending msgs to components
...
mission commands were triggering the sending of
mavlink mission items when they should have been sending
command long messages
10 years ago
Randy Mackay
4eb3263653
Camera: mission cmds send do-digicam msgs to components
...
This allows digicam-control and digicam-configure mission
command to trigger sending the equivalent mavlink messages
to components
10 years ago
Randy Mackay
8dcd555037
Camera: trigger_pic sends do-digicam-control to components
...
This (optionally) allows pictures triggered from ch7/ch8
switch to send a mavlink do-digicam-control message to
components
10 years ago
Randy Mackay
ad7a9bf81b
Camera: initialise image_index
10 years ago
Arthur Benemann
7bb4a39608
Camera: record number of pictures taken since boot
...
The field is useful for detecting in a GCS if a mavlink_msg_camera_feedback message was dropped.
10 years ago
Arthur Benemann
2e4812afb5
Camera: Added feedback message support
...
Now the autopilot can publish the state of the camera via the mavlink_msg_camera_feedback message.
10 years ago
Randy Mackay
bffa7c3783
Camera: correct _trigger_type comment
11 years ago