-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmotor.h
38 lines (25 loc) · 859 Bytes
/
motor.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
37
38
#ifndef MOTOR_H
#define MOTOR_H
//--------------------------------------------------------
// Evil Minion 5 Axis robot firmware
// 2015 September 3
// see http://evilminion.info/ for more information.
//--------------------------------------------------------
#include "config.h"
extern const char *motor_letters;
extern PIDobject pid[NUM_AXIES];
extern int servo_angle;
void motor_setup();
void servo_move(int angle);
void test_stepper(int dir,int ste,int ena,int wait);
void test_dual_steppers(int dir1,int ste1,int ena1,
int dir2,int ste2,int ena2,int wait);
void test_actuator(int ina,int pwm,int inb,int wait);
void test_motors();
void motor_enable();
void motor_disable();
void motor_move(int motor_index,float pid_adjust);
void motor_all_stop();
void tick_motors();
#endif // MOTOR_H