Skip to content

Commit

Permalink
Update RoverComputer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmj authored Aug 13, 2021
1 parent 5cdd865 commit c383b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RemoteTech/FlightComputer/RoverComputer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private bool Coord(RemoteTech.FlightComputer.Commands.DriveCommand dc, FlightCtr
Delta = Vector3.Distance(mVessel.CoM, TargetPos);
DeltaT = Delta / RoverSpeed;

if (Delta >= 0.1f) //zero is inpractical due to float nature
if (Delta >= mVessel.radarAltitude + 1.0f) //zero is inpractical due to float nature
{
fs.wheelThrottle = (float)throttlePID.Update(RoverSpeed, dc.speed, -1.0, 1.0);
if (ForwardAxis != Vector3.zero)
Expand Down

0 comments on commit c383b13

Please sign in to comment.