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

commonMain.com.divpundir.mavlink.definitions.ardupilotmega.MavCmdDoAuxFunctionSwitchLevel.kt Maven / Gradle / Ivy

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 MavCmdDoAuxFunctionSwitchLevel(
  override val `value`: UInt,
) : MavEnum {
  /**
   * Switch Low.
   */
  @GeneratedMavEnumEntry
  LOW(0u),
  /**
   * Switch Middle.
   */
  @GeneratedMavEnumEntry
  MIDDLE(1u),
  /**
   * Switch High.
   */
  @GeneratedMavEnumEntry
  HIGH(2u),
  ;

  public companion object : MavEnum.MavCompanion {
    override fun getEntryFromValueOrNull(v: UInt): MavCmdDoAuxFunctionSwitchLevel? = when (v) {
      0u -> LOW
      1u -> MIDDLE
      2u -> HIGH
      else -> null
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy