-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnavigation.h
32 lines (26 loc) · 1.25 KB
/
navigation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* navigation.h
*
* Created: 05.02.2016 21:01:17
* Author: Hubert
*/
#ifndef NAVIGATION_H_
#define NAVIGATION_H_
// taken from navit - which will talk with this device...
enum nav_status {
status_invalid = 6, /*!< Status is unknown. The {@code nav_status} attribute will never return this
// -2 & 0x07 = 6 value but code that listens to changes to this attribute may use this value
as a placeholder until the first actual status has been obtained. */
status_no_route = 7, /*!< No route was found */
// -1 & 0x07 = 7
status_no_destination = 0, /*!< No destination set, not routing */
status_position_wait = 1, /*!< Destination is set but current position is unknown */
status_calculating = 2, /*!< A new route is being calculated and turn instructions are being generated */
status_recalculating = 3, /*!< The existing route is being recalculated, along with its turn instructions.
Note that as the vehicle follows a route, status will flip between
{@code status_routing} and {@code status_recalculating} with every position
update. */
status_routing = 4, /*!< A route with turn instructions has been calculated and the user is being
guided along it */
};
#endif /* NAVIGATION_H_ */