AP_Camera: remove unused methods

throttle_pic, distance_pic and transistor_pic were not defined nor
called
This commit is contained in:
Randy Mackay 2013-09-24 23:25:54 +09:00
parent 2c96ed3f22
commit ab71f2e535

View File

@ -29,8 +29,7 @@ public:
/// Constructor
///
AP_Camera(AP_Relay *obj_relay) :
_trigger_counter(0), // count of number of cycles shutter has been held open
_thr_pic_counter(0) // timer variable for throttle_pic
_trigger_counter(0) // count of number of cycles shutter has been held open
{
AP_Param::setup_object_defaults(this, var_info);
_apm_relay = obj_relay;
@ -58,14 +57,10 @@ private:
AP_Int16 _servo_on_pwm; // PWM value to move servo to when shutter is activated
AP_Int16 _servo_off_pwm; // PWM value to move servo to when shutter is deactivated
uint8_t _trigger_counter; // count of number of cycles shutter has been held open
uint8_t _thr_pic_counter; // timer variable for throttle_pic
AP_Relay *_apm_relay; // pointer to relay object from the base class Relay. The subclasses could be AP_Relay_APM1 or AP_Relay_APM2
void servo_pic(); // Servo operated camera
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 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 transistor_pic(); // hacked the circuit to run a transistor? use this trigger to send output.
AP_Float _trigg_dist; // distance between trigger points (meters)
struct Location _last_location;