Go to Post Yeah After we decided not to do autonomous, the robot took matters into it's own hand. i'd bet it would get it's self DQ'd... or an award. - GMKlenklen [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #7   Spotlight this post!  
Unread 03-23-2009, 12:33 AM
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: HELP: Robot Crash in Autonomous

Quote:
Originally Posted by byteit101 View Post
also if you do this
Code:
 type *varname;
...
varname=value;
you assign varname's address at memory the value of value
you need to do this
Code:
type *varname;
...
*varname=value;
OR
type *varname;
...
varname=&value;
Generally speaking, yes. However, OP's assignment of the only pointer he is using is correct:

Code:
struct Command *currentCommand;
// ...
currentCommand = command_list_X;
command_list_X is an array of "struct Command". Assigning to a pointer using an array (of the same base type) is perfectly legitimate and will simply result in the pointer pointing to the base of the array.
Reply With Quote
 


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
Very Strange cRIO Crash Hunter1100 C/C++ 0 01-19-2009 04:39 PM
HDD crash, need help recovering data! David Kelly IT / Communications 16 05-28-2007 11:25 PM
PlasmaCam Crash Course Andrew Blair Technical Discussion 0 12-30-2005 09:48 PM
Prom Night Crash Nate Edwards General Forum 5 05-28-2005 03:15 PM
3dsmax5 Crash? yangotang Inventor 5 03-09-2003 09:17 PM


All times are GMT -5. The time now is 10:33 AM.

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