Jaguar Class Reference
#include <Jaguar.h>
List of all members.
|
Public Member Functions |
| Jaguar (unsigned channel) |
| Jaguar (unsigned slot, unsigned channel) |
float | Get (void) |
void | Set (float value) |
Detailed Description
Luminary Micro
Jaguar Speed Control
Constructor & Destructor Documentation
Jaguar::Jaguar |
( |
unsigned |
channel |
) |
|
Constructor that assumes the default digital module.
- Parameters:
-
| channel | The PWM channel on the digital module that the Jaguar is attached to. |
Jaguar::Jaguar |
( |
unsigned |
slot, |
|
|
unsigned |
channel | |
|
) |
| | |
Constructor that specifies the digital module.
- Parameters:
-
| slot | The slot in the chassis that the digital module is plugged into. |
| channel | The PWM channel on the digital module that the Jaguar is attached to. |
Member Function Documentation
float Jaguar::Get |
( |
void |
|
) |
[virtual] |
Get the recently set value of the PWM.
- Returns:
- The most recently set value for the PWM between -1.0 and 1.0.
Implements SpeedController.
void Jaguar::Set |
( |
float |
speed |
) |
[virtual] |
Set the PWM value.
The PWM value is set using a range of -1.0 to 1.0, appropriately scaling the value for the FPGA.
- Parameters:
-
| speed | The speed value between -1.0 and 1.0 to set. |
Implements SpeedController.
The documentation for this class was generated from the following files:
- C:/WindRiver/workspace/WPILib/Jaguar.h
- C:/WindRiver/workspace/WPILib/Jaguar.cpp