
02-05-2007, 12:05
|
 |
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
|
|
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,933
|
|
|
Re: Vex Programming Question
Quote:
Originally Posted by Kingofl337
The radio is only needed when using a template for FVC.
Ports 1-4 are configured to analog inputs if your using them with the bump
sensors. You need to hit F5 and change the ports to digital inputs or move t
he bump switch to ports 5-10.
Another feature in easyC that is not used as much as it should be is the
online window. This will show you real time what the controller is seeing
on its inputs.
|
I beg to differ.
My problem occured a year ago using EasyC 1.x to write/compile a program that replaced the default user code that came in the Microcontroller. The default Master code that came with my Starter Kit from Radio Shack was in the microcontroller at the time. I wanted to use a bumper switch to alter/control my robot's otherwise autonomous behavior.
No templates were explicitly involved.
In that configuration, using the motor/servo commands I chose to employ in my program, to get the motors/servos to turn I had to turn on the transmitter. Everything else in the program was working just fine, but the commands that were supposed to make the PWM output ports do their thing were not working until I turned on the transmitter.
Blake
PS: Even if the bumper switch is attached to a port configured for analog input, isn't there a very high probability that the values that get returned will be either the expected 0 or the expected 255. Or... will the GetDigitalInput function simply fail silently (what happens?) at runtime if the port it tries to read is configured for analog use?
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
|