Compare commits

..

No commits in common. "4dcfb1ea0751a8a51da23e4d60a340f23cae5d60" and "b21a8fbecfce060fe253ba8530ccf62092d7290d" have entirely different histories.

3 changed files with 4 additions and 10 deletions

View file

@ -49,8 +49,6 @@
#define SPEED_PIN PB2 // Pin 7/ADC1 #define SPEED_PIN PB2 // Pin 7/ADC1
#define BUTTON_PIN PB4 // Pin 3 - Button input #define BUTTON_PIN PB4 // Pin 3 - Button input
#define MOTOR_PULSE 1 //uS motor base pulse
/*The timing of "ticks" is dependent on the AVR timer's counter register /*The timing of "ticks" is dependent on the AVR timer's counter register
* so for an 8bit register the maximum value is 256. Given we stick with * so for an 8bit register the maximum value is 256. Given we stick with

View file

@ -3,8 +3,8 @@ add_executable(${PROJECT_NAME}
) )
target_link_libraries(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME}
#RegEdit RegEdit
#timer timer
) )
# Ensure the build rules are defined # Ensure the build rules are defined

View file

@ -152,13 +152,9 @@ void MotorMoveTo(uint8_t target) {
} }
// The delay ratio controlls the PWM waveforms. // The delay ratio controlls the PWM waveforms.
for(uint8_t i = 0; i < on_delay; i++){ _delay_ms((double)on_delay);
_delay_us(MOTOR_PULSE);
}
MotorCoast(); MotorCoast();
for(uint8_t i = 0; i < off_delay; i++){ _delay_ms((double)off_delay);
_delay_us(MOTOR_PULSE);
}
} }
return; return;