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

Toast "Please select waypoints" shows despite displayed waypoints loaded from file #53

Open
jjblum opened this issue Apr 19, 2017 · 2 comments
Labels

Comments

@jjblum
Copy link
Contributor

jjblum commented Apr 19, 2017

The load waypoints from file functionality will properly display a sequence of waypoints on the screen, but the tablet behaves like they don't exist if you press the start waypoints button. A toast message pops up saying "please select waypoints". This occurs if the pencil is black or colored.

Adding an additional waypoint via a long press causes the popup to not appear. I cannot verify if only that one new waypoint is being sent to the boat at this time.

@jjblum jjblum added the bug label Apr 19, 2017
@jjblum
Copy link
Contributor Author

jjblum commented Apr 19, 2017

boatPath must be set using the waypoint list generated. The loading waypoints from file function correctly generates the waypoint list and the associated graphics on the map but never creates a Path object from them. Add the following line to TeleOpPanel.LoadWaypointsFromFile(), submitButton's new OnClickListener, below where LatLng values are added into waypointList, above dialog.dismiss():

boatPath = new Path(waypointList);

@jjblum
Copy link
Contributor Author

jjblum commented May 9, 2017

I have changed the way the connect button and the colored pencil work in the INTCATCH branches. I recommend the main branch integrate a similar change. The code now matches the intended functionality for those buttons.

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

No branches or pull requests

1 participant