Skip to content

Commit

Permalink
Changes for review
Browse files Browse the repository at this point in the history
  • Loading branch information
wbrannon committed Jul 25, 2024
1 parent 5da744d commit 7ece89e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/fusion_engine_client/analysis/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion python/fusion_engine_client/messages/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/point_one/fusion_engine/messages/solution.h
Original file line number Diff line number Diff line change
Expand Up @@ -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). */
Expand Down

0 comments on commit 7ece89e

Please sign in to comment.