Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device types. #306

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading