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

Updated smart battery example to use non deprecated code #2258

Closed
wants to merge 2 commits into from

Conversation

takamasanumuro
Copy link

The smart battery example was not working as it depended on code sections of that were deprecated.
The example was updated to use the new available methods and constructors.

@takamasanumuro takamasanumuro changed the title Updated example to use non deprecated code Updated smart battery example to use non deprecated code Mar 26, 2024
JonasVautherin
JonasVautherin previously approved these changes Mar 26, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

I'm confused. This is now reverted to the old version.

@takamasanumuro
Copy link
Author

takamasanumuro commented Mar 27, 2024

Original code is not even compiling, it depends on methods which are no longer available.

For example, currently Mavsdk type has no parameterized constructor, it does not have a first_autopilot() method, the System class no longer has a value() method, and MavlinkPassthrough no longer has a queue_message() method

@julianoes
Copy link
Collaborator

You have it backwards. Which MAVSDK version are you compiling against? What have you installed?

@takamasanumuro
Copy link
Author

It seems I had an old version installed on my system. Sorry. I will close this PR. Thanks.

@julianoes
Copy link
Collaborator

Ok that makes sense, no worries!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants