Skip to content
Snippets Groups Projects

Main

4 files
+ 107
203
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
2
@@ -86,7 +86,7 @@ void drive_forward_controlled_velocity(){
weighted_distance = (US_distance_f+tof_distance_front)/2;
if ((millis()-start)>500){
if (int(weighted_distance) > MIN_DIST_F){
velocity = map(weighted_distance, 10, 100, 80, 255);
velocity = map(weighted_distance, 10, 100, 80, 255);
Motor.drive_forward(velocity);
}
else{
@@ -113,4 +113,4 @@ void end_of_programm(){
}
}
#endif
\ No newline at end of file
#endif
Loading