View unanswered posts | View active topics It is currently Wed Oct 22, 2014 8:42 pm






Reply to topic  [ 3 posts ] 
tmotor variable in struct 
Author Message
Rookie

Joined: Fri Feb 21, 2014 5:16 pm
Posts: 8
Post tmotor variable in struct
Hi, I am trying to put a tmotor variable in a function like bellow.
Code:
typedef struct{
   tmotor mymotor;
}examplestruct;

When I run this I get this error:
Quote:
**Error**:Unexpected 'tmotor' during parsing
I don't understand why, and it would be appreciated if any of you could tell me why and how I can fix it.

P.S. Yes I did test it with a main task.

_________________
Vincent Bensch FTC #6806 Ratchet Robotics


Fri Feb 21, 2014 5:36 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: tmotor variable in struct
Pay attention to the capitalization. I don't have robotc in front of me but I think it is tMotor.


Fri Feb 21, 2014 9:31 pm
Profile
Rookie

Joined: Fri Feb 21, 2014 5:16 pm
Posts: 8
Post Re: tmotor variable in struct
Looks like it is working. Thanks

_________________
Vincent Bensch FTC #6806 Ratchet Robotics


Fri Feb 21, 2014 10:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.