Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
freewheel.h
Go to the documentation of this file.
1 /*
2  * freewheel.h
3  *
4  * Created : 1/4/2018
5  * Author : n-is
6  * email : 073bex422.nischal@pcampus.edu.np
7  */
8 
9 #ifndef _FREEWHEEL_H_
10 #define _FREEWHEEL_H_
11 
12 #include "gpio.h"
13 
14 struct Enc
15 {
16  GPIO_TypeDef *chB_port;
17  uint16_t chB_pin;
18  int32_t count;
19  float radius;
20  float ppr;
21  char id;
22 };
23 
24 void Enc_HandleCount(struct Enc *enc);
25 float Enc_get_DeltaDist(struct Enc *enc);
26 
27 #endif // !_FREEWHEEL_H_
GPIO_TypeDef * chB_port
Definition: freewheel.h:16
void Enc_HandleCount(struct Enc *enc)
Definition: freewheel.cpp:14
int32_t count
Definition: freewheel.h:18
uint16_t chB_pin
Definition: freewheel.h:17
float radius
Definition: freewheel.h:19
Definition: freewheel.h:14
float ppr
Definition: freewheel.h:20
float Enc_get_DeltaDist(struct Enc *enc)
Definition: freewheel.cpp:26
char id
Definition: freewheel.h:21