File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
fusion_engine_client/messages
src/point_one/fusion_engine/messages Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class PoseMessage(MessagePayload):
14
14
@brief Platform pose solution (position, velocity, attitude).
15
15
"""
16
16
MESSAGE_TYPE = MessageType .POSE
17
- MESSAGE_VERSION = 1
17
+ MESSAGE_VERSION = 2
18
18
19
19
INVALID_UNDULATION = - 32768
20
20
@@ -28,6 +28,7 @@ def __init__(self):
28
28
29
29
self .solution_type = SolutionType .Invalid
30
30
31
+ # Added in version 1.2
31
32
self .flags = 0x0
32
33
33
34
# Added in version 1.1.
Original file line number Diff line number Diff line change 9
9
logging .getLogger ('point_one' ).setLevel (logging .DEBUG )
10
10
11
11
12
- P1_POSE_MESSAGE1 = b".1\x00 \x00 \xc0 @ \xdb \x1a \x02 \x01 \x10 '\x00 \x00 \x00 \x00 \x8c \x00 \x00 \x00 \x00 \x00 \x00 \x00 \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \x00 \x00 \x00 \x80 \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf0 ?\x00 \x00 \x00 \x00 \x00 \x00 \x00 @\x00 \x00 \x00 \x00 \x00 \x00 \x08 @\x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f "
13
- P1_POSE_MESSAGE2 = b".1\x00 \x00 q \x95 \xfd \x8a \x02 \x01 \x10 '\x01 \x00 \x00 \x00 \x8c \x00 \x00 \x00 \x00 \x00 \x00 \x00 \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \x00 \x00 \x00 \x80 \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf0 ?\x00 \x00 \x00 \x00 \x00 \x00 \x00 @\x00 \x00 \x00 \x00 \x00 \x00 \x08 @\x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f "
12
+ P1_POSE_MESSAGE1 = b".1\x00 \x00 \xb1 & \xc8 \xfe \x02 \x02 \x10 '\x00 \x00 \x00 \x00 \x8c \x00 \x00 \x00 \x00 \x00 \x00 \x00 \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \x00 \x00 \x00 \x80 \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf0 ?\x00 \x00 \x00 \x00 \x00 \x00 \x00 @\x00 \x00 \x00 \x00 \x00 \x00 \x08 @\x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f "
13
+ P1_POSE_MESSAGE2 = b".1\x00 \x00 \x00 \xf3 \xee n \x02 \x02 \x10 '\x01 \x00 \x00 \x00 \x8c \x00 \x00 \x00 \x00 \x00 \x00 \x00 \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \xff \x00 \x00 \x00 \x80 \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf0 ?\x00 \x00 \x00 \x00 \x00 \x00 \x00 @\x00 \x00 \x00 \x00 \x00 \x00 \x08 @\x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f "
14
14
P1_POSE_AUX_MESSAGE3 = b".1\x00 \x00 \xac \xa4 \x08 \x94 \x02 \x00 \x13 '\x02 \x00 \x00 \x00 \xa0 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \xff \xff \xff \xff \xff \xff \xff \xff \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \x00 \x00 \x00 \x00 \xf8 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f \x00 \x00 \xc0 \x7f "
15
15
16
16
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ namespace messages {
28
28
29
29
/* *
30
30
* @brief Platform pose solution: position, velocity, attitude (@ref
31
- * MessageType::POSE, version 1.1 ).
31
+ * MessageType::POSE, version 1.2 ).
32
32
* @ingroup solution_messages
33
33
*
34
34
* @note
@@ -39,7 +39,7 @@ namespace messages {
39
39
*/
40
40
struct P1_ALIGNAS (4 ) PoseMessage : public MessagePayload {
41
41
static constexpr MessageType MESSAGE_TYPE = MessageType::POSE;
42
- static constexpr uint8_t MESSAGE_VERSION = 1 ;
42
+ static constexpr uint8_t MESSAGE_VERSION = 2 ;
43
43
static constexpr int16_t INVALID_UNDULATION = INT16_MIN;
44
44
45
45
/* * Set if the device is stationary. */
@@ -54,7 +54,11 @@ struct P1_ALIGNAS(4) PoseMessage : public MessagePayload {
54
54
/* * The type of this position solution. */
55
55
SolutionType solution_type;
56
56
57
- /* * A bitmask of flags associated with the pose data. */
57
+ /* *
58
+ * A bitmask of flags associated with the pose data.
59
+ *
60
+ * Added in @ref PoseMessage version 1.2.
61
+ */
58
62
uint8_t flags = 0x0 ;
59
63
60
64
/* *
You can’t perform that action at this time.
0 commit comments