imenco_pt  0.1.1
A ROS2 Driver for the Imenco Pan/Tilt acutator
Loading...
Searching...
No Matches
imenco_pt::packets::PFCmd Class Reference

Corresponds to an imenco PF command which sets porpotional pand and tilt controls. More...

#include <pf.hpp>

Inheritance diagram for imenco_pt::packets::PFCmd:
Collaboration diagram for imenco_pt::packets::PFCmd:

Public Member Functions

void setPan (float value)
 setPan sets the pan speed and direction
 
void setTilt (float value)
 
- Public Member Functions inherited from imenco_pt::packets::CmdPacket< PFCmdData >
output_T * head_as (size_t i=0)
 
output_T * data_as (size_t i=0)
 
output_T * tail_as (size_t i=0)
 
output_T * as (size_t i=0)
 
byteto_ptr ()
 
bytefrom_ptr ()
 
bytelength_ptr ()
 
char * cmd_id_ptr ()
 
void initalize (uint8_t to=3, uint8_t from=1)
 initalize adds the separator characters and the < > to the head and the tail of the message.
 
void computeChecksum ()
 
void setBit (uint8_t *data, uint8_t index, bool state)
 
std::vector< byteserialize ()
 
size_t size ()
 

Static Public Attributes

static const uint8_t MAX_SPEED = 0x64
 
- Static Public Attributes inherited from imenco_pt::packets::CmdPacket< PFCmdData >
static const size_t HEAD_SIZE
 
static const size_t TAIL_SIZE
 

Additional Inherited Members

- Public Attributes inherited from imenco_pt::packets::CmdPacket< PFCmdData >
char head [HEAD_SIZE]
 
PFCmdData data
 
char tail [TAIL_SIZE]
 

Detailed Description

Corresponds to an imenco PF command which sets porpotional pand and tilt controls.

Member Function Documentation

◆ setPan()

void imenco_pt::packets::PFCmd::setPan ( float value)
inline

setPan sets the pan speed and direction

Parameters
valuea value between -1.0 and 1.0. Negative values pan left positive values pan right.

◆ setTilt()

void imenco_pt::packets::PFCmd::setTilt ( float value)
inline

Member Data Documentation

◆ MAX_SPEED

const uint8_t imenco_pt::packets::PFCmd::MAX_SPEED = 0x64
static

The documentation for this class was generated from the following file: