Tidied up code

- Removed prints from tests
- Added Javadocs in necessary places
- Reenabled boat status message to send
- Added boat average angle
- pulled out modulateAngle function
- Commented harder to read loops
- Disabled toggled VMG
#story[1182]
This commit is contained in:
Fan-Wu Yang
2017-09-05 21:37:33 +12:00
parent d602c1ec6f
commit 06517b7b47
5 changed files with 69 additions and 47 deletions
@@ -26,20 +26,22 @@ public class NewPolarsTest {
PolarParser.parseNewPolars("mock/polars/acc_polars.csv");
NewPolars.linearInterpolatePolars();
Method getPolars = null;
try {
getPolars = NewPolars.class.getDeclaredMethod("printOutLinearInterpolated");
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
getPolars.setAccessible(true);
try {
getPolars.invoke(NewPolars.newPolars);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
// Uncomment if you want to read the linear interpolation in text
// Method getPolars = null;
// try {
// getPolars = NewPolars.class.getDeclaredMethod("printOutLinearInterpolated");
// } catch (NoSuchMethodException e) {
// e.printStackTrace();
// }
// getPolars.setAccessible(true);
// try {
// getPolars.invoke(NewPolars.newPolars);
// } catch (IllegalAccessException e) {
// e.printStackTrace();
// } catch (InvocationTargetException e) {
// e.printStackTrace();
// }
}
@Test