Skip to content

Commit

Permalink
Forgot to implement M1 commands in NavigateEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
jluhrs committed Oct 21, 2024
1 parent 7154c3a commit 7c7def2
Showing 1 changed file with 35 additions and 7 deletions.
42 changes: 35 additions & 7 deletions modules/server/src/main/scala/navigate/server/NavigateEngine.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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](
Expand Down

0 comments on commit 7c7def2

Please sign in to comment.