mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
uncrustify libraries/AP_Camera/AP_Camera.h
This commit is contained in:
parent
30107b9665
commit
6f09714618
@ -12,46 +12,47 @@
|
|||||||
|
|
||||||
/// @class Camera
|
/// @class Camera
|
||||||
/// @brief Object managing a Photo or video camera
|
/// @brief Object managing a Photo or video camera
|
||||||
class AP_Camera{
|
class AP_Camera {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// Constructor
|
/// Constructor
|
||||||
///
|
///
|
||||||
AP_Camera() :
|
AP_Camera() :
|
||||||
picture_time (0), // waypoint trigger variable
|
picture_time (0), // waypoint trigger variable
|
||||||
wp_distance_min (10),
|
wp_distance_min (10),
|
||||||
keep_cam_trigg_active_cycles (0),
|
keep_cam_trigg_active_cycles (0),
|
||||||
thr_pic (0), // timer variable for throttle_pic
|
thr_pic (0), // timer variable for throttle_pic
|
||||||
camtrig (83) // PK6 chosen as it not near anything so safer for soldering
|
camtrig (83) // PK6 chosen as it not near anything so safer for soldering
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// single entry point to take pictures
|
// single entry point to take pictures
|
||||||
void trigger_pic();
|
void trigger_pic();
|
||||||
|
|
||||||
// de-activate the trigger after some delay, but without using a delay() function
|
// de-activate the trigger after some delay, but without using a delay() function
|
||||||
void trigger_pic_cleanup();
|
void trigger_pic_cleanup();
|
||||||
|
|
||||||
// MAVLink methods
|
// MAVLink methods
|
||||||
void configure_msg(mavlink_message_t* msg);
|
void configure_msg(mavlink_message_t* msg);
|
||||||
void control_msg(mavlink_message_t* msg);
|
void control_msg(mavlink_message_t* msg);
|
||||||
|
|
||||||
int16_t picture_time; ///< waypoint trigger variable
|
int16_t picture_time; ///< waypoint trigger variable
|
||||||
int32_t wp_distance_min; ///< take picture if distance to WP is smaller than this
|
int32_t wp_distance_min; ///< take picture if distance to WP is smaller than this
|
||||||
|
|
||||||
static const struct AP_Param::GroupInfo var_info[];
|
static const struct AP_Param::GroupInfo var_info[];
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t keep_cam_trigg_active_cycles; ///< event loop cycles to keep trigger active
|
uint8_t keep_cam_trigg_active_cycles; ///< event loop cycles to keep trigger active
|
||||||
int16_t thr_pic; ///< timer variable for throttle_pic
|
int16_t thr_pic; ///< timer variable for throttle_pic
|
||||||
int16_t camtrig; ///< PK6 chosen as it not near anything so safer for soldering
|
int16_t camtrig; ///< PK6 chosen as it not near anything so safer for soldering
|
||||||
|
|
||||||
AP_Int8 trigger_type; ///< 0=Servo, 1=relay, 2=throttle_off time, 3=throttle_off waypoint, 4=transistor
|
AP_Int8 trigger_type; ///< 0=Servo, 1=relay, 2=throttle_off time, 3=throttle_off waypoint, 4=transistor
|
||||||
|
|
||||||
void servo_pic(); // Servo operated camera
|
void servo_pic(); // Servo operated camera
|
||||||
void relay_pic(); // basic relay activation
|
void relay_pic(); // basic relay activation
|
||||||
void throttle_pic(); // pictures blurry? use this trigger. Turns off the throttle until for # of cycles of medium loop then takes the picture and re-enables the throttle.
|
void throttle_pic(); // pictures blurry? use this trigger. Turns off the throttle until for # of cycles of medium loop then takes the picture and re-enables the throttle.
|
||||||
void distance_pic(); // pictures blurry? use this trigger. Turns off the throttle until closer to waypoint then takes the picture and re-enables the throttle.
|
void distance_pic(); // pictures blurry? use this trigger. Turns off the throttle until closer to waypoint then takes the picture and re-enables the throttle.
|
||||||
void NPN_pic(); // hacked the circuit to run a transistor? use this trigger to send output.
|
void NPN_pic(); // hacked the circuit to run a transistor? use this trigger to send output.
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user