small fix
This commit is contained in:
		@@ -150,8 +150,7 @@ void setSpeed(){
 | 
				
			|||||||
    //speed = 8*safe_angle;
 | 
					    //speed = 8*safe_angle;
 | 
				
			||||||
    float position_m = countA/174.76;
 | 
					    float position_m = countA/174.76;
 | 
				
			||||||
    float angle_r = angle_pitch_output * 0.318;
 | 
					    float angle_r = angle_pitch_output * 0.318;
 | 
				
			||||||
    speed = inputToControlSystem(position_m, angle_r);
 | 
					    speed = 22 * inputToControlSystem(position_m, angle_r);
 | 
				
			||||||
    speed *= 22;
 | 
					 | 
				
			||||||
    if(speed<0){
 | 
					    if(speed<0){
 | 
				
			||||||
      digitalWrite(MotorPinB, CW);
 | 
					      digitalWrite(MotorPinB, CW);
 | 
				
			||||||
      digitalWrite(MotorPinA, CCW);
 | 
					      digitalWrite(MotorPinA, CCW);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user