Commit fa17aef0 authored by mattdr's avatar mattdr
Browse files

turned on light and changed hard offset

parent 21cf5d8b
......@@ -20,7 +20,7 @@ int Zoffset = 0;
// This is the difference in encoder tics from the Z index to
// the electrical encoder zero (which is found by powering the
// AB block and waiting for the motor to settle)
int hard_coded_offset = -1041;
int hard_coded_offset = -220;
// how long in microsec (us) to delay between phases while calibrating
// the wheel
......
......@@ -18,7 +18,7 @@
#define HB2EN 1 //halfbridge 2 enable
#define HB3EN 2 //halfbridge 3 enable
const int led = 12;
const int led = 13;
// This scale factor scales the potentiometer
int const SCALE_FACTOR = 50;
......@@ -79,6 +79,7 @@ void motor_setup(void) {
//setup led
pinMode(led, OUTPUT);
digitalWrite(led, HIGH);
}
void turn_all_off() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment