|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Code error?
Alright our team has been trying to run a motor through a pwm with the buttons on the joystick.
Code:
if (p1_sw_aux1 = 1 && p1_sw_aux2 = 0)
{
pwm10 = 255
}
else if (p1_sw_aux1 = 0 && p1_sw_aux2 = 1)
{
pwm10 = 0
}
else
{
pwm10 = 127
}
We also tried just using pwm10 = 255 to see if anything would happen and we got absolutely nothing in return. The motor just constantly sits there, we think its an electrical problem but we are still getting told its a programming error. If this is true can anyone tell us what it is we are doing wrong? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code Error? | darkdwarven | Programming | 1 | 08-02-2008 00:42 |
| Error in code light on, trouble finding error | Bryan Herbst | Programming | 16 | 12-10-2007 21:59 |
| Code error on RC after downloading "bells and whistles" version of Kevins camera code | DanDon | Programming | 6 | 10-01-2006 18:07 |
| Error w/ FRC code | JamesBrown | Programming | 2 | 08-01-2005 16:17 |
| C++ Code Error? | Adam Shapiro | Programming | 9 | 20-01-2003 13:24 |