Revision fdb4fe94
| include/amiro/Constants.h | ||
|---|---|---|
| 35 | 35 |
|
| 36 | 36 |
namespace amiro {
|
| 37 | 37 |
|
| 38 |
struct map_state {
|
|
| 39 |
// 0 - left, 1- right |
|
| 40 |
uint8_t strategy; |
|
| 41 |
// Node ID of last detected fixpoint |
|
| 42 |
uint8_t current; |
|
| 43 |
// Next node ID |
|
| 44 |
uint8_t next; |
|
| 45 |
// Traveled Distance between current and next in % |
|
| 46 |
uint32_t dist; |
|
| 47 |
// True if the current loaded map is valid |
|
| 48 |
bool valid; |
|
| 49 |
// Length of the currently traveled edge |
|
| 50 |
uint32_t eLength; |
|
| 51 |
}; |
|
| 52 |
|
|
| 38 | 53 |
enum msg_content : uint8_t {
|
| 39 | 54 |
MSG_STOP = 0, |
| 40 | 55 |
MSG_START = 1, |
| ... | ... | |
| 47 | 62 |
MSG_RESET_ODOMETRY = 8, |
| 48 | 63 |
MSG_CALIBRATE_BLACK = 9, |
| 49 | 64 |
MSG_CALIBRATE_WHITE = 10, |
| 50 |
MSG_TEST_MAP_STATE = 11 |
|
| 65 |
MSG_TEST_MAP_STATE = 11, |
|
| 66 |
MSG_SET_DIST_THRESH = 12, |
|
| 67 |
MSG_GET_MAP_INFO = 13 |
|
| 51 | 68 |
}; |
| 52 | 69 |
|
| 53 | 70 |
enum ut_states : int8_t {
|
Also available in: Unified diff