Skip to content

Commit

Permalink
pins
Browse files Browse the repository at this point in the history
  • Loading branch information
gabekole committed Oct 5, 2024
1 parent fc18ffa commit ba40a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/TVC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void TVC::SetXServo(double angle_rad)
servoAngle = (servoAngle > 180) ? 180 : servoAngle;

double dPulseWidth = 1000 + (servoAngle * 1000 / 180.0);
gpioServo(23, round(dPulseWidth));
gpioServo(16, round(dPulseWidth));
}

void TVC::SetYServo(double angle_rad)
Expand All @@ -32,5 +32,5 @@ void TVC::SetYServo(double angle_rad)
servoAngle = (servoAngle > 180) ? 180 : servoAngle;

double dPulseWidth = 1000 + (servoAngle * 1000 / 180.0);
gpioServo(24, round(dPulseWidth));
gpioServo(18, round(dPulseWidth));
}

0 comments on commit ba40a8d

Please sign in to comment.