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

commonMain.com.divpundir.mavlink.definitions.common.GripperActions.kt Maven / Gradle / Ivy

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.MavEnum
import kotlin.UInt

/**
 * Gripper actions.
 */
@GeneratedMavEnum
public enum class GripperActions(
  override val `value`: UInt,
) : MavEnum {
  /**
   * Gripper release cargo.
   */
  @GeneratedMavEnumEntry
  GRIPPER_ACTION_RELEASE(0u),
  /**
   * Gripper grab onto cargo.
   */
  @GeneratedMavEnumEntry
  GRIPPER_ACTION_GRAB(1u),
  ;

  public companion object : MavEnum.MavCompanion {
    override fun getEntryFromValueOrNull(v: UInt): GripperActions? = when (v) {
      0u -> GRIPPER_ACTION_RELEASE
      1u -> GRIPPER_ACTION_GRAB
      else -> null
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy