|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Concept of PID explained
Quote:
. With out a doubt, "int" should be used for both DrvCmd3 and PosError3. Curiosity question here. I noted significant differences between your paper and the IFI documents when it came to variable types and their ranges, primarily "int". Again I'm pleading ignorance here as I'm so new to coding. Why are they different? Again, Thanks for your help! It would not have been fun trying to figure out where we/I had gone wrong with the code with out your input. |
|
#2
|
|||
|
|||
|
Re: Concept of PID explained
Quote:
C interpreter used in the paper as a learning tool. Int is a 32 bit object in EiC, with the associated signed and unsigned range. Table 2 is for the C18 compiler used for the robot controller, where int is a 16 bit type, with the associated signed and unsigned range. The text discusses the issue. I hope that Table 2 is consistent with the data in IFI documents, and the MPLAB C18 compiler documentation, it has been checked in the past. If you note a difference, please identify the document and page number. |
|
#3
|
||||
|
||||
|
Re: Concept of PID explained
Quote:
Sorry for the confusion. I did not look beyond Table 1. I assumed, and there lies the problem, that the first table I came across covered what I was looking for. Either way, you were correct about the "int" declaration, it would have worked regardless which table I looked at. Thanks again. |
|
#4
|
||||
|
||||
|
Re: Concept of PID explained
is there a way to apply this concept onto easy C? Sorry but it's our rookie year and we have no clue what we're in for, but basically we have gone for a design of 3 wheels, 2 being powered by a motor and running on an axle, and 1 in the front being steered by another motor, but the problem that arises is that after steering the motor to the left what I want to do is when the joystick is back at the centre position I would like the wheel to also move back into the centre position. I've been doing alot of research on PID closed loops, but all I've been getting is the theory behind it and I have no clue how to apply the programming for it. We went with easyC and I'm wondering if it works with it. Thanks in advance!
Last edited by DarKCroNo : 27-01-2008 at 00:15. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PID cmd_drive can't drive straight? | gnormhurst | Programming | 4 | 18-02-2005 01:54 |
| Drive Straight C Code using Encoders without PID? | Chris_Elston | Programming | 17 | 15-02-2005 23:41 |
| All-Time PID Drive with Hall-effects: Coming along very nicely | jdong | Programming | 6 | 05-02-2005 19:39 |
| Whegs, PID, and climbing | phrontist | Technical Discussion | 9 | 02-05-2004 00:21 |
| PID control loops - closed loop feedback | KenWittlief | Technical Discussion | 56 | 26-04-2004 21:27 |