-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_Camera_servo: allow focus and zoom control #29247
base: master
Are you sure you want to change the base?
Conversation
@@ -43,6 +49,28 @@ bool AP_Camera_Servo::trigger_pic() | |||
return true; | |||
} | |||
|
|||
|
|||
bool AP_Camera_Servo::set_zoom(ZoomType zoom_type, float zoom_value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there, thanks for this. Small nitpick is in the cpp files we put the bracket on the next line
@@ -29,12 +29,20 @@ class AP_Camera_Servo : public AP_Camera_Backend | |||
// Constructor | |||
using AP_Camera_Backend::AP_Camera_Backend; | |||
|
|||
void init() override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's put the init lower like it is in other drivers. Also if possible can we put a comment above it? I know it's pretty obvious what "init" is for but all our other methods have comments so I'd like to keep it consistent
@@ -6,6 +6,12 @@ | |||
|
|||
extern const AP_HAL::HAL& hal; | |||
|
|||
|
|||
void AP_Camera_Servo::init() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too let's put a comment and put the bracket on the next line
Except for the minor formatting items this looks pretty good to me, thanks! |
We want to control our camera's focus and pwm through ardupilot.