#include <driver.h>
List of all members.
Detailed Description
Definition at line 60 of file driver.h.
Constructor & Destructor Documentation
Constructor - opens port
- Parameters:
-
ser | serial::Serial instance ready to communciate with device. |
Definition at line 66 of file driver.h.
Member Function Documentation
get limiting position/speed in counts or counts/second
- Parameters:
-
type | 'p' or 't' (pan or tilt) |
limType | {'n', 'x', 'l', 'u'} (min position, max position, min speed, max speed) |
- Returns:
- limiting position/speed
Definition at line 151 of file driver.cpp.
- Parameters:
-
- Returns:
- Maximum position in radians
Definition at line 110 of file driver.h.
- Parameters:
-
- Returns:
- Maximum speed in radians/second
Definition at line 127 of file driver.h.
- Parameters:
-
- Returns:
- Minimum position in radians
Definition at line 102 of file driver.h.
- Parameters:
-
- Returns:
- Minimum speed in radians/second
Definition at line 119 of file driver.h.
get the control mode, position or velocity
- Returns:
- 'v' for velocity, 'i' for position
Definition at line 279 of file driver.cpp.
- Parameters:
-
- Returns:
- position in radians
Definition at line 168 of file driver.cpp.
get radian/count resolution
- Parameters:
-
- Returns:
- pan resolution if type=='p', tilt resolution if type=='t'
Definition at line 133 of file driver.cpp.
- Parameters:
-
- Returns:
- resolution in radians/count
Definition at line 93 of file driver.h.
- Parameters:
-
- Returns:
- speed in radians/second
Definition at line 216 of file driver.cpp.
- Returns:
- true if initialization succeeds.
Definition at line 64 of file driver.cpp.
- Returns:
- true if the serial port is open and PTU initialized.
Definition at line 59 of file driver.cpp.
Sends a string to the PTU
- Parameters:
-
- Returns:
- response string from unit.
Definition at line 96 of file driver.cpp.
set the control mode, position or velocity
- Parameters:
-
type | 'v' for velocity, 'i' for position |
- Returns:
- True if successfully sent command
Definition at line 263 of file driver.cpp.
Moves the PTU to the desired position. If Block is true, the call blocks until the desired position is reached
- Parameters:
-
type | 'p' or 't' |
pos | desired position in radians |
Block | block until ready |
- Returns:
- True if successfully sent command
Definition at line 185 of file driver.cpp.
sets the desired speed in radians/second
- Parameters:
-
type | 'p' or 't' |
speed | desired speed in radians/second |
- Returns:
- True if successfully sent command
Definition at line 234 of file driver.cpp.
Member Data Documentation
Max Pan in Counts.
Definition at line 184 of file driver.h.
Min Pan in Counts.
Definition at line 183 of file driver.h.
pan resolution (rads/count)
Definition at line 204 of file driver.h.
Max Pan Speed in Counts/second.
Definition at line 190 of file driver.h.
Min Pan Speed in Counts/second.
Definition at line 189 of file driver.h.
Max Tilt in Counts.
Definition at line 182 of file driver.h.
Min Tilt in Counts.
Definition at line 181 of file driver.h.
tilt resolution (rads/count)
Definition at line 203 of file driver.h.
Max Tilt Speed in Counts/second.
Definition at line 188 of file driver.h.
Min Tilt Speed in Counts/second.
Definition at line 187 of file driver.h.
The documentation for this class was generated from the following files: