Now you can download a copy of these docs so you can use them offline! Download now
Servo Class Reference
#include <Servo.h>
Inheritance diagram for Servo:

Collaboration diagram for Servo:

Public Member Functions | |
| Servo (UINT32 channel) | |
| Servo (UINT8 moduleNumber, UINT32 channel) | |
| void | Set (float value) |
| void | SetOffline () |
| float | Get () |
| void | SetAngle (float angle) |
| float | GetAngle () |
Static Public Member Functions | |
| static float | GetMaxAngle () |
| static float | GetMinAngle () |
Detailed Description
Standard hobby style servo.
The range parameters default to the appropriate values for the Hitec HS-322HD servo provided in the FIRST Kit of Parts in 2008.
Definition at line 19 of file Servo.h.
Constructor & Destructor Documentation
| Servo::Servo | ( | UINT32 | channel | ) | [explicit] |
| Servo::Servo | ( | UINT8 | moduleNumber, | |
| UINT32 | channel | |||
| ) |
Member Function Documentation
| float Servo::Get | ( | ) |
| float Servo::GetAngle | ( | void | ) |
| void Servo::Set | ( | float | value | ) |
| void Servo::SetAngle | ( | float | degrees | ) |
Set the servo angle.
Assume that the servo angle is linear with respect to the PWM value (big assumption, need to test).
Servo angles that are out of the supported range of the servo simply "saturate" in that direction In other words, if the servo has a range of (X degrees to Y degrees) than angles of less than X result in an angle of X being set and angles of more than Y degrees result in an angle of Y being set.
- Parameters:
-
degrees The angle in degrees to set the servo.
| void Servo::SetOffline | ( | ) |
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:36 for WPILibC++ by
1.7.1