Board index FlightGear Development Canvas

Trend Vector implementation

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Trend Vector implementation

Postby Hyde » Sat May 16, 2015 1:14 pm

I requested to implement the trend vector on canvas ND and accepted.
http://sourceforge.net/p/flightgear/codetickets/1390/

When will it be available?
I think it's time to start.
Is there any difficulty?
Hyde
 
Posts: 724
Joined: Fri Aug 12, 2011 2:09 pm
Location: Peachtree city, GA
Callsign: N407DS
Version: GIT
OS: Fedora 25

Re: Trend Vector implementation

Postby Hooray » Sat May 16, 2015 1:49 pm

I don't think it's difficult at all - the main developer of the ND stuff has been Gijs so far, and he's obviously been pretty busy lately - so I guess that's the main reason, but technically, it's not exactly difficult to implement a trend vector layer - in fact, you could use one of the OpenVG/path drawing commands to draw a curve and then extraolate the position accordingly
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Trend Vector implementation

Postby Hyde » Sat Dec 12, 2015 3:59 pm

Thanks for Gijs' effort of implementation.
Now it's beautifully functioning. :D

Image

@Gijs
AS you can see in the image, Altitude range arc is not functioning in the Center mode.
Can you fix easily? Or should I submit the issue report?

Thanks,
Hyde
Hyde
 
Posts: 724
Joined: Fri Aug 12, 2011 2:09 pm
Location: Peachtree city, GA
Callsign: N407DS
Version: GIT
OS: Fedora 25

Re: Trend Vector implementation

Postby legoboyvdlp » Sat Dec 12, 2015 4:04 pm

Very nice, Hyde!
Do I see a hold on that route manager? :shock:
Beautiful bird and beautiful functionality :)
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Trend Vector implementation

Postby Hyde » Sat Dec 12, 2015 4:43 pm

legoboyvdlp wrote in Sat Dec 12, 2015 4:04 pm:Do I see a hold on that route manager? :shock:

Yes, if you use Navigraph SID/STARS.
This is the actual route I used this time.
SID:JOGOR6.27R-GARND Approach:ILS05 STAR:None.
Short flight so the cruising altitude is FL16.
Please try. :D

Edit:I've just found we can not activate using this route after loading from .xml file.
It may be a route manager's bug. Sorry. :(

Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <version type="int">2</version>
  <departure>
   <airport type="string">KATL</airport>
   <sid type="string">JOGOR6.27R</sid>
   <runway type="string">27R</runway>
  </departure>
  <destination>
   <airport type="string">KANB</airport>
   <approach type="string">ILS05</approach>
   <runway type="string">05</runway>
  </destination>
  <route>
   <wp>
     <type type="string">runway</type>
     <departure type="bool">true</departure>
     <ident type="string">27R</ident>
     <icao type="string">KATL</icao>
   </wp>
   <wp n="1">
     <type type="string">hdgToAlt</type>
     <departure type="bool">true</departure>
     <alt-restrict type="string">above</alt-restrict>
     <altitude-ft type="double">1527</altitude-ft>
     <ident type="string">(1527)</ident>
     <heading-deg type="double">275</heading-deg>
   </wp>
   <wp n="2">
     <type type="string">basic</type>
     <departure type="bool">true</departure>
     <ident type="string">SLAWW</ident>
     <lon type="double">-84.657606</lon>
     <lat type="double">33.634536</lat>
   </wp>
   <wp n="3">
     <type type="string">basic</type>
     <departure type="bool">true</departure>
     <ident type="string">WESEK</ident>
     <lon type="double">-84.729267</lon>
     <lat type="double">33.634847</lat>
   </wp>
   <wp n="4">
     <type type="string">basic</type>
     <departure type="bool">true</departure>
     <ident type="string">JOGOR</ident>
     <lon type="double">-85.211658</lon>
     <lat type="double">33.476386</lat>
   </wp>
   <wp n="5">
     <type type="string">navaid</type>
     <ident type="string">GIFFY</ident>
     <lon type="double">-85.669125</lon>
     <lat type="double">33.222033</lat>
   </wp>
   <wp n="6">
     <type type="string">navaid</type>
     <ident type="string">GOSSE</ident>
     <lon type="double">-86.023319</lon>
     <lat type="double">33.352731</lat>
   </wp>
   <wp n="7">
     <type type="string">basic</type>
     <approach type="bool">true</approach>
     <alt-restrict type="string">above</alt-restrict>
     <altitude-ft type="double">3200</altitude-ft>
     <ident type="string">CLARC</ident>
     <lon type="double">-86.0325</lon>
     <lat type="double">33.458522</lat>
   </wp>
   <wp n="8">
     <type type="string">basic</type>
     <approach type="bool">true</approach>
     <alt-restrict type="string">at</alt-restrict>
     <altitude-ft type="double">2022</altitude-ft>
     <ident type="string">BOGGA</ident>
     <lon type="double">-85.930986</lon>
     <lat type="double">33.53407</lat>
   </wp>
   <wp n="9">
     <type type="string">runway</type>
     <approach type="bool">true</approach>
     <ident type="string">05</ident>
     <icao type="string">KANB</icao>
   </wp>
   <wp n="10">
     <type type="string">hdgToAlt</type>
     <approach type="bool">true</approach>
     <miss type="bool">true</miss>
     <alt-restrict type="string">above</alt-restrict>
     <altitude-ft type="double">1600</altitude-ft>
     <ident type="string">(1600)</ident>
     <heading-deg type="double">49</heading-deg>
   </wp>
   <wp n="11">
     <type type="string">radialIntercept</type>
     <approach type="bool">true</approach>
     <miss type="bool">true</miss>
     <ident type="string">(INTC)</ident>
     <lon type="double">-85.930986</lon>
     <lat type="double">33.53407</lat>
     <course-deg type="double">110</course-deg>
     <radial-deg type="double">80</radial-deg>
   </wp>
   <wp n="12">
     <type type="string">basic</type>
     <approach type="bool">true</approach>
     <miss type="bool">true</miss>
     <alt-restrict type="string">above</alt-restrict>
     <altitude-ft type="double">4000</altitude-ft>
     <ident type="string">BOGGA</ident>
     <lon type="double">-85.930986</lon>
     <lat type="double">33.53407</lat>
   </wp>
   <wp n="13">
     <type type="string">hold</type>
     <approach type="bool">true</approach>
     <miss type="bool">true</miss>
     <ident type="string">BOGGA</ident>
     <lon type="double">-85.930986</lon>
     <lat type="double">33.53407</lat>
     <right-handed type="bool">false</right-handed>
     <is-distance type="bool">false</is-distance>
     <inbound-radial-deg type="double">49</inbound-radial-deg>
     <td type="double">60</td>
   </wp>
  </route>
</PropertyList>
Hyde
 
Posts: 724
Joined: Fri Aug 12, 2011 2:09 pm
Location: Peachtree city, GA
Callsign: N407DS
Version: GIT
OS: Fedora 25

Re: Trend Vector implementation

Postby legoboyvdlp » Sat Dec 12, 2015 5:04 pm

Excellent! :)
I'll see what I can do :)
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Trend Vector implementation

Postby Gijs » Sun Dec 13, 2015 6:29 pm

Hyde wrote in Sat Dec 12, 2015 3:59 pm:Now it's beautifully functioning. :D

Thanks! I must say it really adds to the overall look and feel of the display to see that vector :-)

Hyde wrote in Sat Dec 12, 2015 3:59 pm:Altitude range arc is not functioning in the Center mode.

Hm, the code is exactly the same as for the non-centered mode. Please open a ticket, it'll require some further investigation.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Trend Vector implementation

Postby legoboyvdlp » Sun Dec 13, 2015 8:35 pm

Hey Hyde, Gjis,
Thanks for all you habe done on this :)
The Canvas ND/CDU/PFD effort is very nice, beautiful, and functional.
I can't wait for the CDU you promised, Gjis! Has it made it into FlightGear yet?
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Trend Vector implementation

Postby Gijs » Sun Dec 13, 2015 8:51 pm

Thanks :)
The CDU framework is in fgdata, but I still need to bring it to a releasable state on the 744. I know I've promised several deadlines, but this Christmas holiday will definitely see a release. It's very close now.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Trend Vector implementation

Postby legoboyvdlp » Sun Dec 13, 2015 9:08 pm

Excellent, Gjis!
I'm sure it will be awesome to be able to have a proper CDU in FlightGear, just like the Airbus MCDU.

Glad to hear that!

Finally, just a comment about the 744... if I recall my testing correctly, LNAV engages VOR/LOC mode, instead of the LNAV mode, (which at times, unpredictabely, seems to disengage, reverting to heading autopilot off. That is, I engage LNAV in the cockpit, and it goes to VOR/LOC mode. And when I do a manual 'LMAV' from the autopilot menu, only sometimes, it disengages roll/yaw mode completely, giving aileron control back to me.... not desired over the Atlantic. :)

Not sure if you noticed the latter, but I'm sure the former is simply due to a lack of time? Or maybe it's a wrong property name, somewhere ;)

Een pretige dag!
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Trend Vector implementation

Postby Gijs » Sun Dec 13, 2015 9:11 pm

The autopilot needs quite a bit of extra work. Has to wait till the FMC is usable though.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Trend Vector implementation

Postby biloute974 » Mon Dec 14, 2015 9:25 am

HI,

it's a very good job you do. I know it's very hard job.
I'm working on APU sound on 777 and it's not very completely finish yet ;)
Intel I7 7700 - 16Gb DDR4 - Nvidia GTX970 - FG 2017.4.0 from D&C
biloute974
 
Posts: 193
Joined: Mon Feb 23, 2015 9:49 am
Callsign: U974
Version: 2016.1.0
OS: Mint 17.2


Return to Canvas

Who is online

Users browsing this forum: No registered users and 1 guest