zkv1000 / README.md /
Newer Older
230 lines | 13.619kb
commit initial
Sébastien MARQUE authored on 2017-03-07
1
[0%]:   https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Progress_00.svg/80px-Progress_00.svg.png "00%"
2
[10%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Progress_10.svg/80px-Progress_10.svg.png "10%"
3
[20%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Progress_20.svg/80px-Progress_20.svg.png "20%"
4
[30%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Progress_30.svg/80px-Progress_30.svg.png "30%"
5
[40%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Progress_40.svg/80px-Progress_40.svg.png "40%"
6
[50%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Progress_50.svg/80px-Progress_50.svg.png "50%"
7
[60%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Progress_60.svg/80px-Progress_60.svg.png "60%"
8
[70%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Progress_70.svg/80px-Progress_70.svg.png "70%"
9
[80%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/Progress_80.svg/80px-Progress_80.svg.png "80%"
10
[90%]:  https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Progress_90.svg/80px-Progress_90.svg.png "90%"
11
[100%]: https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Progress_100.svg/80px-Progress_100.svg.png "100%"
12
[abandonned]: http://wiki.flightgear.org/images/thumb/3/30/Cross_32px.png/16px-Cross_32px.png         "abandonné"
13
[done]:       http://wiki.flightgear.org/images/thumb/7/75/Tick_32px.png/16px-Tick_32px.png           "fait"
14
[ongoing]:    http://wiki.flightgear.org/images/thumb/3/37/Ongoing.png/16px-Ongoing.png               "en cours"
15
[pending]:    http://wiki.flightgear.org/images/thumb/8/8d/Hourglass_32px.png/16px-Hourglass_32px.png "en attente"
16
[fixed]:      http://wiki.flightgear.org/images/thumb/8/85/WIP.png/26px-WIP.png                       "réparé"
17
[paused]:     http://wiki.flightgear.org/images/thumb/d/dc/Paused.png/16px-Paused.png                 "en pause"
add bug icon in README.md
Sébastien MARQUE authored on 2017-03-23
18
[green-bug]:  https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Green_bug.svg/32px-Green_bug.svg.png "non blocking bug"
19
[red-bug]:    https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Red_bug.svg/32px-Red_bug.svg.png "blocking bug"
commit initial
Sébastien MARQUE authored on 2017-03-07
20

            
new demo screenshot
Sébastien MARQUE authored on 2017-04-18
21
![ZKV1000, in flight little after take off from LFBT](https://sebmarque.hd.free.fr/bozon/index.php?f=158f605bd971f9)
improve README
Sébastien MARQUE authored on 2017-03-20
22
ZKV1000 just after booting, installed in the Lancair 235 (all other instruments removed)  
23
[other pictures available here](https://sebmarque.hd.free.fr/bozon/index.php?f=158cf95340742d)
update README before merging
Sébastien MARQUE authored on 2017-03-20
24

            
25
# Thanks
26
Thanks to the modeller of the [GDU104X project "Farmin/G1000"](http://wiki.flightgear.org/Project_Farmin/FG1000)(can't remember who, if he/she can tell me...) I can continue the work began many years ago with a nicer (and working) 3D model instrument. Thanks to him/her for the SVG basis file too.  
27
Thanks to Hooray's nice efforts, and some examples ans snipsets of code here and there from the Canvas team.  
28
Thanks to all FlightGear community for the funny project I let too many years off side...
29

            
30
# Origin
31
The first ZKV1000, which was completly XML animated, was completly abandonned. Moreover the Nasal code became unmaintanable from my point of view. Not sure this one is better, but I think
32
it is at least more modulable.
33

            
34
The origin is to simulate a Garmin Primus 1000, as near as possible of the [documentation found](# documentation).
35

            
36
But as we are in a simulation, the zkv1000 is **definitly not** a replica of the well-known G1000, as it takes the liberty to be integrated with some features that doesn't exit in
37
the real device, as well as some real features aren't scheduled to be implemented. But, it should be easy to add or remove features in order to get the real device. 
38
This is GPL-2 license though :)
39

            
40
# Objectives
41
There is no intention to provide a fully qualified G1000 in order to train or so, but this should be possible to be done from the zkv1000.
42

            
43
I'm particulary looking at these points:
44

            
45
1.  easy to implement new features
46
1.  optimized code (from my non-dev point of view...)
47
1.  easy to integrate in every cockpit with only few lines, and with easy use for the pilot
48
1.  near from the G1000 documentation but with some neat features added, and some unrelevant features in a sim removed
49

            
50
# Progress
51
Note: this is not because the progress bar show 100% that it means it is 100% bug free :)
52
Please report bug at <seb.marque@free.fr>.
53

            
54
* ![][100%]
55
  * Basic Flight Instrumentation: AI, IAS, ALT, HDG
56
  * Wind data widget
57
  * trends for altitude and speed (6s prevision)
58
  * TAS and Ground Speed display
59
  * VSI
60
  * 3D knobs rotate
61
  * map display on inflight page (with online maps downloading and caching)
62
  * display of NavAids on map
XPDR settings via knob or so...
Sébastien MARQUE authored on 2017-03-22
63
  * XPDR from SoftKeys and knob, with respect of delays from the manual
adds BARO settings
Sébastien MARQUE authored on 2017-03-20
64
  * Selected altitude bug (widget off if IA within 100ft)
65
  * baro settings
add some information in READ...
Sébastien MARQUE authored on 2017-03-28
66
  * SoftKeys menus navigation for PFD and MFD: not yet implemented function are logged in console ![][done], softkeys colorized when active ![][done], alerts with white backgroud and black text available ![][done]
makes the CDI available
Sébastien MARQUE authored on 2017-03-23
67
  * CDI
adds OMI to PFD
Sébastien MARQUE authored on 2017-03-23
68
  * OMI
adds slipskid animation
Sébastien MARQUE authored on 2017-03-24
69
  * Slipskid animation
new var organistaion (and fi...
Sébastien MARQUE authored on 2017-03-26
70
  * Radio stack, including ID for NAV
update progress in README
Sébastien MARQUE authored on 2017-04-02
71
  * windows management: selectable items ![][done], modifiable items ![][done], scrolling ![][done]
add V-speeds bugs
Sébastien MARQUE authored on 2017-04-04
72
  * display of V-speeds in ruler: Vx, Vy, Vr and Vglide (specific for aircraft, see installation instruction)
add Vne Vspeed specific to a...
Sébastien MARQUE authored on 2017-04-04
73
  * some aircraft specific data to retrieve from aircraft XML files (VNE, etc)
README updated
Sébastien MARQUE authored on 2017-04-09
74
  * possibility to add a copilot's PFD, and other displays
75
  * EIS: separation for aircraft specifics (selected by the zkv1000 config)
PFD INSET map available
Sébastien MARQUE authored on 2017-04-19
76
  * Inset Map (PFD)
update README before merging
Sébastien MARQUE authored on 2017-03-20
77
* ![][90%]
TMR/REF available
Sébastien MARQUE authored on 2017-04-10
78
  * TMR/REF Timer ![][done], Vspeeds ![][done], minimums ![][pending] (don't understand the role of this)
adds AOA display
Sébastien MARQUE authored on 2017-04-15
79
  * angle of attack display (not sure about calculation): specific for each airplane (see Installation instructions below)
update README before merging
Sébastien MARQUE authored on 2017-03-20
80
  * Bearing needs some checks to be sure it shows the correct information
81
  * XPDR: emergency code depending of the country (eg.: 1200 for US, 7700 for Europe), should be set in settings
82
* ![][80%]
README updated
Sébastien MARQUE authored on 2017-04-09
83
  * single-prop EIS: texts displayed ![][done], animations for fuel ![][ongoing]
update README before merging
Sébastien MARQUE authored on 2017-03-20
84
* ![][70%]
improve README
Sébastien MARQUE authored on 2017-03-20
85
  * make booting animation visible ![][pending]
update README before merging
Sébastien MARQUE authored on 2017-03-20
86
* ![][60%]
configurable display size, v...
Sébastien MARQUE authored on 2017-04-15
87
  * NOT TESTED: add the posssibility to only use Nasal part of the instrument. This in case of a cockpit which already includes needed objects and animations for screens, knobs and buttons in its config files
navaids displayed with corre...
Sébastien MARQUE authored on 2017-04-18
88
  * ND and map display: synchronized tiles and navaids ![][done], range change ![][ongoing], map heads up ![][pending]
update README before merging
Sébastien MARQUE authored on 2017-03-20
89
* ![][50%]
90
  * EIS: animations for temperature for YaSim and JSBSim
91
* ![][40%]
92
  * use of [maketimer()](http://wiki.flightgear.org/Nasal_library#maketimer.28.29) instead of [settimer()](http://wiki.flightgear.org/Nasal_library#settimer.28.29) when possible
93
* ![][30%]
94
* ![][20%]
adds MFD page selection syst...
Sébastien MARQUE authored on 2017-04-13
95
  * Setting pages (MFD): pages/sub-pages selection via FMS knob ![][done], pages content implementation ![][ongoing]
update README before merging
Sébastien MARQUE authored on 2017-03-20
96
* ![][10%]
97
  * multikey for every part of the device (actually only power on)
98
* ![][0%] (TODO list, unsorted)
makes the CDI available
Sébastien MARQUE authored on 2017-03-23
99
  * CDI/GPS: scale depending of the flight phase
update README before merging
Sébastien MARQUE authored on 2017-03-20
100
  * Alerts
PFD INSET map available
Sébastien MARQUE authored on 2017-04-19
101
  * Map settings: declutter, range/zoom
102
  * TOPO map
103
  * Weather map
update README before merging
Sébastien MARQUE authored on 2017-03-20
104
  * Flight planning (MFD)
105
  * PFD settings
106
  * texture for some MFD buttons
107
  * rotation and zooming of online maps in-flight ![][pending]
navaids displayed with corre...
Sébastien MARQUE authored on 2017-04-18
108
  * replace the use of `clip` by a better system in map display (think also about INSET)
109
  * reorganise the mess in initialization phase (`showInitProgress` and `_showInitProgress`)
adds BARO settings
Sébastien MARQUE authored on 2017-03-20
110
  * VS guidance
111
  * VNAV
TMR/REF available
Sébastien MARQUE authored on 2017-04-10
112
  * scrolling lift in menus
update README before merging
Sébastien MARQUE authored on 2017-03-20
113
  * tutorials
adds AOA display
Sébastien MARQUE authored on 2017-04-15
114
  * make any Vspeed available (not only Vx, Vy, Vr and Vglide), depending of their presence in aircraft config
115
  * [touchable screen](http://wiki.flightgear.org/Canvas_Event_Handling)
update README before merging
Sébastien MARQUE authored on 2017-03-20
116
  * many more...
commit initial
Sébastien MARQUE authored on 2017-03-07
117

            
improve README
Sébastien MARQUE authored on 2017-03-20
118
# Installation
improves README
Sébastien MARQUE authored on 2017-04-19
119
Just `git clone https://sebmarque.hd.free.fr/git/seb/zkv1000` in your favorite Instrumentation-3d dir.  
120
Then somewhere in the XML configuration of your aircraft, put only few lines as described below
improve README
Sébastien MARQUE authored on 2017-03-20
121
## Create the `zkv1000` Nasal namespace
122
In the `<nasal>` place of your aircraft configuration
123

            
124
        <zkv1000>
125
            <file>Aircraft/Instruments-3d/zkv1000/zkv1000.nas</file>
126
        </zkv1000>
127

            
128
Actually this is where everything begins, please have a look at this code, it would help you to follow the script.
129

            
add V-speeds bugs
Sébastien MARQUE authored on 2017-04-04
130
## Set specific values for your aircraft
131
Specifics values for aircraft can be set via the aircraft configuration, in the `<instrumentation>` section, just add a section `<zkv1000>` and set here the needed values.
132

            
133
### Vspeeds
add Vne Vspeed specific to a...
Sébastien MARQUE authored on 2017-04-04
134
To see the Vspeeds bugs or the IAS background color change (Vne), set the corresponding V-speeds in knots by adding in your `<instrumentation><zkv1000>` section the following lines (here are the numbers for the Lancair-235, ![](https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Achtung-orange.svg/32px-Achtung-orange.svg.png) values are not to be used in real life).
add V-speeds bugs
Sébastien MARQUE authored on 2017-04-04
135
If not set, defaults to 999 knots
136

            
137
        <alerts>
138
          <Vx>99</Vx>
139
          <Vy>110</Vy>
140
          <Vr>65</Vr>
141
          <Vglide>80</Vglide>
add Vne Vspeed specific to a...
Sébastien MARQUE authored on 2017-04-04
142
          <Vne>170</Vne>
add V-speeds bugs
Sébastien MARQUE authored on 2017-04-04
143
        </alerts>
144

            
EIS can be aircraft specific
Sébastien MARQUE authored on 2017-04-04
145
### EIS
146
To tells the zkv1000 which kind of engines equip your aircraft, and the associated EIS
147

            
148
        <eis>
README updated
Sébastien MARQUE authored on 2017-04-09
149
          <type>single-prop</type>
EIS can be aircraft specific
Sébastien MARQUE authored on 2017-04-04
150
        </eis>
151

            
improves README
Sébastien MARQUE authored on 2017-04-19
152
Defaults to `none`, available entries are the `.nas` files located in `Nasal/EIS/` directory.  
153
If you want to add yours, just copy the `Systems/EIS/single-prop.svg`, modify it to fit your needs, and refer to it in a function named `displayClass.showEIS`, another very important function is `displayClass.updateEIS` (example in [Nasal/EIS/single-prop.nas](zkv1000/Nasal/EIS/single-prop.nas))
154

            
155
No matter of the EIS width, as the map size and center are computed relative to the EIS width automatically.
EIS can be aircraft specific
Sébastien MARQUE authored on 2017-04-04
156

            
adds AOA display
Sébastien MARQUE authored on 2017-04-15
157
### Angle Of Attack (AOA)
158
You can specify the stall AoA in order to display it in the dedicated display.
159

            
160
        <alerts>
161
          <stall-aoa>15</stall-aoa>
nicer AOA display
Sébastien MARQUE authored on 2017-04-16
162
          <approach-aoa>4</approach-aoa>
adds AOA display
Sébastien MARQUE authored on 2017-04-15
163
        </alerts>
164

            
improves README
Sébastien MARQUE authored on 2017-04-19
165
* Values are in degrees.
166
* If `<stall-aoa>` is not specified or equals to `0` (zero) the AOA display won't be accessible.
167
* The `<approach-aoa>` is optionnal, if present a blue marker is visible on AOA display (not in real GarminP1000)
adds AOA display
Sébastien MARQUE authored on 2017-04-15
168

            
improve README
Sébastien MARQUE authored on 2017-03-20
169
## 3D models
170
In the definition of your flightdeck (here are the values for the installation in the Lancair 235 in which I develop the device)
171
put it everywhere you want to
172

            
173
        <model>
adds the avaibility to have ...
Sébastien MARQUE authored on 2017-04-07
174
            <path>Aircraft/Instruments-3d/zkv1000/pfd-pilot.xml</path>
improve README
Sébastien MARQUE authored on 2017-03-20
175
            <offsets>
176
                <x-m> -0.023 </x-m>
177
                <y-m> -0.235 </y-m>
178
                <z-m> -0.028 </z-m>
179
            </offsets>
180
        </model>
181
        <model>
182
            <path>Aircraft/Instruments-3d/zkv1000/mfd.xml</path>
183
            <offsets>
184
                <x-m>  0.03  </x-m>
185
                <y-m>  0.06  </y-m>
186
                <z-m> -0.028 </z-m>
187
                <heading-deg> -15 </heading-deg>
188
            </offsets>
189
        </model>
190

            
adds the avaibility to have ...
Sébastien MARQUE authored on 2017-04-07
191
You can put as many devices as wanted, but generally they are two (PFD+MFD) or three (2 PFD+ 1 PFD), can be only one which is useful when you just want the PFD or the MFD in your cockpit.
192
The device are identified by a name, which should be unique unless they won't be independant.
193
This name is set by one of the property in the XML model file (`instrumentation/zkv1000/<NAME>/status`), which is a property telling if the device is switched off or not (or in reversionnary mode, later).
194
Actually there are only two "types of display": MFD or PFD, which is known by the first 3 letters of the name (case sensitive!)
195
Other devices as keyboard or non-display can also exists, as long as they don't have a `status` property...
196
Not sur I'm clear on this point though :)
add some information in READ...
Sébastien MARQUE authored on 2017-03-28
197

            
improves README
Sébastien MARQUE authored on 2017-04-19
198
## Map tiles origin
199
By defaults the maps tiles come from `https://maps.wikimedia.org`, type `osm-intl` (please read [https://www.wikimedia.org/wiki/Maps]()), but you can choose your favorite one if you've got one. I've tested `opentopomap.org` and `thunderforest.com` (my favourite).
200
You can tell the zkv1000 the tile server, type and eventually apikey by using `--prop:` option while starting FlightGear session:
201

            
202
In case of apikey (or whatever added at the en of the URL):
203

            
204
        --prop:/sim/online-tiles-server=tile.thunderforest.com
205
        --prop:/sim/online-tiles-type=landscape
206
        --prop:/sim/online-tiles-apikey=?apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
207

            
208
or if there is no type, just use type `/`:
209

            
210
        --prop:/sim/online-tiles-server=a.tile.opentopomap.org
211
        --prop:/sim/online-tiles-type=/
212

            
213
The only used protocol is `https` (check Nasal/map.nas).
214

            
improve README
Sébastien MARQUE authored on 2017-03-20
215
## Switch it up
216
You can use the multikey (souvenirs, thanks to Melchior having that much expended this feature years ago :)) service by typing:
217
`:zo`
218

            
219
The `:z` will be the multikey entry for all multikeys of the zkv1000.
220

            
221
1. If you see a single red dot under the `ZKV100O xxx init` message (xxx = MFD or PFD), this is likely the sim is paused (press `p` by default to stop the pause).
222
1. If you see multiple dots under the `ZKV1000 xxx init` message, something wrong happened, time to check console
223
1. If you see only black screen on one of the screen, something really wrong happened, time to check console
224

            
225
# Documentation
update README before merging
Sébastien MARQUE authored on 2017-03-20
226
* [Canvas in FG](http://wiki.flightgear.org/Category:Canvas)
mise à jour du README
Sébastien MARQUE authored on 2017-03-07
227
* [Nasal](http://wiki.flightgear.org/Category:Nasal)
update README before merging
Sébastien MARQUE authored on 2017-03-20
228
* the guides used to create the scenario from [Garmin website](http://support.garmin.com/support/manuals/searchManuals.faces)
liens directs vers la doc of...
Sébastien MARQUE authored on 2017-03-08
229
    * [G1000 Pilot’s Guide for the Diamond DA42 (v0370.22)](http://static.garmin.com/pumac/190-00406-07_0B_Web.pdf) *(94 pages)*
230
    * [Pilot's Guide, Cirrus Perspective, SR2x (v0764.30)](http://static.garmin.com/pumac/190-00820-11_A.pdf) *(752 pages)*