Jump to content
The simFlight Network Forums

Graham Pollitt

Members
  • Posts

    148
  • Joined

  • Last visited

Everything posted by Graham Pollitt

  1. No but then I had never tried it until today just before I replied to this thread to see if I could see the issue that Adam was referring to. It doesn't affect me anyway as I don't assign using that method so is irrelevant to me whether it's an issue with FS, FSUIPC, Windows, Razer driver etc. The way I assign to the Razer works and that's all I'm bothered with,
  2. Adam, You need to assign a key on the main keyboard to a function either within FS or FSUIPC and then assign that same key to a button on the keypad via the Razer software. I use mine in both FSX and P3D and have never had any problems setting up this way. I understand what you mean by FSUIPC not detecting the button press but if you setup as above then that is not an issue.
  3. Hi Pete, Any plans to implement the new SDK items to offsets within the recent update for the PMDG NGX? thanks
  4. Run makerwys.exe, copy the r5.csv file to your project folder or path directly to the file in the FS directory. Code a parser reader to find the two airports that you want from the r5.csv file and to obtain the lat/lon co-ordinates of those two airports Read here for the formulae you'll need for the distance between two lat/lon points. You'll have to decide which point you want to use for each airport http://williams.best.vwh.net/avform.htm
  5. No you wouldn't set the interval nor enable the timer within the 'tick' routine as it would never start Set the interval in the form load section or at design time if the interval does not need to be changed and start the timer when the app is started
  6. Did you have FSUIPIC reinstalled again when V/S stopped working? Above you don't mention reinstalling it. If you didn't its not a problem with FSUIPC If you did have you checked buttons and axis assignments in case there has been a control assigned that shouldn't be and is overriding the AP?
  7. Did you look in the log file as Pete suggested above? The answer could lie within!
  8. I don't have a use for it but thanks for sharing your work anyway, maybe somebody will find it useful and give you some positive feedback :cool:
  9. Quick search found this http://forum.simflight.com/topic/74981-assign-left-mouse-button-to-joystick-button-how/
  10. You mean remove the dll from the modules folder? Soumds to me like a possible axis conflict but it can't be if you are using an unregistered copy as you wouldn't be able to assign and calibrate etc
  11. If anything it should be on to prevent the airspeed misreads depending upon icing etc. Not saying it may be the cause of your problems but off is bad compared to it being on.
  12. No you just copy the data below the header eg in my ini file I have the below [buttons] ButtonRepeat=20,10 1=RB,0,C65607,0 2=RB,1,C65615,0 3=PA,4,C66079,0 4=PA,5,C66080,0 7=PA,10,K97,8 8=PA,11,K123,8 9=PA,7,C65752,0 [buttons.PMDG 737] 0=PA,9,K88,9 1=PB,4,K86,10 2=PB,5,K86,11 3=PB,6,K66,10 4=PB,7,K66,11 5=PA,0,K88,10 6=PA,8,K90,10 8=RB,11,C65602,0 9=UB,11,C65604,0 11=PA,1,K67,10 so to make the 737 buttons apply as generic I copy that section into the generic buttons section like this. [buttons] 0=PA,9,K88,9 1=PB,4,K86,10 2=PB,5,K86,11 3=PB,6,K66,10 4=PB,7,K66,11 5=PA,0,K88,10 6=PA,8,K90,10 8=RB,11,C65602,0 9=UB,11,C65604,0 11=PA,1,K67,10 To make the 737 buttons apply to another specific aircraft only you could copy that same section into the header for the new aircraft like this [buttons.PMDG Jetstream 41] 0=PA,9,K88,9 1=PB,4,K86,10 2=PB,5,K86,11 3=PB,6,K66,10 4=PB,7,K66,11 5=PA,0,K88,10 6=PA,8,K90,10 8=RB,11,C65602,0 9=UB,11,C65604,0 11=PA,1,K67,10 There may be an easier way to do this but I am happy editing files etc so thats the way I would do it. Only takes a few seconds anyway.
  13. I think one way would be to edit your ini flle and copy the sections eg I have a section like [buttons.PMDG 737] for the NGX and like this [buttons] for generic aircraft. Just find the section for the aircraft you have programmed and copy it into the [buttons] section
  14. Thanks Pete, I've used the 333C offset and works fine. Code below for anyone interested (vb.net) though you'll need to modify for own use Private Shared fsWideFSRunning As Offset(Of UShort) = New FSUIPC.Offset(Of UShort)("widefs", &H333C) Public Shared WideFSRunning As Boolean Public Shared Sub getfsWideFSRunning() FSUIPCConnection.Process("widefs") WideFSRunning = fsWideFSRunning.Value End Sub then check like this - I have this code at the start of my timer section SimulatorEvents.getfsWideFSRunning() If SimulatorEvents.WideFSRunning = False Then Me.Timer_Seconds.Enabled = False 'pause polling' Dim msg = MessageBox.Show("The connection to Flight Sim has been lost, retry connection?", "WideFS connection lost", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If msg = DialogResult.Yes Then Me.Timer_Seconds.Enabled = True Exit Sub 'exit sub and retry on next poll count' Else Dim msg2 = MessageBox.Show("Abandon retry?", "Restart Application?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If msg2 = DialogResult.Yes Then 'stop main timer and reset app' Me.Timer_Seconds.Enabled = False frmMain.ClearData() Exit Sub Else 'no' Me.Timer_Seconds.Enabled = True Exit Sub 'exit sub and retry on next poll count' End If End If End If
  15. Hi, I am unable to detect a crash and my app continues to run normally on the client pc when the fsx server disconnects and I am connecting via WideClient. Obviously I don't get any new data just the same data from the last read each time my timer ticks. Even when WideClient eventually times out and gives the 'waiting for a connection' message my app still continues to read the offsets as though the connection is still there. Any ideas how to trap this please? I've had a quick read of the WideClient manual but can't seem to locate a relevent parameter. thanks Graham
  16. Erik, Don't know what language you are programming in but here is what I wrote for my app in vb.net. You can modify this into whatever language you are using. The maths is there but you will need to change the objects/vars to match your app Sub GetTotalDistanceFlown() 'calculate total distance flown so far' Static firstrun As Boolean = True If firstrun = True Then 'remember position for next run otherwise distance starts with lat/lon of 0 and gives 6000nm at KSEA!' PreviousLat = ApplicationObjects.objAircraft.CurrentLatitude PreviousLon = ApplicationObjects.objAircraft.CurrentLongitude firstrun = False Else 'convert longitude into radians' CurrentLat = Calculations.Deg2Rad(ApplicationObjects.objAircraft.CurrentLatitude) CurrentLon = Calculations.Deg2Rad(ApplicationObjects.objAircraft.CurrentLongitude) 'as total distance is in nm convert to rad before calculating new distance' ReportGlobal.TotalDistanceFlownNM = Calculations.nm2Rad(ReportGlobal.TotalDistanceFlownNM) ReportGlobal.TotalDistanceFlownNM = ReportGlobal.TotalDistanceFlownNM + (2 * Math.Asin(Math.Sqrt((Math.Sin((PreviousLat - CurrentLat) / 2)) ^ 2 + Math.Cos(PreviousLat) * Math.Cos(CurrentLat) * (Math.Sin((PreviousLon - CurrentLon) / 2) ^ 2)))) ReportGlobal.TotalDistanceFlownNM = Calculations.Rad2nm(ReportGlobal.TotalDistanceFlownNM) ReportGlobal.TotalDistanceFlownNM = Math.Round(ReportGlobal.TotalDistanceFlownNM, 4) '4 decimal places for accuracy on chart x axis' PreviousLat = ApplicationObjects.objAircraft.CurrentLatitude PreviousLon = ApplicationObjects.objAircraft.CurrentLongitude End If End Sub required function for above Shared Function Rad2nm(ByVal Rad) 'This function converts radians to nm' Rad2nm = Rad * ((180 * 60) / Math.PI) Return Rad2nm End Function Shared Function nm2Rad(ByVal nm) 'This function converts radians to nm' nm2Rad = nm * Math.PI / (180 * 60) Return nm2Rad End Function
  17. Those 2 offsets are not 8 bit numbers they are non negative 16 bit numbers (integer) are per the documentation. Using byte as the variable type would only read 8 out of the 16 bits
  18. I'll answer seeing as Pete is away for a few days If you fly straight and level, trim the aircraft properly and have no wind, let go of the controls ie no autopilot - what happens? You don't have an assignment for your throttle also assigned to elevator? I had this once so as i was reducing/increasing throttle the nose pitched down/up too!
  19. Just program the hat switch on your controller to 'view (pan)' and voila. No cfg edits required :razz:
  20. You should remove your key details before someone copies them
  21. Slightly OT but are you the same Paul that composes/records music as I have seen a few posts/vids elsewhere and he certainly looks like you :razz:
  22. Has your dll.xml file got corrupted? The only time I have seen that msg was when I was trying to connect via network to FSX and FSX wasn't running.
  23. That offset is a bit array and yes you can read/write to it 'In FS2000 and later, FSUIPC extends this by having a bit for each engine, 1=Eng1, 2=Eng2, 4=Eng3, 8=Eng4' Private fsEngineFail As Offset(Of BitArray) = New FSUIPC.Offset(Of BitArray)("engines", &HB6B, 1) Public Engine1fail As Boolean Public Engine2fail As Boolean Public Engine3fail As Boolean Public Engine4fail As Boolean 'then have something like' FSUIPCConnection.Process("engines") If fsEngineFail .Value(0) = 1 Then Me.Engine1fail= true Else Me.Engine1fail=false End If If fsEngineFail .Value(1) = 1 Then Me.Engine2fail = true Else Me.Engine2fail =false End If If fsEngineFail .Value(2) = 1 Then Me.Engine3fail = true Else Me.Engine3fail =false End If If fsEngineFail .Value(3) = 1 Then Me.Engine4fail = true Else Me.Engine4fail =false End If To set a bit do something like fsEngineFail .Value(2) = 1 'then write it ' FSUIPCConnection.Process("engines") 'this should set engine 3 bit to 1 to show engine fail' Thats from memory. It tests whether each bit for each engine is set or not and sets the bool var accordingly. In VB.net at least. May not be 100% correct but should give you an idea. EDIT you may have to change the above lines to (not home at mo to look how I did this) If fsEngineFail .Value(0) < 0 Then 'true' else 'false' 'etc.'
  24. Rob, I assigned a button on my throttle quadrant via the buttons and switches tab. Select for FS control - Checked Control sent when button pressed - Throttle decreased Control to repeat while held - Checked Control sent when button released - Throttle cut Works fine for me in the NGX. Adds reverse to both engines whilst button down and sends throttles to idle when released. Never failed me yet. If you want seperate reverser controls for each engine assigned to 2 buttons then select Throttle 1 and Throttle 2 instead of Throttle.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.