Skip to content
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

MOUNT: Add a mount2 retract #27352

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

muramura
Copy link
Contributor

Rovers and other vehicles sometimes have cameras mounted on both the front and rear.

Copy link
Contributor

@khancyr khancyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, same as for mount1

@rmackay9
Copy link
Contributor

rmackay9 commented Jun 26, 2024

Hi @muramura,

We discussed at this week's EU dev call and to save flash could you please add a new method called, "do_aux_function_retract_mount()" that takes a "ch_flag" and a "uint8_t instance" which is set to 0 or 1 depending upon whether we're handling RETRACT_MOUNT1 or RETRACT_MOUNT2? then use this new method to handle both of the RETRACT_MOUNT1/2 events.

@muramura
Copy link
Contributor Author

muramura commented Jun 26, 2024

@rmackay9 san. I understand. I have made the changes.

libraries/RC_Channel/RC_Channel.cpp Outdated Show resolved Hide resolved
@muramura muramura force-pushed the AP_Add_a_MOUNT2_retract branch 2 times, most recently from 848d896 to 97f8c4b Compare July 1, 2024 22:26
@muramura
Copy link
Contributor Author

muramura commented Jul 1, 2024

@IamPete1 san. I made changes.

Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, spotted some more things.

libraries/RC_Channel/RC_Channel.cpp Show resolved Hide resolved
libraries/RC_Channel/RC_Channel.cpp Outdated Show resolved Hide resolved
libraries/RC_Channel/RC_Channel.cpp Outdated Show resolved Hide resolved
@Hwurzburg Hwurzburg added the WikiNeeded needs wiki update label Jul 1, 2024
@muramura muramura force-pushed the AP_Add_a_MOUNT2_retract branch 2 times, most recently from b2bc39d to 6155e38 Compare July 2, 2024 22:43
Update libraries/RC_Channel/RC_Channel.cpp

Co-authored-by: Peter Hall <[email protected]>
@muramura
Copy link
Contributor Author

muramura commented Jul 2, 2024

@IamPete1 san. I agreed.

@tridge tridge merged commit d6a79c0 into ArduPilot:master Jul 10, 2024
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WikiNeeded needs wiki update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants