commonMain.com.divpundir.mavlink.definitions.common.MavDoRepositionFlags.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.common
import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavBitmask
import kotlin.UInt
import kotlin.collections.List
/**
* Bitmap of options for the MAV_CMD_DO_REPOSITION
*/
@GeneratedMavEnum(bitmask = true)
public enum class MavDoRepositionFlags(
override val `value`: UInt,
) : MavBitmask {
/**
* The aircraft should immediately transition into guided. This should not be set for follow me
* applications
*/
@GeneratedMavEnumEntry
CHANGE_MODE(1u),
;
public companion object : MavBitmask.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): MavDoRepositionFlags? = when (v) {
1u -> CHANGE_MODE
else -> null
}
override fun getFlagsFromValue(v: UInt): List = buildList {
if (v and 1u == 1u) add(CHANGE_MODE)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy