c172p-team / c172p

A high detailed version of the Cessna 172P aircraft for FlightGear
GNU General Public License v2.0
79 stars 44 forks source link

Create FG1000 panel variant #1333

Closed wlbragg closed 3 years ago

wlbragg commented 4 years ago

I hope there isn't already an issue for this. I couldn't figure out how to effectively search through the existing issues.

Because glass is now the future of aircraft, I think we need a glass variant. I did the PA-18 and it really wasn't that difficult to retrofit it. We could do the same thing with our flagship and probably should. I think it would have to be done the same way as I did the PA-18 and it would have to have it's own set file and that would be the only way to access it. Not on the fly like the gear and engine changes. It's too heavy and cause the other PA-18 variants to lag even when in the background.

What I think is needed most for this is just some good cockpit reference material the matches our c172p model as best we can find. This winter when I'm holed up maybe I can start on this with a little help here and there.

maxresdefault

wlbragg commented 3 years ago

@D-ECHO @NewoIsTaken I just pushed a small change to the interface controller code via a patch from Stuart. Please pull a fresh copy, make sure you clear your aircraft data, and see if your current issue is fixed. If not, make sure you send me the exact error. Because I am getting no errors and the backup bat logic is working correctly for me.

NewoIsTaken commented 3 years ago

@wlbragg, PFD comes on right as I hit the standby battery on switch now!

wlbragg commented 3 years ago

@NewoIsTaken Thanks!

wlbragg commented 3 years ago

@NewoIsTaken @D-ECHO

I pushed some new interior lighting logic for the panel knobs. All that is left for the interior lighting is the Pedestal light which will be a new lightmap. Also I may still add some low spec rendering lighting controllable with the knobs The audio panel legend should be lit up as well, controllable with the Avionics knob, but isn't working, a bug I haven't tracked down yet.

I'm, not sure how much the electrical has changed from my last push, only that I am pretty happy with it at this point.

NewoIsTaken commented 3 years ago

@NewoIsTaken @D-ECHO

I pushed some new interior lighting logic for the panel knobs. All that is left for the interior lighting is the Pedestal light which will be a new lightmap. Also I may still add some low spec rendering lighting controllable with the knobs The audio panel legend should be lit up as well, controllable with the Avionics knob, but isn't working, a bug I haven't tracked down yet.

I'm, not sure how much the electrical has changed from my last push, only that I am pretty happy with it at this point.

Great! Thanks!

wlbragg commented 3 years ago

Notes: add glass panel instruments to aircraft data

Why are all instruments now inheriting c172p-interior-radiance -> c172p-interior Verify going straight to c172p-interior as c172p-interior-radiance has no params anymore and c172p-interior has the residual-ambience and ra-irradiance now. I think the change was because of the removal of the shadow cube.

NewoIsTaken commented 3 years ago

@wlbragg I will try to test out the FG1000 today or sometime soon.

wlbragg commented 3 years ago

Notes to myself: ~save/load~ ~flight recorder~ tutorials add breakers to avionics? ~more c172p / fg1000 isolation... new isolated .ac for c172p interior.~ check hobbs logic

wlbragg commented 3 years ago

OK, I pushed a major refactoring of the c172sp electrical. I think it is in really good shape. It includes stby amp and volt readings for the EIC display once I get the changes pushed to fgdata. Using the formula amps * bus volts for each power supply circuit and then converting the total watts back to amps using watts / bus volts corrects the electrical power usage in electrical.nas and electrical-fg1000.nas. So it is easy to assign the actual draw per instrument. If anyone has the time to really look at the numbers there are some debug properties that can be un-commented out in order to watch what's going on in real time. I think I am to the point of finishing up a few miscellaneous items such as save/load parameter, flight recorder updates and maybe some fg1000 tutorials. Please check it out and test where you can, everyone.

wlbragg commented 3 years ago

Another major refactoring pushed. Also cleaned up flight recorder, MP, hot spot text. The major refactoring was to isolate c172p exclusive content from c172sp exclusive content. It should lighten the load slightly for all variants and helps group things in a more understandable fashion. I think we are really close to being able to make a 2020.4 version tag and see if we can get @stuartbuchanan to put it in fgdata next so we can get some serious testing. So @legoboyvdlp and @dany93 and any others that can make some time to test this latest refactoring, it would be greatly appreciated. Barring any major issues, I think maybe in a week or two I will ask for a merge and then create a new post compositor release.