commonMain.com.divpundir.mavlink.definitions.ardupilotmega.GoproFieldOfView.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 GoproFieldOfView(
override val `value`: UInt,
) : MavEnum {
/**
* 0x00: Wide.
*/
@GeneratedMavEnumEntry
WIDE(0u),
/**
* 0x01: Medium.
*/
@GeneratedMavEnumEntry
MEDIUM(1u),
/**
* 0x02: Narrow.
*/
@GeneratedMavEnumEntry
NARROW(2u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): GoproFieldOfView? = when (v) {
0u -> WIDE
1u -> MEDIUM
2u -> NARROW
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy