|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Camera for turning
I have actually searched all over chiefdelphi for information. I found a lot except that I couldn't find anything about an output to control more than one pwm.
|
|
#2
|
||||
|
||||
|
Re: Camera for turning
i actually have a bit of code that may help you.
PHP Code:
Last edited by Uberbots : 26-01-2007 at 00:22. Reason: MINUS D NOT PLUS D... oops |
|
#3
|
|||
|
|||
|
Re: Camera for turning
Thanks, I'll try that. One question: What's the limit mix for. I have never seen it on a control loop.
|
|
#4
|
||||
|
||||
|
Re: Camera for turning
limiting output, of course. you don't want your unsigned char to overflow, that would be bad
|
|
#5
|
|||
|
|||
|
Re: Camera for turning
While using your code how do i implement a target value and how do I out put it to four motors. Sorry for all the questions but PID loops are still very new to me.
|
|
#6
|
||||
|
||||
|
Re: Camera for turning
the function is returning a motor value from 0-255. it is up to you to map it to your motors, like you would a joystick.
as for inputting the error... you need to figure out your error much like you did in your original loop. with the dual targets this year, though, you will have to do a little (lot) of extra math and AI to get your desired target. |
|
#7
|
|||
|
|||
|
Re: Camera for turning
Quote:
All you had to do was ask... ![]() |
|
#8
|
|||||
|
|||||
|
Re: Camera for turning
A brief look at your existing code reveals that to be a non-issue. If you supply the same PID-computed value to all your motor pwms, your robot will turn in place. That's exactly what you want it to do, isn't it?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Turning 18... | Astronouth7303 | Chit-Chat | 16 | 22-05-2006 09:29 |
| Turning Trouble! | Cadetdan | General Forum | 18 | 05-03-2005 08:55 |
| Slowing down Camera drive turning | Zalumaskov | Programming | 1 | 27-02-2005 10:11 |
| Connections For Camera | Eupher | Programming | 3 | 02-02-2005 14:35 |
| Canadian fined for turning left while on his Segway | MrToast | Dean Kamen's Inventions | 2 | 21-10-2004 17:34 |