Whelch
02-06-2010, 11:40
I'm a very inexperienced programmer so if this question sounds dumb, i appologize in advanced. I'm doing a school poject with my robotics team and we're programming a very basic robot, but easier said than done when you don't know how to program in the first place.
We're using the MPlab environment, and i've got two questions to ask.
1) what is the difference between Get|OID - OIA - Rx|Input?
am i to understand OIA gives values between 0-255? and is reserved for ports 1-4?
and OID is 5/6 and either 1/0?
and Rx is whatever the port delivers?
well if this is the case, then how am i able to use (and the robot does what i want when i do) OID for ports 1-4 (but not 5-6) and Rx compiles and returns an error 'could not find definition of symbol 'GetRxInput''? (OIA for ports 1-2 work (and i havn't tested for 3-4 because i don't need them))
the second question i have is. . .
2) how can i get more than just 2 (or in my bizare case, 4) digital inputs from one controller?
also, we're using WPIlib - - i don't know if that's obvious or not but yeah . . .
We're using the MPlab environment, and i've got two questions to ask.
1) what is the difference between Get|OID - OIA - Rx|Input?
am i to understand OIA gives values between 0-255? and is reserved for ports 1-4?
and OID is 5/6 and either 1/0?
and Rx is whatever the port delivers?
well if this is the case, then how am i able to use (and the robot does what i want when i do) OID for ports 1-4 (but not 5-6) and Rx compiles and returns an error 'could not find definition of symbol 'GetRxInput''? (OIA for ports 1-2 work (and i havn't tested for 3-4 because i don't need them))
the second question i have is. . .
2) how can i get more than just 2 (or in my bizare case, 4) digital inputs from one controller?
also, we're using WPIlib - - i don't know if that's obvious or not but yeah . . .