|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
PIDController class (PIDSource/PIDOutput interfaces?)
I was looking at the WPILib codebase and saw that their PIDController class uses the PIDSource and PITOutput interfaces for I/O to/from the control loop. However I was surprised to see that no WPILib classes actually inherit from these interfaces.
Is the intention that I should inherit from PIDSource and PIDOutput as necessary? Ex: Code:
class PIDEncoder : public Encoder, public PIDSource
{
... (override PIDget() here)
};
class PIDJaguar : public Jaguar, public PIDOutput
{
... (override WritePID() here)
};
Thanks |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| So class of 07... | santosh | College Teams | 31 | 21-04-2007 09:52 |
| Cool Operator Interfaces | rsilverstein | Control System | 19 | 30-03-2007 00:14 |
| Carrying Operator Interfaces On Airplanes? | Richard Neese | Technical Discussion | 8 | 01-04-2003 21:32 |
| class of 03 | Andrew Rudolph | Chit-Chat | 6 | 04-03-2003 15:52 |
| In class? | Quain | Chit-Chat | 19 | 15-05-2002 10:33 |