commonMain.com.divpundir.mavlink.definitions.ardupilotmega.GoproModel.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.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 GoproModel(
override val `value`: UInt,
) : MavEnum {
/**
* Unknown gopro model.
*/
@GeneratedMavEnumEntry
UNKNOWN(0u),
/**
* Hero 3+ Silver (HeroBus not supported by GoPro).
*/
@GeneratedMavEnumEntry
HERO_3_PLUS_SILVER(1u),
/**
* Hero 3+ Black.
*/
@GeneratedMavEnumEntry
HERO_3_PLUS_BLACK(2u),
/**
* Hero 4 Silver.
*/
@GeneratedMavEnumEntry
HERO_4_SILVER(3u),
/**
* Hero 4 Black.
*/
@GeneratedMavEnumEntry
HERO_4_BLACK(4u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): GoproModel? = when (v) {
0u -> UNKNOWN
1u -> HERO_3_PLUS_SILVER
2u -> HERO_3_PLUS_BLACK
3u -> HERO_4_SILVER
4u -> HERO_4_BLACK
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy