-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpeedUnitAnnex compatibility #32
Comments
I could expose a method to toggle FAR speed display to FARAPI. You would then have to look for if FAR has been loaded and disable its speed display. |
Will I need to copy FARAPI.cs to my repo, similar to KAC_Wrapper ? |
No, you load the method by reflection. Check how MechJeb does it https://github.com/MuMech/MechJeb2/blob/0d49eac5f938aabe5271de98b73b9563b802ff78/MechJeb2/VesselState.cs |
ok, I will figure this out |
You can try out #33 Ferram-Aerospace-Research/FerramAerospaceResearch/FARAPI.cs Lines 89 to 115 in fd5d28c
|
I created FARReflection in the Then I called Is there some near-start-time Method or GameEvent, where it will be working? |
The airspeed display is attached to FlightGUI which is a vessel module so you will need to toggle it at the start of every flight scene/vessel load. I've added a global option to make things easier Ferram-Aerospace-Research/FerramAerospaceResearch/FARAPI.cs Lines 89 to 129 in f4488e1
|
global version doesn't use |
Done, Ferram-Aerospace-Research/FerramAerospaceResearch/FARAPI.cs Lines 89 to 128 in 256bf7e
|
ok, I think it works |
Merged #33 |
Another one, looks like |
FAR calculates IAS and EAS in |
Try out #34 Ferram-Aerospace-Research/FerramAerospaceResearch/FARAPI.cs Lines 135 to 153 in 82b77ed
|
thanks, it works. when are you planning on making full release? |
Merged #34 I don't know about a full release. If I changed the versioning to incrementing revision number without changing the name I could do more frequent releases if there were any changes. |
that would be good |
SpeedUnitAnnex (SUA) changes lines on the navball panel, so in the Surface Mode it looks like this:
both FAR and SUA make this, but FAR somehow wins:
Ferram-Aerospace-Research/FerramAerospaceResearch/FARGUI/FARFlightGUI/AirspeedSettingsGUI.cs
Lines 201 to 202 in 0a49305
Anyway, looks like all this navball-panel-speed-units-feature can be passed to SUA.
SUA for the planes has main speedometer (m/s), secondary speedometer (mach or knots or km/h or mph) and disabled by default IAS (m/s)
I have found the feature settings in the FAR: FAR toolbar - Fit Settings - Air Spd.
All these units and IAS already in the SUA. (does EAS makes sense without FAR?)
left panel on that image (surface speed: 915.9 m/s, Mach 3.0, IAS: 12.5 m/s, AGL 23.2 km):
So
possibility1: deleting some code in the AirspeedSettingsGUI and making FAR suggesting SUA
possibility2: I could make SUA overriding FAR (without any changes in the FAR) on the Navball panel, any idea how?
UPD.
possibility3: FAR detects SUA and disables FAR's navball-panel-text
The text was updated successfully, but these errors were encountered: