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

Help with sensors
http://robotc.net/forums/viewtopic.php?f=11&t=4399
Page 1 of 1

Author:  RB73 [ Mon Mar 26, 2012 1:02 am ]
Post subject:  Help with sensors

I have a couple questions concerning some vex sensors.

1. For some reason, RobotC wont recognize nMotorEncoder[] as a function, so I cant reset the encoders. Any tips on how to fix this?

2. Vex Analog Accelerometer. (http://www.vexrobotics.com/products/acc ... -2332.html) anyone know how to program with it?

Author:  magicode [ Mon Mar 26, 2012 2:09 am ]
Post subject:  Re: Help with sensors

nMotorEncoder is for the NXT, not VEX. For information on programming the accelerometer, look at the ROBOTC sample programs and the VEX wiki: http://www.vexforum.com/wiki/index.php/ ... meter_V1.0

Author:  jbflot [ Thu Apr 05, 2012 3:29 pm ]
Post subject:  Re: Help with sensors

Quote:
nMotorEncoder is for the NXT, not VEX.


Actually, nMotorEncoder was added for the Cortex in ROBOTC 3.06, to support the new integrated encoders.

Make sure you're using the latest version of ROBOTC, 3.08.

Author:  magicode [ Thu Apr 05, 2012 4:02 pm ]
Post subject:  Re: Help with sensors

My apologies, I've been behind on updates.

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