diff --git a/python/fusion_engine_client/analysis/analyzer.py b/python/fusion_engine_client/analysis/analyzer.py index a1e49996..c8717f30 100755 --- a/python/fusion_engine_client/analysis/analyzer.py +++ b/python/fusion_engine_client/analysis/analyzer.py @@ -744,8 +744,8 @@ def plot_stationary_status(self): figure['layout']['xaxis'].update(title=self.p1_time_label) figure['layout']['yaxis1'].update(title="Stationary Status", - ticktext=['Nonstationary', 'Stationary'], - tickvals=[0, 1]) + ticktext=['Moving', 'Stationary'], + tickvals=[0, PoseMessage.FLAG_STATIONARY]) time = pose_data.p1_time - float(self.t0) diff --git a/python/fusion_engine_client/messages/solution.py b/python/fusion_engine_client/messages/solution.py index 0fba45f3..b3eb8ae5 100644 --- a/python/fusion_engine_client/messages/solution.py +++ b/python/fusion_engine_client/messages/solution.py @@ -160,7 +160,7 @@ def to_numpy(cls, messages): 'p1_time': np.array([float(m.p1_time) for m in messages]), 'gps_time': np.array([float(m.gps_time) for m in messages]), 'solution_type': np.array([int(m.solution_type) for m in messages], dtype=int), - 'flags': np.array([m.flags for m in messages]), + 'flags': np.array([m.flags for m in messages], dtype=int), 'undulation': np.array([m.undulation_m for m in messages]), 'lla_deg': np.array([m.lla_deg for m in messages]).T, 'ypr_deg': np.array([m.ypr_deg for m in messages]).T, diff --git a/src/point_one/fusion_engine/messages/solution.h b/src/point_one/fusion_engine/messages/solution.h index d20018e8..d3b45cc7 100644 --- a/src/point_one/fusion_engine/messages/solution.h +++ b/src/point_one/fusion_engine/messages/solution.h @@ -42,7 +42,7 @@ struct P1_ALIGNAS(4) PoseMessage : public MessagePayload { static constexpr uint8_t MESSAGE_VERSION = 1; static constexpr int16_t INVALID_UNDULATION = INT16_MIN; - /** Set this flag if the device is stationary. */ + /** Set if the device is stationary. */ static constexpr uint8_t FLAG_STATIONARY = 0x01; /** The time of the message, in P1 time (beginning at power-on). */