made GPS and INS a static class

This commit is contained in:
2023-07-30 15:45:30 +02:00
parent 5a9d463192
commit 3b3c69ee56
4 changed files with 29 additions and 37 deletions

View File

@@ -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;
});