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

Driver problems with robotc 4.0 and ev3
http://www.robotc.net/forums/viewtopic.php?f=41&t=9045
Page 1 of 1

Author:  lstevens77 [ Sun Jul 06, 2014 9:05 pm ]
Post subject:  Driver problems with robotc 4.0 and ev3

I have recently purchased a Mindsensors AbsoluteIMU-ACG for my EV3. I downloaded Xander's driver, but I could not compile the test program because there were errors in the common.h program. These errors included:

**Error**:'case' statement expression must have constant value
**Error**:Undefined variable 'STAT_COMM_PENDING'. 'short' assumed.
**Error**:'case' statement expression must have constant value
**Error**:Undefined variable 'ERR_COMM_CHAN_NOT_READY'. 'short' assumed.
**Error**:'case' statement expression must have constant value
**Error**:Undefined variable 'ERR_COMM_BUS_ERR'. 'short' assumed.
**Error**:'case' statement expression must have constant value
*Warning*:Undefined procedure 'EndTimeSlice'. Global subroutine assumed.
**Error**:Undefined variable 'sensorI2CCustomFast'. 'short' assumed.
**Error**:'case' statement expression must have constant value
**Error**:Undefined variable 'sensorI2CCustomFast9V'. 'short' assumed.
**Error**:'case' statement expression must have constant value
**Error**:Undefined variable 'sensorI2CCustomFastSkipStates9V'. 'short' assumed.
**Error**:'case' statement expression must have constant value
**Error**:Undefined variable 'sensorI2CCustomFastSkipStates'. 'short' assumed.
**Error**:'case' statement expression must have constant value
*Warning*:Substituting similar variable 'playSound' for 'PlaySound'. Check spelling and letter case.

There were also what seems like syntactical errors in the display commands in the test program. While troubleshooting, I found that when I changed the platform type to NXT, the errors disappeared, leaving only minor warnings. I downloaded the test program to my nxt and it worked perfectly. Can someone tell me what is going on?
I am using windows 8 and the robotc 4.10 free trial.

Thanks!

Author:  mightor [ Sun Jul 06, 2014 11:32 pm ]
Post subject:  Re: Driver problems with robotc 4.0 and ev3

That would because I have not made the EV3 sub system for the drivers yet :) I need to make the common.h that works with the EV3. Right now it's just the NXT that works with the Driver Suite.

= 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/