Skip to content

Commit

Permalink
Readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Jul 24, 2024
1 parent 9a661fe commit aa6b364
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Servo/Driver/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ public override Task Initialize()

public override async Task Run()
{
await servo.RotateTo(new Angle(servo.Config.MinimumAngle.Degrees, AU.Degrees));
servo.RotateTo(servo.MaximumAngle);

while (true)
{
for (int i = 0; i <= servo.Config.MaximumAngle.Degrees; i++)
for (int i = 0; i <= servo.MaximumAngle.Degrees; i++)
{
await servo.RotateTo(new Angle(i, AU.Degrees));
servo.RotateTo(new Angle(i, AU.Degrees));
Resolver.Log.Info($"Rotating to {i}");
await Task.Delay(40);
}

await Task.Delay(2000);

for (int i = 180; i >= servo.Config.MinimumAngle.Degrees; i--)
for (int i = 180; i >= servo.MinimumAngle.Degrees; i--)
{
await servo.RotateTo(new Angle(i, AU.Degrees));
servo.RotateTo(new Angle(i, AU.Degrees));
Resolver.Log.Info($"Rotating to {i}");
await Task.Delay(40);
}
Expand Down

0 comments on commit aa6b364

Please sign in to comment.