View unanswered posts | View active topics It is currently Mon Oct 26, 2020 5:46 am

Reply to topic  [ 1 post ] 
Author Message

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

float getEncoderTicksPerRev(tMotor _motor) {
  tSensors encoder = getEncoderForMotor(_motor);
  // irrelevant 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
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.