Problème air manager

Gauge Composer / Project Magenta / Reality XP, FlightDecksoft, etc...

Re: Problème air manager

Messagede tabar57 » Sam 8 Juil 2017 11:29

SUPER, çà marche sur le pc esclave pour l'instant.
Je vais voir cet aprem pour installer sur le serveur et essayer de faire fonctionner cet EADI EFIS 84 car c'est celui là qui m'intéresse
T'as raison Jacques (RTFM) mais à mon corps défendant çà me permet de discuter avec mes copains ecroulerire en tant qu'ancien informaticien j'ai honte blemeblanc

Fab: je te rassure je garde tes jauges car elles sont vraiment nickels et bien plus belles, maintenant il va falloir que je les reinstallent sur le PC win10 mais je suis assez confiant là dessus

Je vous remercie infiniment pour votre aide ( tous ceux qui m'ont répondu , j'oublie personne chouettedoights ) merci affiche merci affiche merci affiche pas évident dans cette période de vacances

Je vous tiens au courant

Cordialement

Bernard
Mon blog de construction : http://tabar57.blog4ever.com
Hémicockpit de Beechcraft B200 ( de FlightOne ) P3DV4.5 et 2 PC en réseau W7 64 bits et W10, cartes OC et FDbus, vibreur et yoke rdf de BFFsimulation, météo réelle asp4
Avatar de l’utilisateur
tabar57
 
Messages: 3651
Inscription: 29/12/10
Localisation: Dans ma cabine en Lorraine

Re: Problème air manager

Messagede JacquesZ » Sam 8 Juil 2017 11:39

Content que ça aie résolu ton problème! Tu vois on s'est pas contenté du RTFM! ecroulerire

Sinon, appliques le patch du code, pour permettre à l'EADI de fonctionner sur FSX (en mode dégradé, certes, mais je vais me pencher sur son cas....)

L'idéal serait d'avoir le manuel du vrai Honeywel installé sur le B200 pour avoir une idée des fonctions.

Jacques
Ma chaîne YouTube Tutos sur l’A320 par un Pilote de Ligne: https://youtube.com/channel/UCljftuoKBcgeR-WBgYJpuoA
Avatar de l’utilisateur
JacquesZ
 
Messages: 2848
Inscription: 24/11/10

Re: Problème air manager

Messagede algue14 » Sam 8 Juil 2017 12:09

JacquesZ a écrit:Sinon, appliques le patch du code, pour permettre à l'EADI de fonctionner sur FSX (en mode dégradé, certes, mais je vais me pencher sur son cas....)


heu...t'es sûr que ça peut marcher juste comme ça sans faire appel aux variables FSX (les fsx_variable_subscribe) et sans adapter les fonctions ??
T'es optimiste là!!
A+

Alain
Avatar de l’utilisateur
algue14
 
Messages: 1626
Inscription: 20/04/09
Localisation: Caen ; Normandie

Re: Problème air manager

Messagede JacquesZ » Sam 8 Juil 2017 12:18

Oui, car en fait, il y a déjà dans le code un début de conversion pour FSX.

Et plus précisément il ya ça:
Code: Tout sélectionner
fsx_variable_subscribe("ATTITUDE INDICATOR BANK DEGREES", "radians",
                  "ATTITUDE INDICATOR PITCH DEGREES", "radians",
                new_attitude_fsx)


Ce qui veut dire qu'il récupère déjà les données de l'horizon.
La conversion n'était pas bonne au niveau de la fonction new_attitude_fsx et ne passait pas le bon nombre de paramètres attendus, d'où l'erreur Lua ligne 42 initiale que j'ai corrigée.
Comme je l'ai dit c'est une version très basique pour FSX pour l'instant, mais je vais m'occuper de son cas lunettesnoires .

Jacques
Ma chaîne YouTube Tutos sur l’A320 par un Pilote de Ligne: https://youtube.com/channel/UCljftuoKBcgeR-WBgYJpuoA
Avatar de l’utilisateur
JacquesZ
 
Messages: 2848
Inscription: 24/11/10

Re: Problème air manager

Messagede algue14 » Sam 8 Juil 2017 12:25

Ah pardon j’étais sur le code de l'EADI beechcraft 1900d
J'avais pas vu ce bout de code sur le 84 blemeblanc
A+

Alain
Avatar de l’utilisateur
algue14
 
Messages: 1626
Inscription: 20/04/09
Localisation: Caen ; Normandie

Re: Problème air manager

Messagede tabar57 » Sam 8 Juil 2017 14:10

Bon,

J'ai promis de vous tenir au courant chouettedoights

T'es trop balaize Jacques, chapeau bas applaublanc applaublanc , çà fonctionne alors si tu peux me rajouter ce qui manque je te promets pas de t'embrasser sur la bouche mais je serai reconnaissant

merci affiche

Bernard
Mon blog de construction : http://tabar57.blog4ever.com
Hémicockpit de Beechcraft B200 ( de FlightOne ) P3DV4.5 et 2 PC en réseau W7 64 bits et W10, cartes OC et FDbus, vibreur et yoke rdf de BFFsimulation, météo réelle asp4
Avatar de l’utilisateur
tabar57
 
Messages: 3651
Inscription: 29/12/10
Localisation: Dans ma cabine en Lorraine

Re: Problème air manager

Messagede JacquesZ » Sam 8 Juil 2017 14:22

Je ne mange pas de ce pain là, moi monsieur. nondoightblanc

Par contre sans un bout de doc sur le Rockwell EADI 84, ça va être compliqué d'implémenter les fonctions attendues comme l'instrument original. Je vois déjà que les couleurs de l'instrument ne sont pas bonnes, à priori...
Il faudra implémenter aussi le fait qu'il s'active avec l'avionics master sur ON, ce qui ne semble pas être le cas.
Il y a également une séquence d'autotest à implémenter.

Donc si tu as des photos, vidéos et doc du vrai EADI84, je suis preneur.

Pour le EHSI, par contre faudra pas espérer des miracles, le FPL ne peut être affiché par Air Manager, il n'y a pas de fonctions pour ça.

Jacques
Ma chaîne YouTube Tutos sur l’A320 par un Pilote de Ligne: https://youtube.com/channel/UCljftuoKBcgeR-WBgYJpuoA
Avatar de l’utilisateur
JacquesZ
 
Messages: 2848
Inscription: 24/11/10

Re: Problème air manager

Messagede JacquesZ » Sam 8 Juil 2017 14:35

Voilà déjà les barres du FD qui sont rajoutées.
A tester au fur et à mesure...*

Pour ce faire, je te conseille de créer un Clone de l'EADI existant, en cliquant sur l'icone Clone en mode Create dans Air Manager.
Puis de remplacer entièrement le code de la jauge clonée par celui-ci. *
Comme on ne peut pas publier la jauge sur le store, ça prend des plombes (c'est fait manuellement) on va faire comme ça.

Code: Tout sélectionner
-- Collins Rockwell EFIS 84 EADI --
---------------------------------------------
--        Load and display images          --
---------------------------------------------
img_horizon1 = img_add("Horizon1.png", 0, 0, 1200, 1800)
img_horizon = img_add("Horizon.png", 0, 0, 600, 900)
img_pitchAtt = img_add("Pitch_Attitude.png", 0, 0, 600, 900)
--img_hViewport = img_add("viewport.png", -150, -150, 900, 900)
img_skypoint = img_add_fullscreen("Skypointer.png")
img_rollAtt = img_add_fullscreen("Roll_Attitude.png")
img_fltDir = img_add_fullscreen("Director.png")
img_add_fullscreen("Aircraft_Bars.png")
img_add_fullscreen("CRT_border.png")
img_pitch_up = img_add_fullscreen("Pitch_Up.png")
img_pitch_down = img_add_fullscreen("Pitch_Down.png")
img_om = img_add_fullscreen("OM.png")
img_mm = img_add_fullscreen("MM.png")
img_cdi = img_add("CDI.png", 0, -150, 600, 900)
img_glidepath = img_add("Glidepath.png", 0, -150, 600, 900)
img_GSvertpath = img_add("GSvertpath.png", 0, 0, 600, 900)
img_LLZhorpath = img_add("LLZhorpath.png", 0, -150, 600, 900)

txt_radio_minima = txt_add(" ", "-fx-font-family: arial; -fx-font-size:17px; -fx-fill: cyan; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 460, 500, 200, 200)
txt_dh = txt_add(" ", "-fx-font-family: arial; -fx-font-size:25px; -fx-fill: yellow; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 180, 235, 200, 200)
--visible(txt_radio_minima, false)
blink = true

txt_active_lateral = txt_add(" ", "-fx-font-family: arial; -fx-font-size:17px; -fx-fill: lightgreen; -fx-font-weight:normal; -fx-text-alignment: RIGHT;", 65, 65, 200, 200)
txt_active_vertical = txt_add(" ", "-fx-font-family: arial; -fx-font-size:17px; -fx-fill: lightgreen; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 330, 65, 200, 200)
txt_second_arm_vertical = txt_add(" ", "-fx-font-family: arial; -fx-font-size:17px; -fx-fill: white; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 450, 80, 200, 200)
txt_autopilot = txt_add(" ", "-fx-font-family: arial; -fx-font-size:17px; -fx-fill: white; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 90, 95, 200, 200)
txt_yawdamper = txt_add(" ", "-fx-font-family: arial; -fx-font-size:17px; -fx-fill: white; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 90, 110, 200, 200)




---------------
-- Functions --
---------------

function new_attitude(roll, pitch, dRoll, dPitch, dMode)

-- Roll outer ring and background
   -- roll = var_cap(roll, -90, 90)
       
-- Roll horizon
    img_rotate(img_horizon1  , roll * -1)
    img_rotate(img_horizon  , roll * -1)
   img_rotate(img_pitchAtt, roll * -1)
   --img_rotate(img_hViewport, roll * -1)
   img_rotate(img_skypoint, roll * -1)
   
-- Move horizon pitch
    pitch = var_cap(pitch, -90, 90)
    radial = math.rad(roll * -1)
    x = -(math.sin(radial) * pitch * 5) --3
    y = (math.cos(radial) * pitch * 5)
   img_move(img_horizon1, -300, y-600, nil, nil)
    img_move(img_horizon, x, y-150, nil, nil)
   img_move(img_pitchAtt, x, y-150, nil, nil)
   viewport_rect(img_pitchAtt, 200, 225, 200, 150)
   --img_move(img_hViewport, x-150, y-150, nil, nil)
   
-- Pull up//Pitch down arrows
   img_rotate(img_pitch_down, roll * -1)
   img_rotate(img_pitch_up, roll * -1)

if pitch >= 30 then
   visible(img_pitch_down, true)
   else
   visible(img_pitch_down, false)
   end
   
if pitch <= -20 then
   visible(img_pitch_up, true)
   else
   visible(img_pitch_up, false)
   end
   
-- Move director
   dPitch = var_cap(dPitch, -90, 90)
   dRadial = math.rad(dRoll * -1)
   dX = (math.sin(dRadial) * (dPitch - pitch) * 5)
   dY = (math.cos(dRadial) * (pitch - dPitch) * 5)
   img_rotate(img_fltDir, (dRoll * 1) - roll)
   img_move(img_fltDir, nil, dY, nil, nil)
   
-- Director Mode
   if dMode == 0 then
   visible(img_fltDir, false)
   else
   visible(img_fltDir, true)
   end
   
   
   
end


function new_marker_beacons(outer_marker, middle_marker, inner_marker)

if outer_marker == 1 then
   visible(img_om, true)
   else
   visible(img_om, false)
   end
   
if middle_marker == 1 then
   visible(img_mm, true)
   else
   visible(img_mm, false)
end

end

txt_add("DH", "-fx-font-size:17px; -fx-font-family:Arial; -fx-fill: cyan; -fx-font-weight:normal; -fx-text-alignment:left;", 425, 500, 150, 100)
txt_radio_height = txt_add(" ", "-fx-font-family: arial; -fx-font-size:30px; -fx-fill: cyan; -fx-font-weight:normal; -fx-text-alignment: LEFT;", 458, 470, 200, 200)

timer = timer_start(0, 100, timer_blink)

function timer_blink()

blink = not blink

end

function new_radio_height(radalt, radio_minima)

txt_set(txt_radio_minima, radio_minima)

--DH annunciation

if ((radalt - radio_minima) <= 0) then
txt_set(txt_dh, "DH")
visible(txt_dh, true)

else
visible(txt_dh, false)
  end



if ((radalt - radio_minima) <= 50) then

visible(txt_radio_height, blink)
radalt = var_round(radalt,-1)

end
 
 if ((radalt - radio_minima) > 50 and (radalt - radio_minima) < 2500) then

visible(txt_radio_minima, true)
radalt = var_round(radalt,-2)

end

if radalt > 2500 then

visible(txt_radio_height, false)

else

--visible(txt_radio_height, true)

end

txt_set(txt_radio_height, radalt)

end

function lateral_mode(hsi_mode, hdg_mode, nav_mode, fd_mode, yd_mode)


--visible(txt_active_lateral, false)

if hdg_mode == 0 and nav_mode == 0 then

visible(txt_active_lateral, false)

  end
 
if hdg_mode == 2 then
txt_set(txt_active_lateral, "HDG")
visible(txt_active_lateral, true)

end

if nav_mode == 2 and hsi_mode == 0 then
txt_set(txt_active_lateral, "NAV1")
visible(txt_active_lateral, true)

  end
 
if nav_mode == 2 and hsi_mode == 1 then
txt_set(txt_active_lateral, "NAV2")
visible(txt_active_lateral, true)

  end
 
if nav_mode == 2 and hsi_mode == 2 then

txt_set(txt_active_lateral, "GPS")
visible(txt_active_lateral, true)

  end
 
  if fd_mode == 0 then
  visible(txt_active_vertical, false)
 
  end
 
if fd_mode == 0 or 1 then
visible(txt_autopilot, false)
  end
 
if fd_mode == 2 then
txt_set(txt_autopilot, "AP")
visible(txt_autopilot, true)

  end
 
if yd_mode == 0 then
visible(txt_yawdamper, false)
  end
 
if yd_mode == 1 then
txt_set(txt_yawdamper, "YD")
visible(txt_yawdamper, true)

  end

end

function vertical_mode(gs_mode, alt_mode, vs_mode, ias_mode, ga_mode, pitch_mode)

if gs_mode and alt_mode and vs_mode and ias_mode and ga_mode and pitch_mode == 0 then

visible(txt_active_vertical, false)

end

if alt_mode == 1 then

txt_set(txt_second_arm_vertical, "ALT ARM")
visible(txt_second_arm_vertical, true)
else
visible(txt_second_arm_vertical, false)


  end
 
 if gs_mode == 2 then

txt_set(txt_active_vertical, "GS")
visible(txt_active_vertical, true)

elseif alt_mode == 2 then

txt_set(txt_active_vertical, "ALT")
visible(txt_active_vertical, true)

 
elseif vs_mode == 2 then

txt_set(txt_active_vertical, "VS")
visible(txt_active_vertical, true)

  --end
 
elseif ias_mode == 2 then

txt_set(txt_active_vertical, "IAS")
visible(txt_active_vertical, true)

  --end
 
elseif ga_mode == 2 then

txt_set(txt_active_vertical, "GA")
visible(txt_active_vertical, true)

  --end
 
elseif pitch_mode == 2 then

txt_set(txt_active_vertical, "PTCH")
visible(txt_active_vertical, true)

  --end

  else
  visible(txt_active_vertical, false)

end
end

function vertHorPath(gFlag, glideFlagMove, vFlag, cdiFlagMove)

if gFlag == 1 then
img_visible(img_GSvertpath, true)
gY = (glideFlagMove * 28) - 150
img_move(img_GSvertpath, nil, gY, nil, nil)
  end
 
if gFlag == 0 then
img_visible(img_GSvertpath, false)
end
 
if vFlag == 1 then

img_visible(img_LLZhorpath, true)
gX = cdiFlagMove * 41
img_move(img_LLZhorpath, gX, nil, nil, nil)
  else
img_visible(img_LLZhorpath, false)

  end

end




function new_attitude_fsx(roll, pitch,FDRoll,FDPitch,FDmode)
   fd_mode=fif(FDmode,1,0)
   new_attitude(roll * -57, pitch * -37,FDRoll,FDPitch,fd_mode)

end


-------------------
-- Bus subscribe --
-------------------
xpl_dataref_subscribe("sim/cockpit2/gauges/indicators/roll_AHARS_deg_pilot", "FLOAT",
                 "sim/cockpit2/gauges/indicators/pitch_AHARS_deg_pilot", "FLOAT",
                 "sim/cockpit2/autopilot/flight_director_roll_deg", "FLOAT",
                 "sim/cockpit2/autopilot/flight_director_pitch_deg", "FLOAT",
                 "sim/cockpit2/autopilot/flight_director_mode", "INT", new_attitude)
                
fsx_variable_subscribe("ATTITUDE INDICATOR BANK DEGREES", "Radians",
                  "ATTITUDE INDICATOR PITCH DEGREES", "Radians",   
                  "AUTOPILOT FLIGHT DIRECTOR BANK","Radians",
                  "AUTOPILOT FLIGHT DIRECTOR PITCH","Radians",
                   "AUTOPILOT FLIGHT DIRECTOR ACTIVE","Boolean",new_attitude_fsx)
            

xpl_dataref_subscribe("sim/cockpit2/radios/indicators/outer_marker_lit", "INT",
                 "sim/cockpit2/radios/indicators/middle_marker_lit", "INT",
                 "sim/cockpit2/radios/indicators/inner_marker_lit", "INT", new_marker_beacons)
                
xpl_dataref_subscribe("sim/cockpit2/gauges/indicators/radio_altimeter_height_ft_pilot", "FLOAT",
                      "sim/cockpit/misc/radio_altimeter_minimum", "FLOAT",   new_radio_height)
                
xpl_dataref_subscribe("sim/cockpit2/radios/actuators/HSI_source_select_pilot", "INT", -- 0 = nav1, 1 = nav2, 2 = GNSS
                 "sim/cockpit2/autopilot/heading_status", "INT", -- Autopilot Heading Status. 0=off,1=armed,2=captured
                 "sim/cockpit2/autopilot/nav_status", "INT",     -- Autopilot Nav status
                 "sim/cockpit/autopilot/autopilot_mode", "INT", -- The autopilot master mode (off=0, flight director=1, on=2)
                 "sim/cockpit/switches/yaw_damper_on", "INT",
                  lateral_mode)
                  
xpl_dataref_subscribe("sim/cockpit2/autopilot/glideslope_status", "INT",
                 "sim/cockpit2/autopilot/altitude_hold_status", "INT",
                      "sim/cockpit2/autopilot/vvi_status", "INT",
                 "sim/cockpit2/autopilot/speed_status", "INT",
                 "sim/cockpit2/autopilot/TOGA_status", "INT",
                 "sim/cockpit2/autopilot/pitch_status", "INT",
                 vertical_mode)
                
xpl_dataref_subscribe("sim/cockpit2/radios/indicators/hsi_display_vertical_pilot", "INT",
                      --"sim/cockpit2/radios/indicators/hsi_flag_glideslope_pilot", "INT",
                      "sim/cockpit2/radios/indicators/hsi_vdef_dots_pilot", "FLOAT",
                 "sim/cockpit2/radios/indicators/hsi_display_horizontal_pilot", "INT",
                 "sim/cockpit2/radios/indicators/hsi_hdef_dots_pilot", "FLOAT",
                 vertHorPath)


Jacques
Ma chaîne YouTube Tutos sur l’A320 par un Pilote de Ligne: https://youtube.com/channel/UCljftuoKBcgeR-WBgYJpuoA
Avatar de l’utilisateur
JacquesZ
 
Messages: 2848
Inscription: 24/11/10

Re: Problème air manager

Messagede tabar57 » Sam 8 Juil 2017 17:26

Cool Jacques, testé sur le pc client avec fsx en local, çà marche, j'ai le chevron rose qui s'affiche bien merci affiche
Par contre je n'ai pas encore réussi à faire fonctionner cet Air manager en client de la machine principale murrouge
Bonne nouvelle quand même, les jauges de Fabien fonctionnent après m'être battu quelques heures avec fsuipc, widefs wideclient et j'en passe.
Comme un fait ex-prêt, la machine XP qui m'affichait le tdb gauche est en train de lâcher, ou bien elle sent sa mort prochaine ou bien c'est la chaleur murrouge

Cordialement

Bernard
Mon blog de construction : http://tabar57.blog4ever.com
Hémicockpit de Beechcraft B200 ( de FlightOne ) P3DV4.5 et 2 PC en réseau W7 64 bits et W10, cartes OC et FDbus, vibreur et yoke rdf de BFFsimulation, météo réelle asp4
Avatar de l’utilisateur
tabar57
 
Messages: 3651
Inscription: 29/12/10
Localisation: Dans ma cabine en Lorraine

Re: Problème air manager

Messagede fab » Sam 8 Juil 2017 18:29

tabar57 a écrit:... les jauges de Fabien fonctionnent après m'être battu quelques heures avec fsuipc, widefs wideclient et j'en passe.


Bonne nouvelle !

Dès qu'il y a des machines en réseau, les protections jouent leur rôle et avec les attaques de virus récentes, c'est pas fini de se durcir !
Avatar de l’utilisateur
fab
 
Messages: 4414
Inscription: 26/12/12
Localisation: Roubaix

PrécédenteSuivante

Retourner vers Add-Ons d'instruments sur un ou plusieurs PC





Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 6 invités

cron