![]() |
Re: Raven_Writer
Quote:
|
Re: Re: Raven_Writer
Quote:
|
Oh.....(-.-); D'oh! I think you're right.....but like I said, I'm a newb.
|
Hey Caleb: did you restructure the innovation first default code to remove the if/else, selects, and do loops? If so could you post that to the white pages here?
|
Yes...that's
"Hey Caleb: did you restructure the innovation first default code to remove the if/else, selects, and do loops? If so could you post that to the white pages here?"
Yes...that's what I did. The program didn't seem to mind the do loop, but I had to restructure the if/then and switch/case segments. I uploaded it to the white papers, but I don't see it on there, yet... I assume it has to be screened first :) |
Re: Yes...that's
Quote:
|
BAH
The program I uploaded to the white papers has some problems with it... I'm using RoboEmu now to try and simulate whether or not it works, and the main loop does not...Can any of you take it off?
|
Isn't there an option for the author of the white paper to take it down?
|
Re: BAH
Quote:
|
The cleaned up one is there but the limiter section does not work the same way as the default code. It will only check one limit per loop.
|
asdf
OOPS...you're right...
|
Fix?
I believe that this will fix it:
'---------- PWM outputs Limited by Limit Switches --------------------------- IF rc_sw5 = 1 Then SW5 ChkLimit_Six: IF rc_sw6 = 1 Then SW6 ChkLimit_Seven: IF rc_sw7 = 1 Then SW7 ChkLimit_Eight: IF rc_sw8 = 1 Then SW8 ChkLimit_Nine: IF rc_sw9 = 1 Then SW9 ChkLimit_Ten: IF rc_sw10 = 1 Then SW10 ChkLimit_Eleven: IF rc_sw11 = 1 Then SW11 ChkLimit_Twelve: IF rc_sw12 = 1 Then SW12 ChkLimit_Thirteen: IF rc_sw13 = 1 Then SW13 ChkLimit_Fourteen: IF rc_sw14 = 1 Then SW14 ChkLimit_Fifteen: IF rc_sw15 = 1 Then SW15 ChkLimit_Sixteen: IF rc_sw16 = 1 Then SW16 goto Done_With_Limiter SW5: p3_y = p3_y MAX 127 goto ChkLimit_Six SW6: p3_y = p3_y MIN 127 goto ChkLimit_Seven SW7: p4_y = p4_y MAX 127 goto ChkLimit_Eight SW8: p4_y = p4_y MIN 127 goto ChkLimit_Nine SW9: p1_wheel = p1_wheel MAX 127 goto ChkLimit_Ten SW10: p1_wheel = p1_wheel MIN 127 goto ChkLimit_Eleven SW11: p2_wheel = p2_wheel MAX 127 goto ChkLimit_Twelve SW12: p2_wheel = p2_wheel MIN 127 goto ChkLimit_Thirteen SW13: p3_wheel = p3_wheel MAX 127 goto ChkLimit_Fourteen SW14: p3_wheel = p3_wheel MIN 127 goto ChkLimit_Fifteen SW15: p4_wheel = p4_wheel MAX 127 goto ChkLimit_Sixteen SW16: p4_wheel = p4_wheel MIN 127 Done_With_Limiter: |
| All times are GMT -5. The time now is 20:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi