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

commonMain.com.divpundir.mavlink.definitions.common.MavArmAuthDeniedReason.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

@GeneratedMavEnum
public enum class MavArmAuthDeniedReason(
  override val `value`: UInt,
) : MavEnum {
  /**
   * Not a specific reason
   */
  @GeneratedMavEnumEntry
  GENERIC(0u),
  /**
   * Authorizer will send the error as string to GCS
   */
  @GeneratedMavEnumEntry
  NONE(1u),
  /**
   * At least one waypoint have a invalid value
   */
  @GeneratedMavEnumEntry
  INVALID_WAYPOINT(2u),
  /**
   * Timeout in the authorizer process(in case it depends on network)
   */
  @GeneratedMavEnumEntry
  TIMEOUT(3u),
  /**
   * Airspace of the mission in use by another vehicle, second result parameter can have the
   * waypoint id that caused it to be denied.
   */
  @GeneratedMavEnumEntry
  AIRSPACE_IN_USE(4u),
  /**
   * Weather is not good to fly
   */
  @GeneratedMavEnumEntry
  BAD_WEATHER(5u),
  ;

  public companion object : MavEnum.MavCompanion {
    override fun getEntryFromValueOrNull(v: UInt): MavArmAuthDeniedReason? = when (v) {
      0u -> GENERIC
      1u -> NONE
      2u -> INVALID_WAYPOINT
      3u -> TIMEOUT
      4u -> AIRSPACE_IN_USE
      5u -> BAD_WEATHER
      else -> null
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy