Skip to content

Commit

Permalink
Add device types. (#306)
Browse files Browse the repository at this point in the history
# Changes
 - Add additional DeviceType enum values
  • Loading branch information
axlan authored Apr 17, 2024
2 parents 6b3613f + ac4fa57 commit e5e6bda
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions python/fusion_engine_client/messages/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ class DeviceType(IntEnum):
LG69T_AM = 2
LG69T_AP = 3
LG69T_AH = 4
NEXAR_BEAM2K = 5,
SSR_LG69T = 6,
SSR_DESKTOP = 7,


class DeviceIDMessage(MessagePayload):
Expand Down
20 changes: 16 additions & 4 deletions src/point_one/fusion_engine/messages/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,20 @@ struct P1_ALIGNAS(4) VersionInfoMessage : public MessagePayload {
enum class DeviceType : uint8_t {
/** Unable to map device to a defined entry. */
UNKNOWN = 0,
/** Device is a Point One Atlas. */
/** Point One Atlas. */
ATLAS = 1,
/** Device is a Quectel LG69T-AM system. */
/** Quectel LG69T-AM system. */
LG69T_AM = 2,
/** Device is a Quectel LG69T-AP system. */
/** Quectel LG69T-AP system. */
LG69T_AP = 3,
/** Device is a Quectel LG69T-AH system. */
/** Quectel LG69T-AH system. */
LG69T_AH = 4,
/** Nexar Beam2K system. */
NEXAR_BEAM2K = 5,
/** Point One SSR client running on an LG69T platform. */
SSR_LG69T = 6,
/** Point One SSR client running on a desktop platform. */
SSR_DESKTOP = 7,
};

/**
Expand All @@ -405,6 +411,12 @@ P1_CONSTEXPR_FUNC const char* to_string(DeviceType val) {
return "LG69T_AP";
case DeviceType::LG69T_AH:
return "LG69T_AH";
case DeviceType::NEXAR_BEAM2K:
return "NEXAR_BEAM2K";
case DeviceType::SSR_LG69T:
return "SSR_LG69T";
case DeviceType::SSR_DESKTOP:
return "SSR_DESKTOP";
}
return "Unrecognized";
}
Expand Down

0 comments on commit e5e6bda

Please sign in to comment.