[simpits-tech] To gene or any other programmer

Mark Doran simpits-tech@simpits.org
Fri, 21 Jun 2002 19:57:00 -0700


That would be ideal, I agree Erwin!  Did you already ask the G2 folks
about that one??  Want help to lobby?? :-)

If you got this you could actually make an EPL function to read physical
switch states and then send the right keypresses to the game to make it
match up.  Now of course this could be a fine way to "trash" the jet if
you are in flight and have some switches in "odd" places :-)

Still if would make sync up much easier to automate.

I was planning to write a "checklist" function to read physical switch
position and then compare to a known good state list for the game's
default start up state.  The function can then send keystrokes making
messages as a checklist...flip up notepad before you fly, hit the button
to generate the checklist and voila a custom printable checklist on what
to adjust before you start Falcon.  Again a kludge but perhaps better
than nothing...

void checklist(void)
{
  // hard coded test that knows having MPO on doesn't match F4 at
startup
  if (dMPOPanel.PitchOveride) {
    keyhit(M P O SPACE T O SPACE O F F ENTER);
  }
  // etc. etc. for all other switches
}

Define a button to tie to a physical switch, once again something that
Falcon4 does use in game, to call the checklist.  Maybe there are
different checklist functions for cold jet ramp start, ready to taxi
start, and mid air game start; variations on the theme at any rate.

Cheers,

Mark.


> -----Original Message-----
> From: simpits-tech-admin@simpits.org [mailto:simpits-tech-
> admin@simpits.org] On Behalf Of Erwin Neyt
> Sent: Friday, June 21, 2002 1:14 AM
> To: 'simpits-tech@simpits.org'
> Subject: RE: [simpits-tech] To gene or any other programmer
> 
> One of my whishes is to get actual switch-states in sh.mem. Though
this
> does
> not solve all problems, it can adapt to a full sync.
> 
> For example:
> 
> Gear(state)
> {
>   if (ReadSwitchState(Gear) != state) {
>     keyhit(g)
>   }
> }
> 
> This means that if a physical switch is put in a position it already
is in
> the sim, nothing happens.
> 
> Another thing you can do, if create a pre-flight checklist on a
separate
> monitor (PDA on kneepad) which show the switch positions in the sim.
You
> can
> then set all the physical switches to match the sim's.
> 
> Just a thought,
> 
> Erwin.