View unanswered posts | View active topics It is currently Fri Sep 19, 2014 1:53 pm






Reply to topic  [ 4 posts ] 
Help with sensors 
Author Message
Rookie

Joined: Mon Mar 26, 2012 12:48 am
Posts: 1
Post 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?


Mon Mar 26, 2012 1:02 am
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post 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

_________________
sudo rm -rf /


Mon Mar 26, 2012 2:09 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post 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.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Apr 05, 2012 3:29 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Help with sensors
My apologies, I've been behind on updates.

_________________
sudo rm -rf /


Thu Apr 05, 2012 4:02 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

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.