Commit 333c8293 authored by Pontus Giselsson's avatar Pontus Giselsson
Browse files

Minor detail fixed

parent 214ccff4
......@@ -326,12 +326,11 @@ int main()
high = inp(ADCH);
pos = 0; // reset position
angleOffset = ((int16_t) ((high<<8) | low) - 512);
//angleOffset = -150;
sei();
oldPos = 0;
velEst = 0; // reset velocity estimate
I = 0; // reset integral part of controller
u = 0; // reset ctrl signal
sei();
}
}
}
Markdown is supported
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