ROBOTC.net forums
http://www.robotc.net/forums/

getEncoderForMotor
http://www.robotc.net/forums/viewtopic.php?f=11&t=7172
Page 1 of 1

Author:  jnmacdnld [ Sun Nov 03, 2013 1:40 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/