commonMain.com.divpundir.mavlink.definitions.avssuas.MavAvssCommandFailureReason.kt Maven / Gradle / Ivy
package com.divpundir.mavlink.definitions.avssuas
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 MavAvssCommandFailureReason(
override val `value`: UInt,
) : MavEnum {
/**
* AVSS defined command failure reason. PRS not steady.
*/
@GeneratedMavEnumEntry
PRS_NOT_STEADY(1u),
/**
* AVSS defined command failure reason. PRS DTM not armed.
*/
@GeneratedMavEnumEntry
PRS_DTM_NOT_ARMED(2u),
/**
* AVSS defined command failure reason. PRS OTM not armed.
*/
@GeneratedMavEnumEntry
PRS_OTM_NOT_ARMED(3u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): MavAvssCommandFailureReason? = when (v) {
1u -> PRS_NOT_STEADY
2u -> PRS_DTM_NOT_ARMED
3u -> PRS_OTM_NOT_ARMED
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy