Board index FlightGear Development Aircraft

Cessna 172P detailed (was "Cockpit textures for the c172p")

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

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby wlbragg » Sat Apr 14, 2018 7:12 pm

Can the shift-action be made to fire to the tooltip as the action tag does?

See below...

I was hoping to combine the volume & the pull/push state into one tooltip to help see if the knob is pulled or not.

It works partially, but it is not updated live. When I adjust the volume while the tooltip is displayed, the tooltip is refreshed for the volume portion, but if I push/pull the knob, this portion is not refreshed. I need to move the mouse away from the tooltip and back over it for the updated string to be displayed.

Do you have any idea?

Ex:

Code: Select all
<animation>
    <type>knob</type>
    <object-name>NavVolume</object-name>
    <property alias="../../params/nav-volume"/>
    <factor>-250</factor>
    <axis>
        <x>1</x>
        <y>0</y>
        <z>0</z>
    </axis>
    <center>
        <x-m>0.0188946</x-m>
        <y-m>0.0180001</y-m>
        <z-m>-0.0139999</z-m>
    </center>
    <action>
        <binding>
            <command>property-adjust</command>
            <property alias="../../../../params/nav-volume"/>
            <factor>0.1</factor>
            <min>0.0</min>
            <max>1.0</max>
            <wrap>false</wrap>
        </binding>
        <binding>
            <command>nasal</command>
            <script>c172p.click("kx165-1-dial")</script>
        </binding>
    </action>
    <shift-action>
        <binding>
            <command>property-toggle</command>
            <property alias="../../../../params/nav-audio"/>
        </binding>
    </shift-action>
     <hovered>
        <binding>
            <command>set-tooltip</command>
            <tooltip-id>nav-volume</tooltip-id>
            <label>%s</label>
            <measure-text>NAV1 Volume: 100%, Ident disabled (Shift + click to pull)</measure-text>
            <property alias="../../../../params/nav-volume"/>
            <mapping>nasal</mapping>
            <script>
              var v = arg[0];
              # TBD MGouin: this property does not seem to be refreshed "live"
              var a = getprop("/instrumentation/nav[0]/ident-audible");

              var s = "NAV1 Volume: ";
              s = s ~ sprintf("%d", v * 100);
              s = s ~ "%, Ident ";
              if (a)
                s = s ~ "enabled (Shift + click to push)";
              else
                s = s ~ "disabled (Shift + click to pull)";

              return s;
            </script>
        </binding>
    </hovered>
</animation>
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7588
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby uvindu330 » Wed Apr 18, 2018 2:12 pm

Where can I download this aircraft?
uvindu330
 
Posts: 26
Joined: Tue Feb 07, 2017 12:25 pm
Location: Srilanka
Version: 2018.1.1
OS: Windows 10

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby gsagostinho » Wed Apr 18, 2018 2:19 pm

uvindu330 wrote in Wed Apr 18, 2018 2:12 pm:Where can I download this aircraft?


From our repository at https://github.com/c172p-team/c172p-detailed
User avatar
gsagostinho
 
Posts: 1806
Joined: Thu Jan 15, 2015 7:27 pm
Location: London, UK

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby camileck » Thu Apr 19, 2018 11:12 pm

Hello, I have just updated to Flightgear 2018.1.1 and discovered interesting thing. Now, when I switch alternator or battery switch ON, the high pitched buzzing/squeaking sound appears. I find it really annoying. It can be heard even if engine is running ~1500 rpms. Is it like it should be? If yes, I will just get used to :)

EDIT: It is related to the Avionics switch. If it is ON, the buzzing sound can be heard, no matter which position are the switches at on audio control unit and no matter either the radios/ADF/DME are ON or OFF. Once I turn the Avionics switch OFF the sound disappears.
camileck
 
Posts: 75
Joined: Thu Jul 27, 2017 9:17 pm

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby gsagostinho » Fri Apr 20, 2018 12:26 am

@camileck That is indeed a feature, not a bug. The avionics switch will turn on the gyro which makes that sort of noise. It's the same thing with the real aircraft :D
User avatar
gsagostinho
 
Posts: 1806
Joined: Thu Jan 15, 2015 7:27 pm
Location: London, UK

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby camileck » Fri Apr 20, 2018 12:31 am

Thank you for your reply! Is it also ok that I did not hear this sound in FG 2017.3?
camileck
 
Posts: 75
Joined: Thu Jul 27, 2017 9:17 pm

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby gsagostinho » Fri Apr 20, 2018 1:04 am

Yes, the sound has been added only recently when I did a major overhaul of our sounds. The aircraft in our repo has some much improved engine sounds, for instance.
User avatar
gsagostinho
 
Posts: 1806
Joined: Thu Jan 15, 2015 7:27 pm
Location: London, UK

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby camileck » Tue Apr 24, 2018 4:08 pm

Thank you for your answers! This gyro you mentioned about - which system is it connected to/what is it responsible for? I have read that this may be turn coordinator gyro but I verified this and turn coordinator works with avionics switch off so I am confused.
camileck
 
Posts: 75
Joined: Thu Jul 27, 2017 9:17 pm

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby gsagostinho » Tue Apr 24, 2018 4:15 pm

@camileck You make a good point, perhaps the TC shouldn't work without power then. I will raise this in the repository. For the discussion we had about the sound, see: https://github.com/c172p-team/c172p-detailed/issues/846
User avatar
gsagostinho
 
Posts: 1806
Joined: Thu Jan 15, 2015 7:27 pm
Location: London, UK

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby camileck » Tue Apr 24, 2018 5:10 pm

So I went through the discussion and as far as I can see it was pointed out that sound is in fact gyro but it should be connected to master/battery, not to avionics switch. Following this logic TC should not work with master switched off but it is only MY assumption, I do not know anything about this IRL ;)
camileck
 
Posts: 75
Joined: Thu Jul 27, 2017 9:17 pm

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby gsagostinho » Tue Apr 24, 2018 8:01 pm

camileck wrote in Tue Apr 24, 2018 5:10 pm:So I went through the discussion and as far as I can see it was pointed out that sound is in fact gyro but it should be connected to master/battery, not to avionics switch.


I just tested it in the sim and the gyro sound is tied to the master switch, not to the avionics switch. So I think this is correct.

Following this logic TC should not work with master switched off but it is only MY assumption, I do not know anything about this IRL ;)


I also tested this and the TC does indeed stops being reliable if you turn off the master in flight. You need to think that the gyro will remain spinning for quite some time after the battery is off, but it will slowly stop spinning until the point where the instrument gets completely stuck. To test this, just take off, turn off the master and accelerate time 16x and in a couple of minutes your TC will be unusable.

So I guess everything looks fine, correct?
User avatar
gsagostinho
 
Posts: 1806
Joined: Thu Jan 15, 2015 7:27 pm
Location: London, UK

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby camileck » Tue Apr 24, 2018 8:49 pm

OK, case finally solved :) The confusion came because I was using C172 delivered with FG 2018.1 from https://launchpad.net/~saiarcot895/+arc ... flightgear and you were relating to last version of aircraft from https://github.com/c172p-team/c172p-detailed I suppose. So:
TC: it does indeed stop after switching master off after 2-3 minutes both in "official" version and version from github repo.
Gyro/squeaking sound: (I am 100% sure about it ;) ) - in "official" version it is connected to avionics switch, in github repo version it is connected to battery master switch.

Is it possible that c172P version in this build (saiarcot's repo) is different than for example c172 in official Windows/Mac build?
camileck
 
Posts: 75
Joined: Thu Jul 27, 2017 9:17 pm

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby gsagostinho » Tue Apr 24, 2018 8:57 pm

Great to know all is clear now, we did so much work lately that I lost track of which features made into the last release and which ones are currently only available in our repository.

Concerning saiarcot's repo and the official release, I am quite sure that they should both offer the same version of the c172p. We are constantly working on this aircraft in our repository and then just a couple of weeks before a release we ask for the core devs to merge our repository into FGData. Normally we do just a single merge per release, which means that we don't keep updating our aircraft in FGData all the time, just once every 3 months. If you want to enjoy the latest features just simply make a copy of our repository and load the aircraft through that directory, it should be simple enough. And if you are familiar with git, you can simply do a 'git pull' from time to time to automatically update the aircraft in your local clone of the repository. Makes sense?
User avatar
gsagostinho
 
Posts: 1806
Joined: Thu Jan 15, 2015 7:27 pm
Location: London, UK

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby camileck » Wed Apr 25, 2018 12:56 pm

Thank you so much for your answers! Great job with the aircraft, I am amazed with the level of details and enjoying every minute spent on "driving" this beauty.
camileck
 
Posts: 75
Joined: Thu Jul 27, 2017 9:17 pm

Re: Cessna 172P detailed (was "Cockpit textures for the c172

Postby Catalanoic » Wed Apr 25, 2018 1:59 pm

Thanks gsagostinho! I always update my c172p folder from github, but is nice to have it updated for every FG release to all people without configuring github. :lol:
User avatar
Catalanoic
 
Posts: 1099
Joined: Mon Mar 05, 2012 1:33 am
Location: Barcelona (LEBL)
Callsign: Catalanoic
Version: 2017.3
OS: Lubuntu/Windows 7

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 18 guests