Revision 1215
Implemented encoders test
test_motors.c | ||
---|---|---|
4 | 4 |
#include "comm_robot.h" |
5 | 5 |
#include "hardware_encoders.h" |
6 | 6 |
|
7 |
|
|
8 |
// ****************** |
|
9 |
// ** Data sending ** |
|
10 |
// ****************** |
|
11 |
|
|
7 | 12 |
static void send_motor_data (uint8_t num, uint8_t direction, char *acceleration_string, |
8 | 13 |
uint8_t num_steps, uint8_t *data_pwm, int16_t *data_velocity) |
9 | 14 |
{ |
... | ... | |
29 | 34 |
} |
30 | 35 |
} |
31 | 36 |
|
37 |
|
|
38 |
// ************************ |
|
39 |
// ** Internal functions ** |
|
40 |
// ************************ |
|
41 |
|
|
32 | 42 |
static void test_motors_direction_acceleration (uint8_t direction1, uint8_t direction2, uint8_t pwm_start, uint8_t num_steps, int8_t pwm_step, char *acceleration_string) |
33 | 43 |
{ |
34 | 44 |
// Allocate space for the data on the stack |
... | ... | |
75 | 85 |
} |
76 | 86 |
|
77 | 87 |
|
88 |
// ********************** |
|
89 |
// ** Public functions ** |
|
90 |
// ********************** |
|
91 |
|
|
78 | 92 |
void test_motor_all (void) |
79 | 93 |
{ |
80 | 94 |
usb_puts("# Testing motors" NL); |
Also available in: Unified diff