goofy formatting
This commit is contained in:
parent
ed5dc8f341
commit
e637302696
8
.idea/inspectionProfiles/Project_Default.xml
Normal file
8
.idea/inspectionProfiles/Project_Default.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.io.PrintStream,printf,android.content.res.Resources,obtainTypedArray" />
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
|
@ -58,13 +58,17 @@ public class AutoRedColorSensor extends LinearOpMode {
|
|||
);
|
||||
} else if (largest == b) {
|
||||
// move to position 3
|
||||
endpos = api.makeTrajectories(mecanumDrive, firstMove.end(),
|
||||
endpos = api.makeTrajectories(
|
||||
mecanumDrive,
|
||||
firstMove.end(),
|
||||
new int[]{-34, -70, -60},
|
||||
new int[]{-60, -60, -30}
|
||||
);
|
||||
} else {
|
||||
// Color sensor broke, move to backup position
|
||||
endpos = api.makeTrajectories(mecanumDrive, firstMove.end(),
|
||||
endpos = api.makeTrajectories(
|
||||
mecanumDrive,
|
||||
firstMove.end(),
|
||||
new int[]{-34, -70},
|
||||
new int[]{-60, -60}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue