View unanswered posts | View active topics It is currently Thu Oct 02, 2014 3:03 am






Reply to topic  [ 4 posts ] 
Interrupts and elseif 
Author Message
Rookie

Joined: Sat Nov 22, 2008 8:06 pm
Posts: 48
Post Interrupts and elseif
Can the vex interrupts pins be used for anything other than the second sonar and quadrature encoder inputs? I've searched all over the internet but I have not been able to find anything about it.

Also, how come RobotC doesn't have an elseif statement? It has else and switch case, but there are somethings that you just need to have an elseif statement for.


Sat Nov 22, 2008 8:26 pm
Profile
Rookie

Joined: Sat Nov 22, 2008 8:06 pm
Posts: 48
Post Re: Interrupts and elseif
OK, my apologies :oops: , RobotC does indeed have "else if". I forgot that some versions of C have a space between the two.

Is there any difference between these sensor types: reflection, potentiometer, line follower, gyro, and accelerometer?


Sun Nov 23, 2008 12:02 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: Interrupts and elseif
Quote:
Is there any difference between these sensor types: reflection, potentiometer, line follower, gyro, and accelerometer?


The Reflection and Line Follower are pretty much the same. The Potentiometer, Gyro, and Accelerometer sensors all work differently, and have (at least slightly) different drivers for their types.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Dec 04, 2008 12:08 am
Profile
Rookie

Joined: Thu Dec 04, 2008 4:40 pm
Posts: 8
Post Re: Interrupts and elseif
I was working with an rcx for a class project, and we specified our attached light sensor as a "reflection" sensor. It worked wonderfully. Also, you can have more than one if command. (Saying just in case)

_________________
Trying to help you will be like trying to find a worm in the middle of a blizzard. A white worm.


Fri Dec 05, 2008 6:14 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.