From 7c7def234df1571bc74f0c48798793dcc4031dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20L=C3=BChrs?= Date: Mon, 21 Oct 2024 16:25:40 -0300 Subject: [PATCH] Forgot to implement M1 commands in NavigateEngine --- .../navigate/server/NavigateEngine.scala | 42 +++++++++++++++---- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/modules/server/src/main/scala/navigate/server/NavigateEngine.scala b/modules/server/src/main/scala/navigate/server/NavigateEngine.scala index 69c25871..36de609c 100644 --- a/modules/server/src/main/scala/navigate/server/NavigateEngine.scala +++ b/modules/server/src/main/scala/navigate/server/NavigateEngine.scala @@ -418,19 +418,47 @@ object NavigateEngine { .map(_._2) .flattenOption - override def m1Park: F[Unit] = ??? + override def m1Park: F[Unit] = simpleCommand( + engine, + M1Park, + systems.tcsCommon.m1Park + ) - override def m1Unpark: F[Unit] = ??? + override def m1Unpark: F[Unit] = simpleCommand( + engine, + M1Unpark, + systems.tcsCommon.m1Unpark + ) - override def m1OpenLoopOff: F[Unit] = ??? + override def m1OpenLoopOff: F[Unit] = simpleCommand( + engine, + M1OpenLoopOff, + systems.tcsCommon.m1UpdateOff + ) - override def m1OpenLoopOn: F[Unit] = ??? + override def m1OpenLoopOn: F[Unit] = simpleCommand( + engine, + M1OpenLoopOn, + systems.tcsCommon.m1UpdateOn + ) - override def m1ZeroFigure: F[Unit] = ??? + override def m1ZeroFigure: F[Unit] = simpleCommand( + engine, + M1ZeroFigure, + systems.tcsCommon.m1ZeroFigure + ) - override def m1LoadAoFigure: F[Unit] = ??? + override def m1LoadAoFigure: F[Unit] = simpleCommand( + engine, + M1LoadAoFigure, + systems.tcsCommon.m1LoadAoFigure + ) - override def m1LoadNonAoFigure: F[Unit] = ??? + override def m1LoadNonAoFigure: F[Unit] = simpleCommand( + engine, + M1LoadNonAoFigure, + systems.tcsCommon.m1LoadNonAoFigure + ) } def build[F[_]: Concurrent: Temporal: Logger](