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

773: Auto download parameters on CONNECTED #955

Closed
wants to merge 7 commits into from

Conversation

squilter
Copy link
Member

Work in Progress. TODO:

  • Check !is_flying before sending parameter-get request (Parameters.java:154)
  • Start progress bar in parameters automatically
  • Window leaks when leaving parameters page.
  • Make sure only one parameters download can happen at one time
  • fix parameters download auto-restarting

@squilter
Copy link
Member Author

@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);
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@squilter
Copy link
Member Author

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.

@squilter squilter closed this Aug 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants