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

main.com.divpundir.mavlink.definitions.common.MavCollisionSrc.kt Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show 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

/**
 * Source of information about this collision.
 */
@GeneratedMavEnum
public enum class MavCollisionSrc(
  public override val `value`: UInt,
) : MavEnum {
  /**
   * ID field references ADSB_VEHICLE packets
   */
  @GeneratedMavEnumEntry
  ADSB(0u),
  /**
   * ID field references MAVLink SRC ID
   */
  @GeneratedMavEnumEntry
  MAVLINK_GPS_GLOBAL_INT(1u),
  ;

  public companion object : MavEnum.Companion {
    public override fun getEntryFromValueOrNull(v: UInt): MavCollisionSrc? = when (v) {
      0u -> ADSB
      1u -> MAVLINK_GPS_GLOBAL_INT
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy