Skip to content

Commit

Permalink
[CL] Add AngularSpeed entry (Vessel)
Browse files Browse the repository at this point in the history
  • Loading branch information
Falki-git committed Feb 19, 2024
1 parent 2588d9f commit c2c5648
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/MicroEngineer/Entries/VesselEntries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,5 +554,28 @@ private List<NonStageableResource> ParseNonstageableResources(List<ContainedReso
return parsedResources;
}

public override string ValueDisplay => base.ValueDisplay;
}

public class AngularSpeed : VesselEntry
{
public AngularSpeed()
{
Name = "Angular Speed";
Description = "";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
BaseUnit = "rad/s";
NumberOfDecimalDigits = 2;
Formatting = "N";
}

public override void RefreshData()
{
EntryValue =
Utility.ActiveVessel.mainBody.celestialMotionFrame.ToLocalAngularVelocity(Utility.ActiveVessel
.AngularVelocity).magnitude;
}

public override string ValueDisplay => base.ValueDisplay;
}

0 comments on commit c2c5648

Please sign in to comment.