View Single Post
  #1   Spotlight this post!  
Unread 28-01-2008, 19:51
darkdwarven's Avatar
darkdwarven darkdwarven is offline
Registered User
AKA: Phantom
FRC #2348
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Hawaii
Posts: 8
darkdwarven is an unknown quantity at this point
Unhappy Switch Function Problems

I am using a switch function with MPLAB within the autonomous section fo user_routines_fast.c and the code I've written up does not seem to be executing...ever. For example, when I load the attached code, the motors attached to the PWM outputs only turn for 3-4 seconds and stop. I asked another team about it and their response was that the delay right above the while loop was the reason. I changed the value to 570 and the results were the same.

Do you think the numbers next to the "#define" section are the issue or does MPLAB hate us and the switch function alltogether?

Any and all help is appreciated!
Thanks in advance,
Team 2348.
Attached Files
File Type: txt switch_function.txt (2.6 KB, 60 views)

Last edited by darkdwarven : 28-01-2008 at 19:52. Reason: The smiley did not match with the title