-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
559 changed files
with
22,551 additions
and
93,230 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
*.bsp binary | ||
*.bpc binary | ||
*.jar binary | ||
*.fit binary | ||
*.fits binary | ||
*.ttf binary | ||
*.xcf binary | ||
|
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
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
5 changes: 4 additions & 1 deletion
5
api/src/main/kotlin/nebulosa/api/alignment/polar/darv/DARVPolarAlignmentEvent.kt
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
package nebulosa.api.alignment.polar.darv | ||
|
||
import nebulosa.api.sequencer.SequenceJobEvent | ||
import nebulosa.indi.device.camera.Camera | ||
import nebulosa.indi.device.guide.GuideOutput | ||
|
||
sealed interface DARVPolarAlignmentEvent { | ||
sealed interface DARVPolarAlignmentEvent : SequenceJobEvent { | ||
|
||
val camera: Camera | ||
|
||
val guideOutput: GuideOutput | ||
|
||
val state: DARVPolarAlignmentState | ||
} |
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
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
19 changes: 12 additions & 7 deletions
19
...rc/main/kotlin/nebulosa/api/alignment/polar/darv/DARVPolarAlignmentInitialPauseElapsed.kt
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 |
---|---|---|
@@ -1,23 +1,28 @@ | ||
package nebulosa.api.alignment.polar.darv | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
import nebulosa.api.sequencer.DelayEvent | ||
import nebulosa.api.sequencer.tasklets.delay.DelayEvent | ||
import nebulosa.api.services.MessageEvent | ||
import nebulosa.indi.device.camera.Camera | ||
import nebulosa.indi.device.guide.GuideOutput | ||
import org.springframework.batch.core.JobExecution | ||
import java.time.Duration | ||
|
||
data class DARVPolarAlignmentInitialPauseElapsed( | ||
override val camera: Camera, | ||
override val guideOutput: GuideOutput, | ||
val pauseTime: Long, | ||
val remainingTime: Long, | ||
val progress: Double, | ||
val pauseTime: Duration, | ||
val remainingTime: Duration, | ||
override val progress: Double, | ||
@JsonIgnore override val jobExecution: JobExecution, | ||
) : MessageEvent, DARVPolarAlignmentEvent { | ||
|
||
constructor(camera: Camera, guideOutput: GuideOutput, delay: DelayEvent) : this( | ||
camera, guideOutput, delay.waitTime.inWholeMicroseconds, | ||
delay.remainingTime.inWholeMicroseconds, delay.progress | ||
camera, guideOutput, delay.tasklet.duration, | ||
delay.remainingTime, delay.progress, delay.jobExecution | ||
) | ||
|
||
@JsonIgnore override val eventName = "DARV_POLAR_ALIGNMENT_INITIAL_PAUSE_ELAPSED" | ||
override val state = DARVPolarAlignmentState.INITIAL_PAUSE | ||
|
||
override val eventName = "DARV_POLAR_ALIGNMENT_UPDATED" | ||
} |
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
8 changes: 8 additions & 0 deletions
8
api/src/main/kotlin/nebulosa/api/alignment/polar/darv/DARVPolarAlignmentState.kt
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,8 @@ | ||
package nebulosa.api.alignment.polar.darv | ||
|
||
enum class DARVPolarAlignmentState { | ||
IDLE, | ||
INITIAL_PAUSE, | ||
FORWARD, | ||
BACKWARD, | ||
} |
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.