commonMain.com.divpundir.mavlink.definitions.ardupilotmega.CameraFeedbackFlags.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of definitions-jvm Show documentation
Show all versions of definitions-jvm Show documentation
A modern MAVLink library for the JVM written in Kotlin.
The newest version!
package com.divpundir.mavlink.definitions.ardupilotmega
import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt
@GeneratedMavEnum
public enum class CameraFeedbackFlags(
override val `value`: UInt,
) : MavEnum {
/**
* Shooting photos, not video.
*/
@GeneratedMavEnumEntry
CAMERA_FEEDBACK_PHOTO(0u),
/**
* Shooting video, not stills.
*/
@GeneratedMavEnumEntry
CAMERA_FEEDBACK_VIDEO(1u),
/**
* Unable to achieve requested exposure (e.g. shutter speed too low).
*/
@GeneratedMavEnumEntry
CAMERA_FEEDBACK_BADEXPOSURE(2u),
/**
* Closed loop feedback from camera, we know for sure it has successfully taken a picture.
*/
@GeneratedMavEnumEntry
CAMERA_FEEDBACK_CLOSEDLOOP(3u),
/**
* Open loop camera, an image trigger has been requested but we can't know for sure it has
* successfully taken a picture.
*/
@GeneratedMavEnumEntry
CAMERA_FEEDBACK_OPENLOOP(4u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): CameraFeedbackFlags? = when (v) {
0u -> CAMERA_FEEDBACK_PHOTO
1u -> CAMERA_FEEDBACK_VIDEO
2u -> CAMERA_FEEDBACK_BADEXPOSURE
3u -> CAMERA_FEEDBACK_CLOSEDLOOP
4u -> CAMERA_FEEDBACK_OPENLOOP
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy