Jump to content

MKay

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by MKay

  1. 1.5.5, but I have read the changelog and there is nothing in it which leads me to the assumption it is not fixed nor even on their radar.
  2. Hi, I think I found a little bug. When you start in a fresh A/C the position on the knee-board is correct. When you rearm, right when the ground chief answers "rearming complete" the position on the knee-board changes. At this point the position is wrong, actually only the E/W changes. Example initial position in Kutaisi is 44 E, after rearm it shows 34 E. Tried this a couple of times and it happens every time (not only for me but friends as well). This might be worth checking out. Thanks, Mkay
  3. MKay

    Mirage Export LUA

    Hi, I am currently trying to build a remote INS application for the Mirage. I am using the export.lua to do inputs to the INS (which works great so far). Since I want to also display the INS selector knob I want to read the position of the knob, this is where I fail. I read after getting the device with "GetDevice(9)" (9 is the PCN Nav) I could perform a get_argument_value. Sadly there is no function for this nor any other that sounds like it would do the job. Anyone knows of a way to read switch positions in the export lua? Thanks and love the module :) MKay
  4. Figured it out. The receive method reads all data from the socket until reaching a Line Feed character. So I needed to pass a "\n" at the end of my send message. Works all fine now.
  5. Hello I am currently working on a little application which communicates with dcs. I hooked up a tcp socket in the export lua, which sends every second a a few infos to the application. This works all fine. Now I want to send data from the application to the export.lua and I am stuck. I debugged the application with an external tcp client that communicates with my app and it received the data all fine, its just export.lua which ignores it. Here is a little of my code (step is called on every LuaExportAfterNextFrame): mkay.step = function() local ct = LoGetModelTime(); if(mkay.nextStep <= ct) then mkay.nextStep = ct + 1; local val = list_indication(10); local sp = splitPCNData(val); local s = JSON:encode(sp):gsub("\n","").."\n"; local c1, c2, c3 = mkay.con:send(s) if c1 then else if c3 == 0 then if c2 == "closed" then mkay.fo:write("c2 - ", "\n"); mkay.con = socket.tcp(); mkay.con:settimeout(.01); end mkay.con:connect(mkay.host, mkay.port); mkay.fo:write("c3 - ", "\n"); end end end local line, err = mkay.con:receive(); if err then else mkay.fo:write("received", "\n"); local msg = line; local cmd = string.sub(msg,1,1); if(cmd == "D") then mkay.fo:write(msg, "\n"); local args = StrSplit(string.sub(msg,2),","); local dev = GetDevice(args[1]); if(type(dev) == "table") then dev:performClickableAction(args[2],args[3]); end end end end I log to a file so see whats happening, but I never ever see a "received" in my log. If I do log the error from the receive I get "Timeout" all the time, as an error. This is how I setup the socket. mkay.con = socket.tcp(); mkay.con:settimeout(.01); mkay.con:connect(mkay.host, mkay.port); Any ideas? Thanks, Mkay
  6. I agree, so it should not be able to do 310kph at sea level. But it should be able to go around 250kph at least. Also I can get to like 160kph with 60% torque, but if I increase the torque to 80% I just get to 190kph, increasing to 95% has almost no effect on speed what so ever. It feels like torque over 70% has very little effect. Same I noticed in hover.
  7. Hi, I really like the Gazelle, even though it is not finished yet. But some how the performance, especially the cruise speed feels odd. I can't get the Gazelle over 200kph in level flight, even though on sea level with almost no load. Additionally the engine performance with increasing altitude seems a little weak. I can barely hover at 2000m in ground effect. I kinda sucks to be the slowest helicopter in dcs, since the Gazelle is actually one of the fastest helicopters. I found a original POH of the Gazelle (SA 341 so SA 342 should be even more powerfull) Ref: https://de.wikipedia.org/wiki/A%C3%A9rospatiale_SA_341/342 Its a german article but it states the Gazelle (342) has a maximum level speed at sea level of 310kph! and the 341 of 260kph. I attached the original chart for the 341 for level light performance. Is this going to change in the future? Thanks and best, MKay
  8. Thanks, tried it and it works like a charm.
  9. Hi guys, is there a way to stop a radio transmission via script? I start a transmission as follows: trigger.action.radioTransmission(_sound, _grp:getUnit(1):getPoint(), 0, false, 200000, 1000) So it is not looping. The sound actually just gets played once, but when I sit in my huey to track that transmission, the needle for intesitiy just stays up a full deflection. So even though I dont hear anything anymore, I can still track that frequency. I want to clear that frequency and reuse it at a later time, but I cant see to stop it transmitting. Thanks
×
×
  • Create New...