-
Notifications
You must be signed in to change notification settings - Fork 0
/
lococo.h
36 lines (20 loc) · 898 Bytes
/
lococo.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
33
34
35
36
#ifndef __LOCOCOCO_H__
#define __LOCOCOCO_H__
#include <stdbool.h>
#define LOCO3_BUF_SIZE 60
// meta data of a lococo message
struct lococo_tag {
uint32_t rx_tick; // tick at which message was received
uint32_t delta_tick; // ticks since last message was received
int rx_pos; // local position estimation at which this messages was received
int delta_pos; // difference of local position estimation between this and the
// previous messages
};
extern struct lococo_tag loco3_msg_tag;
extern uint8_t loco3_msg[];
extern size_t loco3_msg_len;
/**********************************************************************************************
* P R O T O T Y P E S */
void loco3_init(void);
int loco3_get_bat_stop();
#endif // __LOCOCOCO_H__