-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobot.h
More file actions
34 lines (29 loc) · 651 Bytes
/
robot.h
File metadata and controls
34 lines (29 loc) · 651 Bytes
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
#ifndef ROBOT_H
#define ROBOT_H
#include <stdint.h>
#include "stm32f4_discovery.h"
#include "direction.h"
typedef struct _robot {
/*
the amount that we change the angle by
TODO: calibrate wheel rotation
*/
uint16_t delta_angle; // =
/*
Distance between the ir sensors
TODO: measure distance between ir sensors
*/
uint16_t ir_distance; // =
/*
Distance between the motors
TODO: measure distance between motors
*/
uint16_t wh_distance; // =
uint16_t motor_plf;
uint16_t motor_plr;
uint16_t motor_prf;
uint16_t motor_prr;
Direction facing;
} Robot;
void init_Robot(Robot * robot);
#endif