Go to Post First off, let me suggest that you read the rules! There is an amazing amount of really good information in them. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Spotlight this post!  
Unread 19-03-2003, 12:12
Matt Reiland's Avatar
Matt Reiland Matt Reiland is offline
'The' drive behind the drive
None #0226 (TEC CReW Hammerheads)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1999
Location: Troy Michigan
Posts: 712
Matt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond repute
Any chance that you didn't have the exact same variable declarations in all of the slots. Remeber that you don't have a separate 26 variables in each slot they are all the same, if they are declared at all differently in any of the slots, the same section in memory may show up as something different as you go from slot to slot. For example if one slot had this

p1_x VAR byte 'Port 1, X-axis on Joystick
'p2_x VAR byte 'Port 2, X-axis on Joystick UNUSED
'p3_x VAR byte 'Port 3, X-axis on Joystick UNUSED
'p4_x VAR byte 'Port 4, X-axis on Joystick UNUSED

p1_y VAR byte 'Port 1, Y-axis on Joystick
'p2_y VAR byte 'Port 2, Y-axis on Joystick UNUSED
p3_y VAR byte 'Port 3, Y-axis on Joystick UNUSED
'p4_y VAR byte 'Port 4, Y-axis on Joystick UNUSED

And another slot had this
p1_x VAR byte 'Port 1, X-axis on Joystick
p2_x VAR byte 'Port 2, X-axis on Joystick
'p3_x VAR byte 'Port 3, X-axis on Joystick UNUSED
'p4_x VAR byte 'Port 4, X-axis on Joystick UNUSED

p1_y VAR byte 'Port 1, Y-axis on Joystick
'p2_y VAR byte 'Port 2, Y-axis on Joystick UNUSED
p3_y VAR byte 'Port 3, Y-axis on Joystick UNUSED
'p4_y VAR byte 'Port 4, Y-axis on Joystick UNUSED

In memory p2_x would have the same location as p1_y in the first slot. Try it, it might suprise you!

We take the entire memory declaration section and copy it exactly to each slot so this can't happen. We have never had any problems with any controllers and multiple slots.

I can post more info if anyone doesn't get what I am saying.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2-week FIRST summer program @ WPI ColleenShaver General Forum 20 31-05-2009 03:02
initialization program and speed controllers rosebud Programming 15 05-10-2004 03:35
The best fundraising program ever... Petey Fundraising 2 12-09-2003 19:42
Ahh! Program trick confusing! archiver 2001 9 24-06-2002 02:26
Credits for FIRST program. archiver 2000 6 24-06-2002 00:16


All times are GMT -5. The time now is 19:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi