Forums » Technology » Pit Builders » Please show off your pit.


Page 6 of 52 < 1 2 ... 4 5 6 7 8 ... 51 52 >
Topic Options
Rate This Topic
Hop to:
#2399077 - 12/11/07 10:32 PM Re: Please show off your pit. [Re: GlynD]
GrizzlyT Offline
Member

Registered: 11/22/05
Posts: 528
Loc: Sterling Heights, Michigan
Couldn't that already be handled, just by using different .ssi files, in SIOC?
_________________________
Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"

Top
#2399138 - 12/12/07 02:18 AM Re: Please show off your pit. [Re: GlynD]
Michi Hirczy Offline
Junior Member

Registered: 02/07/07
Posts: 11
Loc: Graz, .at, LOWG
 Originally Posted By: GlynD
Michi - dropped you an email for the source code please?

Done (spamfilter caught your mail, sorry)

 Quote:
problem is each helo has it's own set and there are major differences between the helos!

The problem will be when you want to fly in different helos and have a generic pit wired up to "EEST" (nice one Grizz ). Every time you jump in a different helo you will have to let the software know which helo you are in, otherwise incorrect lights will be coming on or wrong data will be returned.

I imagine it would be a major job to standardise the data coming into/out of the CommServer! It will probably be easier to have a "helo switch", this would allow EEST to adjust to what values it is expecting, if you swap helos...

Sounds like a possible solution to me.
Kind of that is already implemented in FAST, where you can choose between AF and BMS - this just would have to be extended to HAVOC/APACHE/whatever and the appropriate part in the code adapted.
Nevertheless, the user would have to jump out of the sim, change the datamodel in the GUI and hop back in.

 Originally Posted By: GrizzlyT
Couldn't that already be handled, just by using different .ssi files, in SIOC?

Yes, this could be the other approach.
EEST would just do a 1-to-1 transfer of the data, with a fixed mapping of CommserverVAR <-> SiocVAR without any "processing".
You could have a rotary switch in your pit, connected to IOCard's inputs, where you select the actual airframe, and in SIOC process the incoming data dependend on this switch's position.

Sounds even better to me, than my older approach...

greetings
michi


Edited by Michi Hirczy (12/12/07 02:19 AM)
_________________________
Michi's F-16 Simulator

Top
#2403191 - 12/17/07 03:45 PM Re: Please show off your pit. [Re: Michi Hirczy]
GlynD Offline
Member

Registered: 02/02/07
Posts: 388
Loc: Shropshire UK
Thanks for the code Michi - fab stuff! I understood most of it - I've only just got into using the Winsock controller for my gauge project.

The F4Lib module and SimData class I will need to see working to better get my head around...

Sometime after Christmas, I think I will order the Master card from OpenCockpits and give this a go. Do you know if the Master card has the same "3 switches on" limit as Leo Bodnars USB controller please?

Cheers

Top
#2403488 - 12/18/07 05:52 AM Re: Please show off your pit. [Re: GlynD]
Michi Hirczy Offline
Junior Member

Registered: 02/07/07
Posts: 11
Loc: Graz, .at, LOWG
 Originally Posted By: GlynD
Thanks for the code Michi - fab stuff! I understood most of it - I've only just got into using the Winsock controller for my gauge project.


Great to hear, that my code is readable to others, too ;-)

 Quote:
The F4Lib module and SimData class I will need to see working to better get my head around...

FULL ACK ;-). Even I have to rethink it, when I haven't worke some time on the code *g*

I'll give you a short overview, maybe this can clear thinks up a bit:

SimData is easy ;-): The main variable is
 Code:
Private siocIndex(500) As Long
It's simply an array of LongInteger numbers, that represent the SIOC vars 1-500.
So, i.e. siocIndex(23) will hold the value of SIOC's VAR0023.

It's quite hard to remember, which index in the array represents which data from Falcon ;-)
That's, when F4Lib.bas comes into play *g*:
 Code:
Public Enum SIOC_index

just maps a meaningful name to the appropriate number, ie.
 Code:
 ' altimeter data
 mAltBaro = 20 ' // 0 - 80000
 mAltRadar = 21 ' // usually 0 - 1500 ' feet
 mAltSetting = 22 ' // altimeter setting (2992)
 mKias = 23 ' // 0 - 850
 mMach = 24 ' // 0 - 2.0, convert from float to int and back!

That would be the place for you, if you want to change the names to the data that you get out of EHComms.
The rest of the enums and Data Models is Falcon specific and usually you should not need to keep it anyway.

The most important changes would be in SimData.
FillFlightData holds the code that puts the data from Falcon into the different indizes of siocIndex[]. I think, one example should explain the rest (I commented each line)
 Code:
With FDAF  // tells me to use the AF DataModel
      actualAlt = (-1) * CLng(.ShipDown)  // actualAlt is a temp var, .ShipDown is the value in F4's shared memory
      If actualAlt < 0 Then
        altBaro = actualAlt  // altBaro is the same as siocIndex(mAltBaro) or siocIndex(20) (see example above)
        altRadar = 0  // same as altBaro
      Else
        altBaro = actualAlt
        altRadar = actualAlt ' // N/A in AF
      End If

In your code, you would substitue .ShipDown with the needed value from EHComm.
I don't know EHC's data structure, but I if it's data is also ordered in arrays, it would even be easier to just say
 Code:
for i=0 to 499
   siocIndex(i) = ehcdata(i)
next i

as discussed some posts earlier. So you wouldn't even need the "Enum SIOC_Index" part, just send EHCs data to SIOC in a 1:1 mapping.
If you don't mind, I'll have a look at EHCs data structure, maybe I will find some "quick and dirty" solution ;-)
 Quote:
Sometime after Xmas, I think I will order the Master card from OpenCockpits and give this a go. Do you know if the Master card has the same "3 switches on" limit as Leo Bodnars USB controller please?

AFAIK, no (I don't use IOCards for inputs, just for outputs). And IIRC, there shouldn't be a problem on Leo's parts with diodes in the matrix.

HTH and greetings
michi
_________________________
Michi's F-16 Simulator

Top
#2404480 - 12/19/07 01:03 PM Re: Please show off your pit. [Re: Michi Hirczy]
GrizzlyT Offline
Member

Registered: 11/22/05
Posts: 528
Loc: Sterling Heights, Michigan
 Originally Posted By: Michi Hirczy
If you don't mind, I'll have a look at EHCs data structure, maybe I will find some "quick and dirty" solution ;-)


Well, that's the only part that I fully understood but it looks like we're making progress!!!

As always....Thanks a million!
_________________________
Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"

Top
#2404732 - 12/20/07 12:25 AM Re: Please show off your pit. [Re: GrizzlyT]
Michi Hirczy Offline
Junior Member

Registered: 02/07/07
Posts: 11
Loc: Graz, .at, LOWG
 Originally Posted By: GrizzlyT
Well, that's the only part that I fully understood but it looks like we're making progress!!!

As always....Thanks a million!

NP...
I tried to contact Retro through PM but I'm not sure, if he got it.
If you are able to communicate with him - maybe he could contact me through email:
fast AT f16simulator.net

I'd have some questions about his datastructure.

greetings
michi
_________________________
Michi's F-16 Simulator

Top
#2405485 - 12/21/07 04:10 AM Re: Please show off your pit. [Re: Michi Hirczy]
GlynD Offline
Member

Registered: 02/02/07
Posts: 388
Loc: Shropshire UK
Sorry for the delay my main PC has hard drive problems - retro gave me a couple of links to stuff in this thread

http://www.simhq.com/forum/ubbthreads.php?ubb=showflat&Number=2136680&fpart=18

(third post down)...

Does this help?

Cheers

Top
#2405491 - 12/21/07 04:50 AM Re: Please show off your pit. [Re: GlynD]
Michi Hirczy Offline
Junior Member

Registered: 02/07/07
Posts: 11
Loc: Graz, .at, LOWG
 Originally Posted By: GlynD
Sorry for the delay my main PC has hard drive problems - retro gave me a couple of links to stuff in this thread

http://www.simhq.com/forum/ubbthreads.php?ubb=showflat&Number=2136680&fpart=18

(third post down)...

Does this help?

Oh yes!! That's exactly, what I was looking for!

Thx a lot!

Now that I see the IDs of the values, the solution of 1:1 mapping of EECHServer : SIOC variables looks even more advanced to me. This way, no changes to the code of the transfer utility would have to be made, if anything inside EECHServer changes.

GlynD, could we do some code sharing? Could you send me your code, which you use to get the data from EECHServer?

greetings
michi


Edited by Michi Hirczy (12/21/07 04:55 AM)
_________________________
Michi's F-16 Simulator

Top
#2405533 - 12/21/07 06:09 AM Re: Please show off your pit. [Re: Michi Hirczy]
GlynD Offline
Member

Registered: 02/02/07
Posts: 388
Loc: Shropshire UK
Emailing it to you now chap.

It's not quite as advanced as yours... \:\)

Cheers

Top
#2406666 - 12/22/07 05:01 PM Re: Please show off your pit. [Re: GlynD]
Timothy Offline
Senior Member

Registered: 07/22/07
Posts: 2906
Loc: Phoenix
Is that F-16 pit made out of wood or metal?

Where did you get the switches at?
_________________________
Free Lt. Behenna
Learn Economics at:
http://www.mises.org
Carthago delenda est

Top
Page 6 of 52 < 1 2 ... 4 5 6 7 8 ... 51 52 >
Topic Options
Rate This Topic
Hop to:


Forum Use Agreement | Privacy Statement | SimHQ Staff
Copyright 1997-2012, SimHQ Inc. All Rights Reserved.