Go to Post You can't derail a thread that had no "rails" to begin with. - bkahl [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
  #1   Spotlight this post!  
Unread 10-03-2004, 15:35
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Question Getting Long Data

How do you get a Long (signed or not) from the FRC to you?

I'm currently using printf() in a way so that, basically:
Code:
void printl(long Num)
{
 //Print Bytes
 printf("Long %d %d %d %d\n", (int)(Num>>24)&0xFF, (int)(Num>>16)&0xFF, 
     (int)(Num>>8)&0xFF, (int)Num&0xFF);
 
 //Print Words
   printf("Long %d %d\n", (int)(Num>>16)&0xFFFF, (int)Num&0xFFFF);
}
The problem is that the thing seems to want to increment higher sections to soon. In a pattern.
Code:
...
0 0 0 8
0 0 1 9
...
0 0 1 16
0 1 1 17
...

(or:
Code:
...
0 8
1 9
...
)

The other option is to use 4 user bytes. but we only have 6. well, 4 User + 2 LED + 1 UserCmd.

Can anyone offer suggestions? This little bug really affects results. (bland understatement)
 


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
Competition Scouting pauluffel Scouting 31 09-01-2003 00:34
Robot Scouting Database archiver 2001 10 24-06-2002 03:00
Limiting PWM in pbasic archiver 2001 4 24-06-2002 00:38
How long should production time be??? archiver 1999 4 23-06-2002 23:16
Possible Configuration to keep things cheap archiver 1999 8 23-06-2002 23:03


All times are GMT -5. The time now is 22:27.

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