Board index FlightGear Development

Custom Pilot Offset Dialog

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Custom Pilot Offset Dialog

Postby CaptB » Fri Jan 13, 2017 4:08 pm

I was bothered by the lack of precision in the Pilot Offset Dialog for a while now, so I made a little change to allow a bit more precision. Maybe it will be useful to someone.

It is now possible to move the position more precisely in addition to the normal dials and also reset to 0. Link below.

Image

https://www.dropbox.com/s/yzwdipaij2meejv/pilot_offset.xml?dl=0
CaptB
 
Posts: 487
Joined: Thu May 23, 2013 6:36 pm
Callsign: EKCH_AP
IRC name: CAPTB
Version: 2018.1
OS: Xubuntu, Win7 64

Re: Custom Pilot Offset Dialog

Postby hardba11 » Fri Jan 13, 2017 11:07 pm

hello CaptB

verry good idea, it will be useful for me ;)
- to adjust instrument position in the cockpit
- to place custom views for a new aircraft

cheers
contribs: mirage2000-5, statics models, LFRV - WIP: new aircraft, TFFJ - hobby: world tour in flightgear
hardba11
 
Posts: 156
Joined: Tue May 27, 2014 5:56 pm
Location: Paris - FR
Callsign: F-HRDB
Version: 2018.2.3
OS: windows and debian

Re: Custom Pilot Offset Dialog

Postby D-ECHO » Sun Jan 15, 2017 6:15 pm

Could this be added to the official fgdata?
User avatar
D-ECHO
 
Posts: 1359
Joined: Sat May 09, 2015 12:31 pm

Re: Custom Pilot Offset Dialog

Postby jsb » Mon Jan 30, 2017 10:33 am

I can test it and create a merge request for fgdata but probably not before end of this week.
jsb
 
Posts: 213
Joined: Sat Oct 25, 2014 8:17 pm
Location: Hamburg, Germany
Callsign: D-JSB
Version: next
OS: Win7/Linux

Re: Custom Pilot Offset Dialog

Postby Michat » Mon Jan 30, 2017 3:49 pm

+1
User avatar
Michat
 
Posts: 925
Joined: Mon Jan 25, 2010 6:24 pm
Location: Spain
Version: 191b
OS: GNewSense

Re: Custom Pilot Offset Dialog

Postby yanes » Tue Jan 31, 2017 1:44 am

great Idea , this box was completely unsuabe , and I used to enter the offsets in tree window each time I need to change view postn rather than using this box ,
I will try and report in case there were any issues .Thanks

Edit : the fine tuning bottons are awesome , but the knobs are still "violent" , I can't use such knobs I think that reducing movements factors wil be great
Regards ,
Yanes
User avatar
yanes
 
Posts: 117
Joined: Tue Sep 02, 2014 1:14 pm
Location: Tunisia
Callsign: YANES
Version: 2018.2.2
OS: Linux

Re: Custom Pilot Offset Dialog

Postby wlbragg » Wed Feb 01, 2017 1:45 am

This has been something I wanted to see corrected since the first "useless" time I tried it. I never got a round tuit :lol:
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4181
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Custom Pilot Offset Dialog

Postby jsb » Thu Feb 02, 2017 7:32 am

Maybe we should remove the circles completly as they seem to be of little to no use?
jsb
 
Posts: 213
Joined: Sat Oct 25, 2014 8:17 pm
Location: Hamburg, Germany
Callsign: D-JSB
Version: next
OS: Win7/Linux

Re: Custom Pilot Offset Dialog

Postby sanhozay » Thu Feb 02, 2017 8:34 am

I think the fine adjustment is a good idea and look forward to seeing it in fgdata but the knobs are usable. The trick is to move away from the knob before rotating rather than trying to rotate close to the knob. It's difficult to explain but it's like using a long arm connected to the knob rather than the knob itself. So LMB down on the knob, move vertically about three screen inches, then left or right to rotate. It's still good for coarse adjustments I think.
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Custom Pilot Offset Dialog

Postby hardba11 » Thu Feb 02, 2017 9:19 am

hello

jsb wrote in Thu Feb 02, 2017 7:32 am:Maybe we should remove the circles completly as they seem to be of little to no use?


I think the circles are usable for the "big" displacement wheras the buttons are usable for the thinner displacement.

FYI, to ajust, using the circles for big displacement but with more precision :
I click on the circle, keep down LMB and I move the pointer away (outside of the box).

edit
+1 sanhozay ;)

cheers
Nico
contribs: mirage2000-5, statics models, LFRV - WIP: new aircraft, TFFJ - hobby: world tour in flightgear
hardba11
 
Posts: 156
Joined: Tue May 27, 2014 5:56 pm
Location: Paris - FR
Callsign: F-HRDB
Version: 2018.2.3
OS: windows and debian

Re: Custom Pilot Offset Dialog

Postby dg-505 » Fri Feb 03, 2017 5:46 am

Hi.
I also consider this a great idea, but I see a problem:
For most views the default position isn't 0;0;0 but e.g. -3.15;-0.3;1.2 in Cockpit View, or 0;5;25; for Chase View.
When the Reset button is pressed, the view isn't reset to the default, but to 0, which is IMO an unwanted behaviour.
Any idea how to approacht this issue?
It's not just a hobby. I'ts a passion: FLYING !!

DHC-6 Twin Otter development
User avatar
dg-505
 
Posts: 613
Joined: Mon Jun 02, 2014 2:36 pm
Location: Hessen, Germany
Version: next
OS: Ubuntu 16.04

Re: Custom Pilot Offset Dialog

Postby CaptB » Fri Feb 03, 2017 8:43 am

@dg-505

This was meant for the cockpit view only, however If there's a property which stores the present view in use, maybe it would be possible to make it reset to the view's default position.
CaptB
 
Posts: 487
Joined: Thu May 23, 2013 6:36 pm
Callsign: EKCH_AP
IRC name: CAPTB
Version: 2018.1
OS: Xubuntu, Win7 64

Re: Custom Pilot Offset Dialog

Postby dg-505 » Fri Feb 03, 2017 10:26 am

So maybe add an <enable> part to the Reset button?
Code: Select all
    <button>
        <label>Reset</label>
        <enable>
            <equals>
                <property>sim/current-view/view-number</property>
                <value>0</value>
            </equals>
        </enable>


And for the binding:
Code: Select all
        <binding>
            <command>property-assign</command>
            <property>sim/current-view/{x;y;z}-offset-m</property>
            <property>sim/view[0]/{x;y;z}-offset-m</property>
        </binding>
    </button>


What do you think about that?
It's not just a hobby. I'ts a passion: FLYING !!

DHC-6 Twin Otter development
User avatar
dg-505
 
Posts: 613
Joined: Mon Jun 02, 2014 2:36 pm
Location: Hessen, Germany
Version: next
OS: Ubuntu 16.04

Re: Custom Pilot Offset Dialog

Postby dg-505 » Fri Feb 03, 2017 2:14 pm

Here is a slightly adapted version of this file:
https://drive.google.com/file/d/0B2wA-loaS2xnWXJsTEdCTU1iT1U/view?usp=sharing
Image

If no one beats me to it I would volunteer to file a merge request for FGData.
It's not just a hobby. I'ts a passion: FLYING !!

DHC-6 Twin Otter development
User avatar
dg-505
 
Posts: 613
Joined: Mon Jun 02, 2014 2:36 pm
Location: Hessen, Germany
Version: next
OS: Ubuntu 16.04

Re: Custom Pilot Offset Dialog

Postby zakalawe » Fri Feb 03, 2017 4:27 pm

A couple of questions that occur to me:

- who is the target audience for this dialog? Aircraft developers or normal users? I ask because this seems a rather technical thing for people simply flying in the simulator, but also:
- if the audience is technical users (aircraft / scenery designers), wouldn't numerical adjustment make more sense than clicking buttons or using the dials?

BTW, as someone else commented here, the PUI dials have slightly strange mouse handling, it can be very sensitive. But it would be good to establish if there is actually a use case for 'big' adjustments via the dials, before adding more UI to work around their limitations! For end-user adjustment, I would much prefer something mouse driven, but again only if end-users actually need this functionality.
zakalawe
 
Posts: 1149
Joined: Sat Jul 19, 2008 4:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Next

Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests