commonMain.com.divpundir.mavlink.definitions.ualberta.UalbertaNavMode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of definitions Show documentation
Show all versions of definitions Show documentation
A modern MAVLink library for the JVM written in Kotlin.
The newest version!
package com.divpundir.mavlink.definitions.ualberta
import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt
/**
* Navigation filter mode
*/
@GeneratedMavEnum
public enum class UalbertaNavMode(
override val `value`: UInt,
) : MavEnum {
@GeneratedMavEnumEntry
NAV_AHRS_INIT(1u),
/**
* AHRS mode
*/
@GeneratedMavEnumEntry
NAV_AHRS(2u),
/**
* INS/GPS initialization mode
*/
@GeneratedMavEnumEntry
NAV_INS_GPS_INIT(3u),
/**
* INS/GPS mode
*/
@GeneratedMavEnumEntry
NAV_INS_GPS(4u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): UalbertaNavMode? = when (v) {
1u -> NAV_AHRS_INIT
2u -> NAV_AHRS
3u -> NAV_INS_GPS_INIT
4u -> NAV_INS_GPS
else -> null
}
}
}