commonMain.com.divpundir.mavlink.definitions.common.MavDataStream.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of definitions-jvm Show documentation
Show all versions of definitions-jvm Show documentation
A modern MAVLink library for the JVM written in Kotlin.
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.Deprecated
import kotlin.UInt
/**
* A data stream is not a fixed set of messages, but rather a
* recommendation to the autopilot software. Individual autopilots may or may not obey
* the recommended messages.
*/
@Deprecated(message = "")
@GeneratedMavEnum
public enum class MavDataStream(
override val `value`: UInt,
) : MavEnum {
/**
* Dependent on the autopilot
*/
@GeneratedMavEnumEntry
EXTRA3(12u),
/**
* Dependent on the autopilot
*/
@GeneratedMavEnumEntry
EXTRA2(11u),
/**
* Dependent on the autopilot
*/
@GeneratedMavEnumEntry
EXTRA1(10u),
/**
* Enable LOCAL_POSITION, GLOBAL_POSITION_INT messages.
*/
@GeneratedMavEnumEntry
POSITION(6u),
/**
* Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT.
*/
@GeneratedMavEnumEntry
RAW_CONTROLLER(4u),
/**
* Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW
*/
@GeneratedMavEnumEntry
RC_CHANNELS(3u),
/**
* Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS
*/
@GeneratedMavEnumEntry
EXTENDED_STATUS(2u),
/**
* Enable IMU_RAW, GPS_RAW, GPS_STATUS packets.
*/
@GeneratedMavEnumEntry
RAW_SENSORS(1u),
/**
* Enable all data streams
*/
@GeneratedMavEnumEntry
ALL(0u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): MavDataStream? = when (v) {
12u -> EXTRA3
11u -> EXTRA2
10u -> EXTRA1
6u -> POSITION
4u -> RAW_CONTROLLER
3u -> RC_CHANNELS
2u -> EXTENDED_STATUS
1u -> RAW_SENSORS
0u -> ALL
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy