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

RobotC on EV3
http://www.robotc.net/forums/viewtopic.php?f=63&t=10135
Page 1 of 1

Author:  MHTS [ Fri Jan 02, 2015 2:34 am ]
Post subject:  RobotC on EV3

We are starting to port our FTC library to EV3 in anticipation for next year. One of the very first error we hit was in our gyro module where it has the following code:
Code:
    if (SensorType[sensorID] != sensorAnalogActive)
    {
        SensorType[sensorID] = sensorAnalogActive;
    }

The compiler gave us the following error.
Code:
Undefined variable 'sensorAnalogActive'

I looked at Xander's hitechnic-gyro.h code and it has the same thing in initSensor(). Did I misconfigure something in the IDE that makes it not recognizing the sensorAnalogActive keyword?

Author:  mightor [ Wed Jan 07, 2015 4:21 am ]
Post subject:  Re: RobotC on EV3

Things are a bit different with the sensors in the EV3. Some of the sensor types have different names, to map more closely to how they're named in the LEGO VM. I'll try and get something out the door this week that will demonstrate how to do this properly.

= Xander

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