![]() |
Re: Odd counter problems
Quote:
|
Re: Odd counter problems
Well for the variable, it print Arm and then nothing after it.
|
Re: Odd counter problems
Could you paste the output from the code here?
|
Re: Odd counter problems
Well, I can't figure it out. It should work. Any suggestions, The Lucas?
--EDIT-- I know you're watching. :) |
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. :( |
Re: Odd counter problems
1 Attachment(s)
Here is a screenshot.
|
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. :) |
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 |
Re: Odd counter problems
Quote:
|
Re: Odd counter problems
Well its counting now.
|
Re: Odd counter problems
Quote:
Catastrophy, is your problem fixed now that it is counting, or do you have more problems? |
Re: Odd counter problems
Quote:
|
Re: Odd counter problems
well the motors still arnt stopping.
|
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) |
Re: Odd counter problems
Quote:
Code:
if (armcounter == 15) //will raise arm.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. |
| All times are GMT -5. The time now is 05:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi