Accueil
Accueil

Bienvenue invité ( Connexion | Inscription )

21 Pages V « < 5 6 7 8 9 > »   
Reply to this topicStart new topic
> [LUA] Télécommander son avion
Maraudeur
post 15 Jan 2007, 19:32
Message #61




Commandant de la 92nd Kodiak AF

Indicatif : JR-22
Messages : 4,204
Inscrit : 4/12/04
Lieu : Monnaie
Membre n° 17

Une petite mise à jour de la doc en français avec quelques correctifs et une mise en page plus facile...

Fichier(s) joint(s)
Fichier joint  Tutoriel_Gauge_Composer.doc ( 63 Ko ) Nombre de téléchargements: 756

--------------------
Image IPB
Cerbro Tvo Utere! Sin Minvs, Parietes Asperget...

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lynx
post 15 Jan 2007, 22:04
Message #62






Indicatif : BS-05
Messages : 2,417
Inscrit : 23/03/05
Lieu : FONTENAY-SOUS-BOIS
Membre n° 108

Trés bien, mais pour moi une page blanche en 3ème position... gap.gif

--------------------
3rdlynx.ddns.net

Serveur Discord Perso/Mission Editor : 965280400698146836

The agnostic dislexic insomniac: lies awake in bed at night wondering if there really is a dog.

T-IR 5, THRUSTMASTER WARTHOG +Virpil WAR BRD, Pilotseat GameRacer Pro, Oculus Rift S+ SIMSHAKER JETPAD(+ MFD's (démontés) )

Config
+ MSI 6950XT 340W
+ be quiet! Pure Rock 2
+ Mushkin Redline 64 Go 2 x 32 Go DDR4 3600 MHz
+ AMD Ryzen 7 5800X3D, 3,4 GHz (4,5 GHz Turbo Boost)
+ be quiet! Pure Power 11 FM 1000W,
+ SAMSUNG 980 PRO, 2 To, SSD
+ ASUS PRIME X570-P,
+ Sharkoon RGB LIT 100.

Image IPB

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Maraudeur
post 15 Jan 2007, 23:33
Message #63




Commandant de la 92nd Kodiak AF

Indicatif : JR-22
Messages : 4,204
Inscrit : 4/12/04
Lieu : Monnaie
Membre n° 17

Et comme ça?Fichier joint  Tutoriel_Gauge_Composer.pdf ( 43,77 Ko ) Nombre de téléchargements: 3916

--------------------
Image IPB
Cerbro Tvo Utere! Sin Minvs, Parietes Asperget...

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lynx
post 16 Jan 2007, 14:43
Message #64






Indicatif : BS-05
Messages : 2,417
Inscrit : 23/03/05
Lieu : FONTENAY-SOUS-BOIS
Membre n° 108

Trés bien pour moi, je me replonge dans le SIOC maintenant... crash.gif
Tu as fais joujou avec Gauge Composer, mon cher Marau ?

--------------------
3rdlynx.ddns.net

Serveur Discord Perso/Mission Editor : 965280400698146836

The agnostic dislexic insomniac: lies awake in bed at night wondering if there really is a dog.

T-IR 5, THRUSTMASTER WARTHOG +Virpil WAR BRD, Pilotseat GameRacer Pro, Oculus Rift S+ SIMSHAKER JETPAD(+ MFD's (démontés) )

Config
+ MSI 6950XT 340W
+ be quiet! Pure Rock 2
+ Mushkin Redline 64 Go 2 x 32 Go DDR4 3600 MHz
+ AMD Ryzen 7 5800X3D, 3,4 GHz (4,5 GHz Turbo Boost)
+ be quiet! Pure Power 11 FM 1000W,
+ SAMSUNG 980 PRO, 2 To, SSD
+ ASUS PRIME X570-P,
+ Sharkoon RGB LIT 100.

Image IPB

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Maraudeur
post 16 Jan 2007, 17:28
Message #65




Commandant de la 92nd Kodiak AF

Indicatif : JR-22
Messages : 4,204
Inscrit : 4/12/04
Lieu : Monnaie
Membre n° 17

Ben non pas vraiment encore, mais sans doute d'ici à la fin de semaine sad.gif

--------------------
Image IPB
Cerbro Tvo Utere! Sin Minvs, Parietes Asperget...

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lynx
post 16 Jan 2007, 18:00
Message #66






Indicatif : BS-05
Messages : 2,417
Inscrit : 23/03/05
Lieu : FONTENAY-SOUS-BOIS
Membre n° 108

Moi, j'ai beaucoup de mal à comprendre la liaison Lua==>SIOC==>Gauge Composer...

Donc, j'ai commencé à produire des instruments de façon graphique, mais je ne sais pas quelles règles leur appliquer...

Ce message a été modifié par Lynx - 16 Jan 2007, 18:04.

--------------------
3rdlynx.ddns.net

Serveur Discord Perso/Mission Editor : 965280400698146836

The agnostic dislexic insomniac: lies awake in bed at night wondering if there really is a dog.

T-IR 5, THRUSTMASTER WARTHOG +Virpil WAR BRD, Pilotseat GameRacer Pro, Oculus Rift S+ SIMSHAKER JETPAD(+ MFD's (démontés) )

Config
+ MSI 6950XT 340W
+ be quiet! Pure Rock 2
+ Mushkin Redline 64 Go 2 x 32 Go DDR4 3600 MHz
+ AMD Ryzen 7 5800X3D, 3,4 GHz (4,5 GHz Turbo Boost)
+ be quiet! Pure Power 11 FM 1000W,
+ SAMSUNG 980 PRO, 2 To, SSD
+ ASUS PRIME X570-P,
+ Sharkoon RGB LIT 100.

Image IPB

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Tarochi
post 17 Jan 2007, 01:25
Message #67



 


Messages : 110
Inscrit : 31/12/06
Membre n° 1,234

Lecreole.
Dans ton export.lua, comme est que tu faites pour envoayer les variables du velocite,hauture, en resume la exportation dus parametres du vol?

tu peuves nous montrer un example?

Je peuve les envier a SIOC en utilissant seulement le socket client, mais avec ton script je ne peuve pas crash.gif crash.gif


Tarochi scratch.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lecreole
post 17 Jan 2007, 14:33
Message #68






Messages : 379
Inscrit : 13/04/05
Lieu : 74100 Annemasse
Membre n° 125

CITATION(Tarochi @ 17 Jan 2007, 03:25) *

Lecreole.
Dans ton export.lua, comme est que tu faites pour envoayer les variables du velocite,hauture, en resume la exportation dus parametres du vol?

tu peuves nous montrer un example?

Je peuve les envier a SIOC en utilissant seulement le socket client, mais avec ton script je ne peuve pas crash.gif crash.gif
Tarochi scratch.gif

J'ai pas compris exatement ta question blushing.gif
Mais voici un example pour envoyer ta vitesse sur un groupe de 3 afficheurs 7 segments si ça peut t'aider :
SIOC
CITATION

Var 0501, name SPEED_DIS, Link IOCARD_DISPLAY, Digit 0, Numbers 3 // Affichage Vitesse
.......
Var 0006, name SPEED_STATE, Link IOCP, Offset 6, Value 0 // IOCP_VITESSE
{
&SPEED_DIS = &SPEED_STATE
}
.....


CITATION

function LuaExportBeforeNextFrame()
if serveur then
l, e = serveur:receive()
if l then
log("Reçoit:"..l)
TraitementData(l)
end
end
_ias = math.floor(LoGetIndicatedAirSpeed()*1.94384449)

vitesse = "Arn.Resp:6=".._ias.."\n"

--log(vitesse)
socket.try(client:send(vitesse))
end


Ce message a été modifié par Lecreole - 17 Jan 2007, 14:41.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Tarochi
post 17 Jan 2007, 15:32
Message #69



 


Messages : 110
Inscrit : 31/12/06
Membre n° 1,234

_rpl =LoGetEngineInfo().RPM.left
_rpr =LogetEngineInfo().RPM.right


power_left = "Arn.Resp:6=".._rpl.."\n"
power_right = "Arn.Resp:7=".._rpr.."\n"

--log(power_left,power_right)

socket.try(client:send(power_left,power_right))
end



Var 0006, name RPM_LEFT Link IOCP, Offset 6, Value 0 // IOCP_RPM_LEFT

Var 0007, name RPM_RIGHT Link IOCP, Offset 7, Value 0 // IOCP_RPM_RIGHT

est posible?

Ce message a été modifié par Tarochi - 17 Jan 2007, 16:00.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lecreole
post 17 Jan 2007, 18:04
Message #70






Messages : 379
Inscrit : 13/04/05
Lieu : 74100 Annemasse
Membre n° 125

Non, mais presque
Le language IOCP n'accepte que les Nombres entiers
Donc
-- si LoGetEngineInfo().RPM.left=70.15 et LogetEngineInfo().RPM.right=70.5
_rpl = math.floor(LoGetEngineInfo().RPM.left) -- 70
_rpr = math.floor(LogetEngineInfo().RPM.right) -- 70

socket.try(client:send(string.format("Arn.Resp:6=%s:7=%s",_rpl,_rpr))) -- Arn.Resp:6=70:7=70 et non Arn.Resp:6=70\nArn.Resp:7=70\n
ou
power_left = ":6=".._rpl
power_right = ":7=".._rpr
socket.try(client:send("Arn.Resp"..power_left..power_right))


end

Je prefère la premiére solution tongue.gif

Si tu veux plus de précision :

_rpl = math.floor(LoGetEngineInfo().RPM.left*100) -- 7015
_rpr = math.floor(LogetEngineInfo().RPM.right*100) -- 7050

socket.try(client:send(string.format("Arn.Resp:6=%s:7=%s",_rpl,_rpr))) -- Arn.Resp:6=7015:7=7050

end

tu divise par 100 dans le sioc et tu aura par example 70.15 et 70.50 thumbsup.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

21 Pages V « < 5 6 7 8 9 > » 
Reply to this topicStart new topic
2 utilisateur(s) sur ce sujet (2 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :
 

Haut de page · Retour à l'accueil · Contacter le Webmestre Nous sommes le : 13/05/24 - 07:26