Commit 6aedef06 authored by skwirskj's avatar skwirskj
Browse files

Made some comments to help read code better and also added some TODO statements.

parent b802eb44
......@@ -59,6 +59,7 @@ H TO TO SEND SPECIFIC PHASES DEBUG MOTOR\n");
do_hard_coded_offset();// run the set zero
case 'o':
//Use this when we need to use o-scope to find a bad ABC channel.
......@@ -97,7 +97,7 @@ void motor_setup(void) {
pinMode(time_led, OUTPUT);
digitalWrite(time_led, LOW);
//setup the pot_0_timer and the coast_timer to run thirty times a second
//setup the pot_0_timer and the coast_timer to run thirty times a second to find value from pot
pot_0_timer.begin(pot_0_speed_ISR, 33333);
......@@ -379,6 +379,7 @@ void motor_butt_control_precalculated(void)
digitalWrite(time_led, LOW);
//TODO: Remove the delay
delayMicroseconds(42); // This was calculated to keep the code
// from running faster than the period
// of the high side freq
......@@ -151,7 +151,7 @@ int debug_pot_0_scaled()
// prints it to the command line and then turns everything off
void do_hard_coded_offset(void)
int rtn = calibrate_encoder();
int my_position = 0;
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