-
-
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
8 changed files
with
108 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
package nebulosa.api.autofocus | ||
|
||
import nebulosa.api.cameras.CameraCaptureEvent | ||
import nebulosa.api.messages.MessageEvent | ||
import nebulosa.curve.fitting.CurvePoint | ||
|
||
class AutoFocusEvent : MessageEvent { | ||
data class AutoFocusEvent( | ||
@JvmField val state: AutoFocusState = AutoFocusState.IDLE, | ||
@JvmField val focusPoint: CurvePoint = CurvePoint.ZERO, | ||
@JvmField val capture: CameraCaptureEvent? = null, | ||
) : MessageEvent { | ||
|
||
override val eventName = "AUTO_FOCUS.ELAPSED" | ||
} |
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
11 changes: 11 additions & 0 deletions
11
api/src/main/kotlin/nebulosa/api/autofocus/AutoFocusState.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,11 @@ | ||
package nebulosa.api.autofocus | ||
|
||
enum class AutoFocusState { | ||
IDLE, | ||
MOVING, | ||
EXPOSURING, | ||
COMPUTING, | ||
FOCUS_POINT_ADDED, | ||
FAILED, | ||
FINISHED, | ||
} |
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
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