forked from Pitt-RAS/micromouse-2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotion.h
24 lines (19 loc) · 957 Bytes
/
motion.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
#ifndef MICROMOUSE_MOTION_H_
#define MICROMOUSE_MOTION_H_
void motion_set_max_speed(float new_max_speed);
void motion_set_max_accel(float new_max_accel);
void motion_forward(float distance, float exit_speed);
void motion_rotate(float angle);
void motion_corner(float angle, float radius, float exit_speed);
void motion_hold(unsigned int time);
// functions to set max velocity variables
void motion_set_maxAccel_straight(float temp_max_accel_straight);
void motion_set_maxDecel_straight(float temp_max_decel_straight);
void motion_set_maxAccel_rotate(float temp_max_accel_rotate);
void motion_set_maxDecel_rotate(float temp_max_decel_rotate);
void motion_set_maxAccel_corner(float temp_max_accel_corner);
void motion_set_maxDecel_corner(float temp_max_decel_corner);
void motion_set_maxVel_straight(float temp_max_vel_straight);
void motion_set_maxVel_rotate(float temp_max_vel_rotate);
void motion_set_maxVel_corner(float temp_max_vel_corner);
#endif