-
Notifications
You must be signed in to change notification settings - Fork 555
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
773: Auto download parameters on CONNECTED #955
Conversation
…en paramFragment is opened
@arthurbenemann This one is almost ready to merge. Just one small issue that I can't seem to fix: Going to settings>parameters will automatically restart a parameters download. Why??? Also, I get warned of a memory leak when I leave the parameters page. No crash, just a warning. And I think that was there before. |
@@ -60,6 +59,7 @@ public void receiveData(MAVLinkMessage msg) { | |||
case msg_heartbeat.MAVLINK_MSG_ID_HEARTBEAT: | |||
msg_heartbeat msg_heart = (msg_heartbeat) msg; | |||
drone.type.setType(msg_heart.type); | |||
drone.state.setIsFlying(((msg_heartbeat) msg).system_status==MAV_STATE.MAV_STATE_ACTIVE); |
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.
Does this work well? Have you checked?
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.
Yes, it works. Check out line 25 of this to understand why:
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.
Kudos for Kevin!
ArduPilot/ardupilot@240a9cc
ArduPilot/ardupilot@996eda0
This issue was fixed with a different pull request, #976 . Some of the changes here are good changes. I'll make a new PR for those. |
Work in Progress. TODO: