onboardsdk
Loading...
Searching...
No Matches
src
observer
CompassCalibrationProgress.hpp
1
#pragma once
2
#include <cstdint>
3
4
namespace
blunux::observer {
5
6
// Used for current upfacing axis,
7
// -1 means that there's no active axis (it will sample anyway)
8
// Also used to tell status to the app,
9
// -2: not calibrating
10
enum class
ActiveAxis {
11
NOT_CALIBRATING = -2,
12
NONE = -1,
13
X_POSITIVE = 0,
14
X_NEGATIVE,
15
Y_POSITIVE,
16
Y_NEGATIVE,
17
Z_POSITIVE,
18
Z_NEGATIVE,
19
THRUSTER
20
};
21
22
struct
CompassCalibrationProgress
{
23
ActiveAxis active_status;
24
uint8_t progress_x_up;
25
uint8_t progress_x_down;
26
uint8_t progress_y_up;
27
uint8_t progress_y_down;
28
uint8_t progress_z_up;
29
uint8_t progress_z_down;
30
uint8_t progress_thruster;
31
};
32
33
}
// namespace blunux::observer
blunux::observer::CompassCalibrationProgress
Definition
CompassCalibrationProgress.hpp:22
Generated by
1.9.8