Can someone post links to outgauge libs? please thanks
import pyinsim
def outgaugePacket(out, og):
pass # Do something with packet.
out = pyinsim.OutGauge()
out.bind(pyinsim.ISP_OUTGAUGE, outgaugePacket)
out.start('localhost', 30000)
out.run()
Imports FullMotion.LiveForSpeed.InSim
Imports FullMotion.LiveForSpeed.InSim.EventHandlers
Imports FullMotion.LiveForSpeed.InSim.Events
Imports FullMotion.LiveForSpeed.InSim.Enums
'class declaration, etc...
Dim WithEvents handler As InSimHandler
'connect to insimhandler procedure:
Sub Connect()
handler = New InSimHandler(False)
handler.Configuration.LFSHost = "127.0.0.1"
handler.Configuration.LFSHostPort = 30000
handler.Configuration.ReplyPort = 30001
handler.Configuration.UseSplitMessages = true
handler.Configuration.UseTCP=true
handler.Configuration.Local=True
handler.Configuration.ProgramName="outgauge_xmpl"
handler.Initialize()
'start outgauge (there is a handler.Stopoutgauge() method too :-))
handler.StartOutGauge(10)
End Sub
'this is the outgauge eventhandler:
Sub outGauge_Updated(byval sender as System.Object , byval gauge as FullMotion.LiveForSpeed.OutGauge.Events.Gauge) handles handler.GaugeUpdated
'the gauge object has the outgauge datas
End Sub