Go to Post I have also emailed Dean Kamen for more information regarding our team and its future, as I may have confused myself a bit. - ExcuseBoy [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 15-01-2005, 23:54
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Help: Misterious 8292 Bug

Hey,

I was just wondering if something like that ever happend to anybody before and there is already a solution to my problem:

What I did was looking at Kevin's Code an stealing the Interpretor Idea but I wrote different function (to make it work with dead raconing just for now) and changed gave the constants different names and so on.

Everything worked really good until I tried to add a CMD_DIFFTURN Command to my Library that was supposed to make one Wheel slower in order to turn (instead of reversing them against each other like my CMD_TURN function does).

But whenever I use CMD_TURN and CMD_DIFFTURN together my first Command (here CMD_WAIT) gets the VALUE 8292 instead of 1 (#define CMD_WAIT 1). All other Values stay untouched. I was tring arround for nearly the entire day and couldn't figure out why and HOW something like this could happen, but what I found was that this number 8292 is appearing 2 times in the Assembler code which made me somewhat confused ...

So my question is did anybody else experience something like this before (maybe with another Value then 8292) or did I discover a new bug / way to trick myself ...

Ah and before I forget, I was testing this code withthe EduRC.

Code:
#define ROBOT_SPEED			10
#define DRIVE_TIME			2000
#define TURN_TIME 			1200
#define TURN_SPEED			20
#define TURN_DIFF			10

struct commands command_list[] = { 
/*Command              parm 1     			parm 2   					parm 3   */
{CMD_WAIT, 		       5000,      			0,       					0},						
{CMD_DIFFTURN,         TURN_TIME,          	TURN_SPEED,   				TURN_LEFT * TURN_DIFF},	// Time, Speed, Direction/Drift
{CMD_DRIVE,            DRIVE_TIME,          FORWARD * ROBOT_SPEED,   	0},							// Time, Speed/Direction
{CMD_DIFFTURN,         TURN_TIME,          	TURN_SPEED,   				TURN_LEFT * TURN_DIFF},	// Time, Speed, Direction/Drift
{CMD_DRIVE,            DRIVE_TIME,          FORWARD * ROBOT_SPEED,   	0},							// Time, Speed/Direction
{CMD_TURN,             TURN_TIME,      		TURN_LEFT * 20, 			0},	
{NULL,                 0,         			0,       					0}

};
 


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
multiple definition error in MCC/Linker (possible bug?) wun Programming 5 01-04-2004 17:49
printf bug - beware! WizardOfAz Programming 8 10-03-2004 09:50
New boards: Bug in thread-subscription e-mail DanL CD Forum Support 1 02-12-2003 16:24
Last Call for bug reports rbayer Programming 0 08-01-2003 02:48
Small bug Jay Lundy CD Forum Support 1 18-06-2001 17:03


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

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