View unanswered posts | View active topics It is currently Fri Jul 25, 2014 9:08 pm






Reply to topic  [ 1 post ] 
getEncoderForMotor 
Author Message
Rookie

Joined: Sun Nov 03, 2013 12:25 pm
Posts: 2
Post getEncoderForMotor
Why doesn't this compile?

Code:
float getEncoderTicksPerRev(tMotor _motor) {
  tSensors encoder = getEncoderForMotor(_motor);
  // irrelevant code
}


Code:
**Error**:Calling procedure 'getEncoderForMotor'. 'const' expressions does not fit. Parameter: 'compileConst tMotor nMotorIndex'. Expression: '_motor'. Type: 'tMotor'


The API reference for getEncoderForMotor is here.


Sun Nov 03, 2013 1:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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.