-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented rotator tracking configuration.
- Loading branch information
Showing
14 changed files
with
318 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
modules/server/src/main/scala/navigate/server/tcs/RotatorTrackConfig.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package navigate.server.tcs | ||
|
||
import cats.Eq | ||
import lucuma.core.math.Angle | ||
|
||
case class RotatorTrackConfig ( | ||
ipa: Angle, | ||
mode: RotatorTrackingMode | ||
) |
17 changes: 17 additions & 0 deletions
17
modules/server/src/main/scala/navigate/server/tcs/RotatorTrackingMode.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package navigate.server.tcs | ||
|
||
import lucuma.core.util.Enumerated | ||
|
||
sealed abstract class RotatorTrackingMode(val tag: String) extends Product with Serializable | ||
|
||
object RotatorTrackingMode { | ||
|
||
case object Tracking extends RotatorTrackingMode("Tracking") | ||
case object Fixed extends RotatorTrackingMode("Fixed") | ||
|
||
given Enumerated[RotatorTrackingMode] = Enumerated.from(Tracking, Fixed).withTag(_.tag) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.