DUNE: Uniform Navigational Environment  2017.01.0
Actuators::PWM::ServoPwm Class Reference

Public Member Functions

 ServoPwm (DUNE::Tasks::Task *task, int gpio, double value, bool refresh)
 
 ~ServoPwm (void)
 
void SetPwmValue (double _value)
 
bool CheckGPIOSate (void)
 

Public Attributes

int m_gpio
 
double m_value
 
bool m_gpio_state
 
bool m_refresh
 

Constructor & Destructor Documentation

Actuators::PWM::ServoPwm::ServoPwm ( DUNE::Tasks::Task task,
int  gpio,
double  value,
bool  refresh 
)
inline

References m_gpio, m_gpio_state, m_refresh, and m_value.

Actuators::PWM::ServoPwm::~ServoPwm ( void  )
inline

Destructor.

Member Function Documentation

bool Actuators::PWM::ServoPwm::CheckGPIOSate ( void  )
inline

References m_gpio_state.

Referenced by Actuators::PWM::Task::consume().

void Actuators::PWM::ServoPwm::SetPwmValue ( double  _value)
inline

References m_value.

Referenced by Actuators::PWM::Task::consume().

Member Data Documentation

int Actuators::PWM::ServoPwm::m_gpio

Referenced by ServoPwm().

bool Actuators::PWM::ServoPwm::m_gpio_state

Referenced by CheckGPIOSate(), and ServoPwm().

bool Actuators::PWM::ServoPwm::m_refresh

Referenced by ServoPwm().

double Actuators::PWM::ServoPwm::m_value

Referenced by ServoPwm(), and SetPwmValue().

Collaboration diagram for Actuators::PWM::ServoPwm:
Collaboration graph