All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.divpundir.mavlink.definitions.ualberta.UalbertaNavMode.kt Maven / Gradle / Ivy

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
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy