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

Interrupts and elseif
http://robotc.net/forums/viewtopic.php?f=11&t=967
Page 1 of 1

Author:  bluesaberist [ Sat Nov 22, 2008 8:26 pm ]
Post subject:  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.

Author:  bluesaberist [ Sun Nov 23, 2008 12:02 am ]
Post subject:  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?

Author:  jbflot [ Thu Dec 04, 2008 12:08 am ]
Post subject:  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.

Author:  commander599 [ Fri Dec 05, 2008 6:14 pm ]
Post subject:  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)

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