Skip to content

Commit

Permalink
Update pnis
Browse files Browse the repository at this point in the history
  • Loading branch information
UConnAIAA committed Oct 26, 2024
1 parent d9e870e commit 94ebe47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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::SetTVCX(double angle_rad)
servoAngle = (servoAngle > 180) ? 180 : servoAngle;

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

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

double dPulseWidth = 1000 + (servoAngle * 1000 / 180.0);
gpioServo(18, round(dPulseWidth));
gpioServo(24, round(dPulseWidth));
}
4 changes: 2 additions & 2 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ int main()

gpioSetMode(6, PI_OUTPUT);

gpioSetMode(18, PI_OUTPUT);
gpioSetMode(16, PI_OUTPUT);
gpioSetMode(23, PI_OUTPUT);
gpioSetMode(24, PI_OUTPUT);


gpioWrite(6, 1);
Expand Down
2 changes: 1 addition & 1 deletion src/Mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ bool Mode::Update(Navigation& navigation, Controller& controller, Igniter& ignit
switch(this->eCurrentMode)
{
case Calibration:
Telemetry::GetInstance().RunTelemetry(navigation, controller, 0.05, 0.08);
// Telemetry::GetInstance().RunTelemetry(navigation, controller, 0.05, 0.08);
this->eCurrentMode = UpdateCalibration(navigation, controller, currentTime);
break;
case TestTVC:
Expand Down

0 comments on commit 94ebe47

Please sign in to comment.