mark speeds given to go as constant
authorozzloy <ozzloy+launchpad_net@gmail.com>
Tue, 14 May 2019 07:38:39 +0000 (00:38 -0700)
committerozzloy <ozzloy+launchpad_net@gmail.com>
Tue, 14 May 2019 07:38:39 +0000 (00:38 -0700)
Change-Id: I51216a387cbb94406a7005d3faa9ae9271ca6b7d

build-stages/i_chooser/i_chooser.ino

index db6720f..c5011c4 100644 (file)
@@ -41,7 +41,7 @@ void set_motor(int speed_pin,
     speed = 255;}
   analogWrite(speed_pin, speed);}
 
     speed = 255;}
   analogWrite(speed_pin, speed);}
 
-void go(int left_motor_speed, int right_motor_speed){
+void go(const int left_motor_speed, const int right_motor_speed){
   set_motor(left_motor_speed_pin,
             left_motor_forward_pin,
             left_motor_backward_pin,
   set_motor(left_motor_speed_pin,
             left_motor_forward_pin,
             left_motor_backward_pin,