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
e83a3d8185
AP_Camera: clearer parameter docs for trigger pin
9 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
0be28999ea
AP_Camera: updated docs for timing of trigger pin
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
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Randy Mackay
bc06d67645
AP_Camera: fix configure command id sent to components
...
Also removed unnecessary setting of target system, component and
confirmation and minor formatting fix
10 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
Andrew Tridgell
d2167633f0
AP_Camera: revert AP_Math class change
10 years ago
Tom Pittenger
ad11a57f57
AP_Compass: compiler warnings: apply is_zero(float) or is_equal(float)
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
18a73d8630
Camera: use camera feedback flag
10 years ago
Randy Mackay
337a94e52e
Camera: remove empty configure_msg method
10 years ago
Randy Mackay
d456b97fd2
Camera: control_cmd triggers pic
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
Andrew Tridgell
4a9331c505
AP_Camera: removed use of mavlink_check_target()
10 years ago
Randy Mackay
1e4ec5f6a2
Camera: add f to float constants
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
d09faa0015
BattMon: minor param description additions
10 years ago
Randy Mackay
d530fe1806
Camera: remove unused reference to hal
...
Resolves one compiler warning
11 years ago
Andrew Tridgell
55b604b147
AP_Camera: updates for relay API change
11 years ago
Randy Mackay
bffa7c3783
Camera: correct _trigger_type comment
11 years ago
Andrew Tridgell
98d391efa0
AP_Camera: added note on DO_SET_CAM_TRIGG_DIST in docs
11 years ago
Andrew Tridgell
0f0b040891
AP_Camera: added set_trigger_distance() call
11 years ago
Randy Mackay
ab71f2e535
AP_Camera: remove unused methods
...
throttle_pic, distance_pic and transistor_pic were not defined nor
called
12 years ago
Andrew Tridgell
f3b3e23bbc
AP_Camera: fix for new AP_Math API
...
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
12 years ago
Andrew Tridgell
0f72eae216
AP_Camera: removed 3 camera trigger types that do not work
...
the trigger by wp distance, trigger with throttle off and trigger a
transistor all don't work, and are not structured correctly, plus are
dangerous.
The existing relay support can (correctly!) handle the resistor case
without hard-wiring a pin. The "turn off throttle to trigger" idea is
badly broken, it would crash a copter if it worked. We can make it
work properly on planes if there is demand. As it was it didn't work
anyway.
The triggger by wp distance method was broken, and had no way to
initiate a trigger anyway
12 years ago
Andrew Tridgell
9959f6b2df
AP_Camera: removed incorrect mavlink sends
...
these sends did nothing, as MAVLINK_COMM_3 is not connected to
anything. If it was connected they would be dangerous, as a blocking
serial write could cause the stabilization of a copter not to run. If
the serial port was non-blocking it would corrupt the packet.
If we needed something like this it would have to use the MAVLink
packet queueing logic we use elsewhere
12 years ago
Craig@3DR
f5154d9e7a
AP_Camera: changed update_location() to return true for camera trigger
...
Makes the main vehicle code responsible for taking a photo so logging can occur
12 years ago
Andrew Tridgell
169b5a30a5
AP_Camera: added CAM_TRIGG_DIST parameter
...
for triggering every N meters of GPS distance travelled
12 years ago
Andrew Tridgell
fb7ae8c764
AP_Camera: fixed indent-tabs-mode
12 years ago
Stange Szilard
6516bffbb6
AP_Camera: enable relay off in all builds
12 years ago
Sandro Benigno
6abe1fe94f
AP Camera changes required to work with modified AP_Relay lib.
12 years ago
Sandro Benigno
cc7f26a99b
New Relay class and the subclasses for APM1 and APM2.
...
Updated AP_Camera class.
12 years ago
Andrew Tridgell
13ea0bb5d8
AP_Camera: disable relay on APM2
12 years ago
Andrew Tridgell
ceb3f577d8
libraries: use new math functions
12 years ago
Andrew Tridgell
53470aff09
AP_Camera: updates for new AP_Param API
12 years ago