made GPS and INS a static class
This commit is contained in:
@@ -39,7 +39,7 @@ class GPS extends CLIAppBase {
|
||||
handle.writeLine("Accuracy: High");
|
||||
}
|
||||
|
||||
var ins = INS.instance.getHeading();
|
||||
var ins = INS.getHeading();
|
||||
if (ins != null) {
|
||||
handle.writeLine('INS heading: ${ins.x} y:${ins.y} z:${ins.z}');
|
||||
} else {
|
||||
@@ -61,7 +61,7 @@ class GPS extends CLIAppBase {
|
||||
});
|
||||
|
||||
registerAsyncSubcommand("ins",(args)->{
|
||||
return INS.instance.align().map((_)->{
|
||||
return INS.align().map((_)->{
|
||||
handle.writeLine("INS aligned");
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user