Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
k0xxx committed Apr 20, 2022
1 parent 93f0884 commit 0d5f793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SimpleServo servoControl;
const int servoPin = 4; // Servo at Arduino digital
const int servoDefaultAngle = 0; // Servo default angle
const int servoTargetAngle = 120; // Servo target angle
const int servoTargetAngle = 90; // Servo target angle
int servoAngle = 0;
int servoTmpAngle = 0;
const int servoDelay = 500; // Servo delay time in ms
Expand All @@ -32,7 +32,7 @@ void setup() {
void loop() {
prValue = analogRead(prPin); // Read pResistor

if (prValue < prLaunch){
if (prValue > prLaunch){
servoAngle = servoTargetAngle;
} else {
servoAngle = servoDefaultAngle;
Expand All @@ -44,5 +44,5 @@ void loop() {
}
servoTmpAngle = servoAngle;

delay(1); // Idle
// delay(1); // Idle
}

0 comments on commit 0d5f793

Please sign in to comment.