final project
1
sweep.h
Go to the documentation of this file.
1
10
#define period 20
11
//we found these by trial and error basically
12
//( 20ms - 1.5 )* 16,000 = 296000 should be the neutral position at 90 degrees, but we had to calibrate
13
14
#define TIMER4B_PRESCALER 50
15
16
17
volatile
float
sersvo_angle;
18
19
20
void
sweep
();
21
void
sweep_init
();
sweep_init
void sweep_init()
initializes the sweep modules
Definition:
sweep.c:44
sweep
void sweep()
sweeps from 0 to 180 degrees, reads and sends data
Definition:
sweep.c:60
Final Project
programFiles
sweep.h
Generated by
1.8.13