Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 1 of 3 1 2 3
#2932624 - 01/04/10 05:28 PM C'mon guys, help a newbie !  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Hi guys, I need help.

Ive installed EECH and modded to 1.12 level.
Enabled data to be exported in the ini file.
Installed EECHCommServer ver 5 on same PC.

On another PC I've installed UDPSpeed comanche console.

Both are connected by a crossover cable (although I did try with a network hub) and have IP's 192.168.200.1 and 200.2 I can ping from one to the other fine.

I start up UDPSpeed console and then EECH on the other machine. When it's running I start EECHCommServer. I've tried this on a variety of ports without success (currently 63000).

On the UDPSpeed console I get things like the heading, fuel weight, time of day etc but no indicators.

When I checked the log file it seems I'm only getting the variables 20,30,32,40,42,50,52,451 and 452 passed over.

I've also tried the Hokum and Havoc guages with their relevant aircraft and they do exactly the same thing.

Can somebody please help me ?

Thanks,

Andy


Andy's simpit: http://www.simpit.me.uk
#2933631 - 01/06/10 05:51 AM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
Andy - Your post is both good news and bad, for me.
Good, in that it means that my (seriously lacking) programming skills are not at fault.
Bad, in that I am having the same issues....almost.

I have been (up 'till now, secretly) toiling away at trying to write a program to connect CommServer to SIOC. (Similar to Michy Hirczhi's "FAST" program, for Falcon.)
That way I can control my warning lights, with an Opencockpits USBOutputs board.

It's been a daunting task and in trying to understand it all, I've just tried to concentrate on extracting all the data first.
To my dismay, none of the warning lights seem to be working either???
To further complicate things, several of the "shared variables" are not what's listed on EECH Central's "available Data" list, or do not respond either.
For example...

Variable, Description, Results
(R/20), Time of Day, OK (Reports in decimal. I.e., five fifteen AM = 5.25.)
(R/30), indicated airspeed, OK (Reports in km/h. Comanche displays knots...needs converting.)
(R/32), vertical speed, OK (Reports in m/s.)
(R/34), indicated slip, OK (Reports in m/s.)
(R/40), baro altitude, OK (Reports in meters. Comanche displays feet...needs converting.)
(R/42), heading, OK (Reports in degrees.)
(R/46), roll, OK (reports in degrees. (+) = L, (-) = R.)
(R/48), pitch, OK (reports in degrees. (+) = forward, (-) = back.)
(R/50), fuel weight, OK but reporting LEFT ENGINE NP.
(R/52), g force, OK
(R/64), Left engine RPM, OK but reporting LEFT ENGINE NP, too.
(R/65), Right engine RPM, OK but reporting LEFT ENGINE TG.
(R/66), left engine N1 RPM, NO RESPONSE
(R/67), right engine N1 RPM,NO RESPONSE
(R/72), left engine temp, NO RESPONSE
(R/73), right engine temp, NO RESPONSE
(R/451), radar altitude, OK (Reports in meters. Comanche displays feet...needs converting.)
(R/452), combined engine RPM, OK but reporting RIGHT ENGINE TQ.
(R/453), combined engine torque, OK but reporting RIGHT ENGINE TG.
(R/454), left engine torque, OK but reporting LEFT ENGINE NG.
(R/455), right engine torque, OK but reporting RIGHT ENGINE NP.

(R/501) thru (R/597), all the indicators!!!, NO RESPONSE!!!

While I would eventually like my program to pass all the data on to SIOC, my primary concern was the warning indicators and not a single one seems to be working?!?!? nope

Unfortunately, FAST, my programming attempts, and the extent of my skills, are limited to Visual Basic and both EECH and CommServer are written in C.
I had CVS access (need to update to GIT, though) and Retro has been kind enough to let me view his source code for CommServer but to say I'm a bit out of my element is an understatement.
I have yet to even figure out if it's an issue with EECH no longer sending those variables to shared memory, or CommServer not reading those variables???

I really wish more of the code gurus were pit builders! banghead





Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2933669 - 01/06/10 09:01 AM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
GrizzlyT,

That's wierd, that's exactly what I'm trying to do...

I was going to try and do a VB6 exe to get the vars and pass them out to an opencockpits master board (the one that connects to the printer port - USB one was to expensive for me). I did some Pascal and machine code programming years ago, so could probably pick it up.

It's strange that some stuff is getting through (heading, g force etc).

If I knew what memory addresses were being used for what variables I could probably find a memory dump program and we'd then know whether the data was not being exported or not being passed on.

Hope some of the Guru's read my posts anyway.

Cheers


Andy's simpit: http://www.simpit.me.uk
#2933679 - 01/06/10 10:28 AM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
As I said, I have Retro's C source code for CommServer and had CVS (now GIT) access to EECH's source code. (For all the good it's doing me.)
Also, I have Michi's VB6 source code for FAST. (And some suggestions on how to send to SIOC.)
And I have GlynD's VB6 analog altimiter source code. (Which is what I been hacking from to access CommServer.)

You'll probably need to get your own GIT access but, if the others don't mind, I can send you what I have, so far.
Maybe we can pool our resources and work this out together?....assuming we can get these "dead" variables resolved.

Shoot me a PM, if you're interested.


Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2933877 - 01/06/10 06:40 PM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
GrizzlyT,

Just home from work and checked the variables I'm getting through.

Identical to your list EXCEPT I am getting a value through for R/50 (Fuel Weight) and it changes during the game.

I also get (when I checked the log file) Ekin, Epot and Esum but I don't know what they are.

This is strange. If it's the same problem, you'd think we'd both get the same variables. Unless it has something to do with versions of the programs.

I'm using:

EECH-allmods version 1.12.0 created 29 may 2009
EECHCommserver version 5 created 21 March 2007
GWUT1120.csv

Can you check your versions please ?

Cheers,

Andy


Andy's simpit: http://www.simpit.me.uk
#2934230 - 01/07/10 06:08 AM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
You're right. R/50 is working but it is actually reporting LEFT ENGINE NP, not Fuel Weight.
(Oddly, the same as R/64?! Which means the left engine is not reporting TQ and the right engine is not reporting NG.)
Which log file are you referring to?

I'm using the same wut file and version of CommServer but my .exe is 1.12.2

Actually, it may not "technically" even be that version any more. I'm running a temp .exe that Firebird created, to try and repair the recently missing external sounds.
I believe it was originally called COHOKUM_12SEP09_SND.EXE, before I re-named it. (It does still show up on the EECH load screen as 1.12.2, though.)
If the links are still active, you can find it here .



Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2934454 - 01/07/10 04:03 PM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Ah, you're not using the UDPSpeed cockpit graphics are you ?

There's a couple of variables you can set in the ini file for it.

One enables the generation of a log file of all the variables the program checks and their values. The other is the path to where you want the file created.

When I checked this file all the indicators were showing zero or had a question mark against them.

I've also PMd Arneh and asked if he could check the output of the latest EECH to see if it is exporting OK. At least we'll know where to start looking.


Andy's simpit: http://www.simpit.me.uk
#2934456 - 01/07/10 04:09 PM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
No, I'm not. I'm just using CommServer to pull the data out.
I will be using the MFD export, too...eventually, but not with the UDPSpeed cockpit. (I've already got a cockpit. biggrin )


Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2935219 - 01/08/10 01:02 PM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Yeah! I've seen the photos (he said jealously!)

Used your panel sizes as a starting point for mine (hope you don't mind...)

I'm gonna do a WAH-66 (wessex built under licence RAH-66). Colour scheme will be grey rather than green.


Andy's simpit: http://www.simpit.me.uk
#2937768 - 01/12/10 05:19 AM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
It seems that EECH is not reporting the status of the warning lights to CommServer, in any of the recent versions?!

I have tried it on versions 1.8.6, 1.9, 1.10, 1.11, & 1.12.2. The warning lights' status is non-responsive, in all versions tested.
The only version that I seem to get a response from, is the custom .exe created for version 1.8.5.

This is a major dissapointment because of the huge amount of improvements made to the game since then that would have to be sacrificed, to get the pit working.
(This was way back... even before the Comanche HUD was re-done. eek2 )


Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2937922 - 01/12/10 02:10 PM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Popped over to the bug reporting site to let them know about this, but you'd beat me to it!


Andy's simpit: http://www.simpit.me.uk
#2939897 - 01/15/10 06:09 AM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
Originally Posted By: AndyB
Popped over to the bug reporting site to let them know about this, but you'd beat me to it!

You could still log in and confirm the bug.
I don't know if a "confirmed" bug warrants any more consideration but at least it will show that it's repeatable.


Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2942138 - 01/18/10 11:38 PM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Feb 2007
Posts: 410
GlynD Offline
Member
GlynD  Offline
Member

Joined: Feb 2007
Posts: 410
Shropshire UK
Hiya chaps just a quick check to see if you are firing up the CommServer AFTER EECH has started? Sorry if you are but just wanted to check, as I had to use a batch file to fire up EECH 1.9 and then the CommServer before I could get anything to read variables...

Cheers
Glyn

#2942312 - 01/19/10 04:52 AM Re: C'mon guys, help a newbie ! [Re: GlynD]  
Joined: Nov 2005
Posts: 557
GrizzlyT Offline
Member
GrizzlyT  Offline
Member

Joined: Nov 2005
Posts: 557
Sterling Heights, Michigan
Glyn - Yes, I am. Thanks for the idea though.
I too have that batch file saved for use. I haven't started using it yet...still doing Alt+Tab. (It will be slightly modified to start a few more apps and added to the final installation.)

I can and do get values out of CommServer, using your altimeter code to hack from (Thanks again!!!).
The problem is that none of the light bits are getting through (501 to ~). If I use any number higher than 501, there is no response.
This is fine for the shared variables and great for an altimiter but bad for my warning lights! frown


Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"
#2942401 - 01/19/10 09:29 AM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Have put a report on Bug Tracker about this as well (the more the merrier!).


Andy's simpit: http://www.simpit.me.uk
#2942402 - 01/19/10 09:34 AM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Hi Glyn,

Yup! me too.

I actually use the windows key to drop back to the desktop and start EECHCommServer when I'm at the map screen just before entering the cockpit.

Do you have a pit that has working indicators (or using UDPSpeed) with the version you're using ?


Andy's simpit: http://www.simpit.me.uk
#2942873 - 01/19/10 09:49 PM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Feb 2007
Posts: 410
GlynD Offline
Member
GlynD  Offline
Member

Joined: Feb 2007
Posts: 410
Shropshire UK
No I was just planning on building another three VB programs (artificial horizon, airspeed indicator and altimeter) for the Apache backup instruments (bottom right of the pilots dashboard) and then have them running on a small screen visible through holes cut and with fake fronts. That was why I built the VB6 analog altimeter.

I have got a LCD USB screen as well for the Apache data-unit (to the right of the fire extinguisher panel) however I haven't got around to see what I can do with that yet...

Cheers
Glyn

#2945453 - 01/23/10 03:30 AM Re: C'mon guys, help a newbie ! [Re: GrizzlyT]  
Joined: Feb 2007
Posts: 410
GlynD Offline
Member
GlynD  Offline
Member

Joined: Feb 2007
Posts: 410
Shropshire UK
Argghh maths in VB6! dizzy

I am just doing another one for the Air Speed Indicator and cannot wrap my head around the maths for displaying the needle on the following lines:

linA.X1 = Cos(((intDataValue + 175) * PI) / 50) * 72.5 + linA.X2
linA.Y1 = Sin(((intDataValue + 175) * PI) / 50) * 72.5 + linA.Y2

I have setup another dial to be 0 to 250 knots (0 to 360 degrees) - any ideas what I need to change the above lines to please chaps?

Cheers

#2945586 - 01/23/10 09:00 AM Re: C'mon guys, help a newbie ! [Re: GlynD]  
Joined: Jun 2006
Posts: 2,288
arneh Offline
Member
arneh  Offline
Member

Joined: Jun 2006
Posts: 2,288
Oslo, Norway
First of all, the speed comes out of the sim is probably in m/s, so you need to convert it to knots (if that's what you want your dial to be in).
kts = velocity * (60 * 60 / 1852).

Then you have PI which is 180 degrees, i.e. at straight down. That seems to correspond to 125 knots. So each knot will be PI/125, and the angle will hence be:
angle = kts * PI/125

Not sure how you display it, but you if you need the coordinates for a line then you have the origin for centre. Then take cos and sin of the angle above, and multiply it by the length of the needle to find the vector for it. That you can add to the origin to find the coordinates of the other end of the line.

#2945587 - 01/23/10 09:02 AM Re: C'mon guys, help a newbie ! [Re: AndyB]  
Joined: Jun 2006
Posts: 2,288
arneh Offline
Member
arneh  Offline
Member

Joined: Jun 2006
Posts: 2,288
Oslo, Norway
Originally Posted By: AndyB
Have put a report on Bug Tracker about this as well (the more the merrier!).


I commented in the bug, so would be nice if you replied there. I asked how I can test what values EECH sends. I've never used memory export myself, so I have no idea how to use it and how it's supposed to work (and it wasn't me who implemented it).

Page 1 of 3 1 2 3

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0