Board index FlightGear Development Aircraft

Piper PA28 Warrior II

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: Piper PA28 Warrior II

Postby Robertfm » Mon Jun 14, 2021 11:29 am

I refer to the AP/Nav1/Nav2 GPS switch on the extreme right of dashboard used with KAP140. Could someone direct me to where I find the code for this. I have checked in numerous xml & browser menu but can't find anything that looks like it. Thank you.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby Octal450 » Mon Jun 14, 2021 5:27 pm

Robert,
I will look into this shortly.

Kind Regards,
Josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5583
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: Piper PA28 Warrior II

Postby Robertfm » Mon Jun 14, 2021 5:32 pm

As I said in a previous post it would be helpful for the switch to be on the left of the Yoke switch panel which is inactive. Thanks.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby Avionyx » Wed Nov 10, 2021 11:03 pm

I absolutely love this aircraft, the Garmin G5 is particularly brilliant, is it possible for this to be used in other aircraft, does a list exist of the properties it requires? I've had a look but it seems quite deeply tied in to the PA28.
Many thanks in advance,
Alex
Avionyx
 
Posts: 531
Joined: Mon Jan 11, 2010 4:07 pm
Location: EGMD
Callsign: G-AVYX
Version: 2020.4
OS: Manjaro

Re: Piper PA28 Warrior II

Postby D-ECHO » Thu Nov 11, 2021 7:11 am

I don't recall everything in detail, but afaik it's rather portable. What's necessary is for its scripts (one that controls the instrument itself (including canvas) and one for its electrical system) to be called (see PA28-main.xml I think). You can also look into that same files if there are any properties (/instrumentation/G5 or similar) that are needed and last but not least it needs to be electrically powered (else the battery will run dry), I think by /systems/electrical/outputs/G5 or something.
D-ECHO
 
Posts: 2460
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Piper PA28 Warrior II

Postby Robertfm » Tue Nov 16, 2021 2:11 pm

For some reason the landing light is not working it has done this before and then just starts working again. I looked in property browser and activated the switch, the reading changes from 0 to 1 and then back to 0 when switch off. Any ideas.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby D-ECHO » Tue Nov 16, 2021 6:25 pm

To confirm, you mean that the property "/controls/lighting/landing-light" is 1 (on) and the light is not showing? And do you mean the "light model" (the light you see at the nose) or the compositor lights, e.g. its effects on the terrain? Also, are you using ALS? And is it still correct that you're on 2020.3.11?
D-ECHO
 
Posts: 2460
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Piper PA28 Warrior II

Postby Robertfm » Tue Nov 16, 2021 6:40 pm

1. Yes it shows as 1, light model is on..
2. The effects on terrain not showing.
3. ALS on
4. Yes 2020.3.11
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby D-ECHO » Tue Nov 16, 2021 6:59 pm

Assuming you are using the release/2020.3 branch (default hangar), the reason is probably that the changes that update the lights from the "kind of fake" ALS lights to the "more real" Compositor lights were ported (but Compositor lights don't exist on 2020.3.11 yet afaik).
D-ECHO
 
Posts: 2460
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Piper PA28 Warrior II

Postby Robertfm » Tue Nov 16, 2021 7:05 pm

Sorry I don't fully understand, why would a new version of FG remove a plane specific function. Also every video I have seen on real planes show the landing light beam visible on the runway on landing. Why is that 'fake' and ommited.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby D-ECHO » Tue Nov 16, 2021 7:39 pm

I think there's a misunderstanding :)

There are two different ways of modelling a light's effect on the environment:

* ALS Secondary Lights
* Compositor Lights

ALS Secondary lights basically emit a portion of the screen and there can be done some nasal hacks to make them appear as if they were a light coming from the aircraft. This does never workin exterior views and only limited when looking from the cockpit. Compositor lights pretty much fixes all of these issues, but are only available from 2020.4 onwards. The trunk (next) version of the PA28 only uses compositor lights (for ease of maintenance) and the stable (release/2020.3) version used to have ALS secondary lights. If the changes were backported, then the incompatibility between aircraft and FG version would be the reason for your issue, but I'm not sure if this is the reason.
D-ECHO
 
Posts: 2460
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Piper PA28 Warrior II

Postby Robertfm » Tue Nov 16, 2021 7:56 pm

The lighting of the runway on landing has been fine on 2020.3.11 until the last week and there have been no updates in the default hanger of the plane for many months, which is why your explanation is confusing. Sorry.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby D-ECHO » Tue Nov 16, 2021 8:03 pm

Ah, that's an important point :) If there have been no updates, neither to the aircraft nor to your FG (or video drivers etc. in that regard), I really have no idea how this comes... :/
D-ECHO
 
Posts: 2460
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Piper PA28 Warrior II

Postby Robertfm » Tue Nov 16, 2021 8:08 pm

Oh well another mystery, perhaps it will simply come back. Thanks.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746

Re: Piper PA28 Warrior II

Postby SurferTim » Tue Nov 16, 2021 8:31 pm

It will in a few. The FG2020 hangar removed the ALS lights in you PA28.
If you know where the aircraft files are located, open
/PA28/PA28-main.xml
At about line 942, you will find this, except the last <file> entry is missing. Add it and all will be well.
Code: Select all
         <libraries>
            <file>Aircraft/PA28/Nasal/libraries.nas</file>
            <file>Aircraft/PA28/Models/Instruments/ELT/ELTmessage.nas</file>
            <file>Aircraft/PA28/Nasal/zoom-views.nas</file>
            <file>Aircraft/PA28/Nasal/crash-stress.nas</file>
            <file>Aircraft/PA28/Nasal/kr87.nas</file>
            <file>Aircraft/PA28/Nasal/kx165a.nas</file>
            <file>Aircraft/PA28/Nasal/light-manager.nas</file>
         </libraries>
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 12 guests