Open
Conversation
added 6 commits
March 17, 2017 13:08
…ferences to robotutils library. Updated to Mapbox 4.2.2
…en thumb is not moved enough to generate unique commands. Previous behavior was boat would eventually stop if joystick was held in a single position for too long. New behavior is boat will continue to move as long as a connection is maintained and the joystick is held in a non zero positon.
…op_stutter Lots of general cleanup. # Conflicts: # .idea/libraries/animated_vector_drawable_23_4_0.xml # .idea/libraries/appcompat_v7_23_4_0.xml # .idea/libraries/design_23_4_0.xml # .idea/libraries/lost_1_1_1.xml # .idea/libraries/recyclerview_v7_23_4_0.xml # .idea/libraries/support_vector_drawable_23_4_0.xml # app/build.gradle # app/src/main/AndroidManifest.xml # app/src/main/java/com/platypus/android/tablet/ConnectScreen.java # app/src/main/java/com/platypus/android/tablet/SettingsActivity.java # app/src/main/java/com/platypus/android/tablet/TeleOpPanel.java # app/src/main/res/drawable-hdpi/arrow.png # app/src/main/res/drawable-hdpi/ic_launcher.png # app/src/main/res/drawable-mdpi/arrow.png # app/src/main/res/drawable-mdpi/ic_launcher.png # app/src/main/res/drawable-xhdpi/ic_launcher.png # app/src/main/res/drawable-xxhdpi/ic_launcher.png # app/src/main/res/layout/maptest.xml # app/src/main/res/menu/loading_screen.xml # build.gradle
psigen
requested changes
Jul 3, 2017
Member
psigen
left a comment
There was a problem hiding this comment.
Thank you for fighting the good fight @christomaszewski
| android { | ||
| compileSdkVersion 25 | ||
| buildToolsVersion '25.0.2' | ||
| buildToolsVersion "25.0.2" |
Member
There was a problem hiding this comment.
I think this line got duplicated for no reason.
| if (mMapboxMap != null) { | ||
| mMapboxMap.setStyle(Style.SATELLITE); | ||
| mMapboxMap.setStyleUrl("mapbox://styles/mapbox/satellite-v9"); | ||
| //mMapboxMap.setStyle(Style.SATELLITE); |
| mMapboxMap.setStyleUrl("mapbox://styles/mapbox/streets-v9"); | ||
| //mMapboxMap.setStyle(Style.MAPBOX_STREETS); //vector map | ||
| //mMapboxMap.setStyle(Style.SATELLITE_STREETS); //satalite | ||
| //mMapboxMap.setMyLocationEnabled(true); //show current location |
| ipAddressBox.setBackgroundColor(Color.GREEN); | ||
| } | ||
| if (connected == false) { | ||
| else if (!connected) { |
Member
There was a problem hiding this comment.
If this is a boolean, you can just do else instead of else if. Or you can do a ternary like:
ipAddressBox.setBackgroundColor(connected ? Color.GREEN : Color.Red)
| //if (currentBoat.getConnected() == true) | ||
| { | ||
| if (old_thrust != thrustTemp || old_rudder!=rudderTemp) { | ||
| //if (old_thrust != thrustTemp || old_rudder!=rudderTemp) { |
Member
There was a problem hiding this comment.
Just get rid of these old comments. I have no idea what this is supposed to be doing but it looks like garbage.
| @@ -2307,9 +2285,10 @@ public boolean isWaypointWithinDistance(LatLng a, LatLng b, double dist) | |||
| // double distanceBetweenPoints = Math.sqrt(x+y); | |||
| // //if (distanceBetweenPoints < dist)//0.0000449) | |||
| if (a.distanceTo(b) <= dist) | |||
Member
There was a problem hiding this comment.
This can just be:
return a.distanceTo(b) <= dist;
| public void onClick(View v) { | ||
| if (containsRegion == true) | ||
| if (containsRegion) | ||
| { |
Member
There was a problem hiding this comment.
Weird bracket indent, pull back to end of last line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Can we test and merge this into master? It should have fix issues Paul was experiencing in Mexico and Colombia. Also gets rid of the teleop stutter.