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 5: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
Ongoing projects(3D modelling): A320, MD-11, A350, B767
FG767: https://fg767.wordpress.com/
CaptB
 
Posts: 685
Joined: Thu May 23, 2013 7:36 pm
Callsign: EKCH_AP
IRC name: CaptB
Version: next
OS: Xubuntu

Re: Custom Pilot Offset Dialog

Postby hardba11 » Sat Jan 14, 2017 12:07 am

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 - WIP: new aircraft - hobby: world tour in flightgear
hardba11
 
Posts: 166
Joined: Tue May 27, 2014 6:56 pm
Location: Paris - FR
Callsign: F-HRDB
Version: 2018.3.2
OS: debian

Re: Custom Pilot Offset Dialog

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

Could this be added to the official fgdata?
D-ECHO
 
Posts: 2460
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Custom Pilot Offset Dialog

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

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

Re: Custom Pilot Offset Dialog

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

+1
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Re: Custom Pilot Offset Dialog

Postby yanes » Tue Jan 31, 2017 2: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: 135
Joined: Tue Sep 02, 2014 2:14 pm
Location: Tunisia
Callsign: YANES
Version: 2018.2.2
OS: Linux

Re: Custom Pilot Offset Dialog

Postby wlbragg » Wed Feb 01, 2017 2: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 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: Custom Pilot Offset Dialog

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

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

Re: Custom Pilot Offset Dialog

Postby sanhozay » Thu Feb 02, 2017 9: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 12:57 pm
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Custom Pilot Offset Dialog

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

hello

jsb wrote in Thu Feb 02, 2017 8: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 - WIP: new aircraft - hobby: world tour in flightgear
hardba11
 
Posts: 166
Joined: Tue May 27, 2014 6:56 pm
Location: Paris - FR
Callsign: F-HRDB
Version: 2018.3.2
OS: debian

Re: Custom Pilot Offset Dialog

Postby dg-505 » Fri Feb 03, 2017 6: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?
A mile of road will take you a mile, but a mile of runway will take you everywhere.

DHC-6 Twin Otter development
User avatar
dg-505
 
Posts: 677
Joined: Mon Jun 02, 2014 3:36 pm
Location: Bonn, Germany
Callsign: dg-505
Version: next
OS: Ubuntu 20.04.4 LTS

Re: Custom Pilot Offset Dialog

Postby CaptB » Fri Feb 03, 2017 9: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.
Ongoing projects(3D modelling): A320, MD-11, A350, B767
FG767: https://fg767.wordpress.com/
CaptB
 
Posts: 685
Joined: Thu May 23, 2013 7:36 pm
Callsign: EKCH_AP
IRC name: CaptB
Version: next
OS: Xubuntu

Re: Custom Pilot Offset Dialog

Postby dg-505 » Fri Feb 03, 2017 11: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?
A mile of road will take you a mile, but a mile of runway will take you everywhere.

DHC-6 Twin Otter development
User avatar
dg-505
 
Posts: 677
Joined: Mon Jun 02, 2014 3:36 pm
Location: Bonn, Germany
Callsign: dg-505
Version: next
OS: Ubuntu 20.04.4 LTS

Re: Custom Pilot Offset Dialog

Postby dg-505 » Fri Feb 03, 2017 3: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.
A mile of road will take you a mile, but a mile of runway will take you everywhere.

DHC-6 Twin Otter development
User avatar
dg-505
 
Posts: 677
Joined: Mon Jun 02, 2014 3:36 pm
Location: Bonn, Germany
Callsign: dg-505
Version: next
OS: Ubuntu 20.04.4 LTS

Re: Custom Pilot Offset Dialog

Postby zakalawe » Fri Feb 03, 2017 5: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: 1259
Joined: Sat Jul 19, 2008 5: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 12 guests