|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: Odd counter problems
Quote:
![]() |
|
#17
|
|||
|
|||
|
Re: Odd counter problems
Well for the variable, it print Arm and then nothing after it.
|
|
#18
|
||||
|
||||
|
Re: Odd counter problems
Could you paste the output from the code here?
|
|
#19
|
||||
|
||||
|
Re: Odd counter problems
Well, I can't figure it out. It should work. Any suggestions, The Lucas?
--EDIT-- I know you're watching. ![]() |
|
#20
|
||||
|
||||
|
Re: Odd counter problems
Obviously not. Try:
Code:
printf("Arm: %d", armcounter);
If that doesn't work, I don't know what to do. Sorry. ![]() |
|
#21
|
|||
|
|||
|
Re: Odd counter problems
Here is a screenshot.
|
|
#22
|
||||
|
||||
|
Re: Odd counter problems
I edited my last post. Take a look at it. Sorry I can't be of any more help.
![]() --EDIT-- Someone else will come along and figure it out I'm sure. ![]() |
|
#23
|
|||
|
|||
|
Re: Odd counter problems
Ok now nothing is being printed Texan from what you said to put in.
-EDIT- its saying TestAmr, 15TestArm, 15TestArm over and over now |
|
#24
|
||||
|
||||
|
Re: Odd counter problems
Quote:
![]() |
|
#25
|
|||
|
|||
|
Re: Odd counter problems
Well its counting now.
|
|
#26
|
||||||
|
||||||
|
Re: Odd counter problems
Quote:
Catastrophy, is your problem fixed now that it is counting, or do you have more problems? |
|
#27
|
||||
|
||||
|
Re: Odd counter problems
Quote:
|
|
#28
|
|||
|
|||
|
Re: Odd counter problems
well the motors still arnt stopping.
|
|
#29
|
||||||
|
||||||
|
Re: Odd counter problems
Quote:
If you are using the corrections that Rob posted, pwm06 will go forward for about 1/3 a second and then go in reverse forever. You also have a similar behavior for pwm07 (assuming you corrected the errors) |
|
#30
|
||||
|
||||
|
Re: Odd counter problems
Quote:
Code:
if (armcounter == 15) //will raise arm.
pwm06=0;
else {
armcounter++;
}
pwm06=255;
you said that the "motors weren't stopping" - of course they aren't: 0 is full reverse, 255 is full forward. if you want a motor to stop, set the PWM to 127. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Meeting FIRST People in odd places | Jeff Waegelin | General Forum | 219 | 04-03-2012 13:10 |
| Do you all have problems with.... | Munkaboo | Website Design/Showcase | 19 | 03-03-2003 19:51 |
| Joystick problems | archiver | 2001 | 3 | 24-06-2002 02:40 |
| A couple of problems I observed at the MAR | archiver | 2000 | 3 | 23-06-2002 22:27 |
| Radio problems -- not | archiver | 2000 | 1 | 23-06-2002 22:23 |