RoboidControl
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Passer::RoboidContol::ServoMotor Class Referenceabstract

#include <ServoMotor.h>

Inheritance diagram for Passer::RoboidContol::ServoMotor:

Public Types

enum  ControlMode { Position , Velocity }
 

Public Member Functions

 ServoMotor ()
 
virtual void SetTargetAngle (float angle)
 
virtual float GetTargetAngle ()
 
virtual void SetMaximumVelocity (float maxVelocity)
 
virtual void SetTargetVelocity (float velocity)
 
virtual float GetTargetVelocity ()
 
virtual void Update (float currentTimeMs)
 

Public Attributes

float minAngle = -90.0F
 
float maxAngle = 90.0F
 
ControlMode controlMode = ControlMode::Position
 

Protected Member Functions

virtual void SetAngle (float angle)=0
 

Protected Attributes

bool hasTargetAngle = false
 
float targetAngle = 0.0F
 
float maxVelocity = 0.0F
 
float targetVelocity = 0.0F
 
float limitedTargetAngle = 0.0F
 
float lastUpdateTimeMs = 0.0F
 

Member Enumeration Documentation

◆ ControlMode

Enumerator
Position 
Velocity 

Constructor & Destructor Documentation

◆ ServoMotor()

ServoMotor::ServoMotor ( )

Member Function Documentation

◆ SetTargetAngle()

void ServoMotor::SetTargetAngle ( float  angle)
virtual

◆ GetTargetAngle()

float ServoMotor::GetTargetAngle ( )
virtual

◆ SetMaximumVelocity()

void ServoMotor::SetMaximumVelocity ( float  maxVelocity)
virtual

◆ SetTargetVelocity()

void ServoMotor::SetTargetVelocity ( float  velocity)
virtual

◆ GetTargetVelocity()

float ServoMotor::GetTargetVelocity ( )
virtual

◆ Update()

void ServoMotor::Update ( float  currentTimeMs)
virtual

◆ SetAngle()

virtual void Passer::RoboidContol::ServoMotor::SetAngle ( float  angle)
protectedpure virtual

Member Data Documentation

◆ minAngle

float Passer::RoboidContol::ServoMotor::minAngle = -90.0F

◆ maxAngle

float Passer::RoboidContol::ServoMotor::maxAngle = 90.0F

◆ controlMode

ControlMode Passer::RoboidContol::ServoMotor::controlMode = ControlMode::Position

◆ hasTargetAngle

bool Passer::RoboidContol::ServoMotor::hasTargetAngle = false
protected

◆ targetAngle

float Passer::RoboidContol::ServoMotor::targetAngle = 0.0F
protected

◆ maxVelocity

float Passer::RoboidContol::ServoMotor::maxVelocity = 0.0F
protected

◆ targetVelocity

float Passer::RoboidContol::ServoMotor::targetVelocity = 0.0F
protected

◆ limitedTargetAngle

float Passer::RoboidContol::ServoMotor::limitedTargetAngle = 0.0F
protected

◆ lastUpdateTimeMs

float Passer::RoboidContol::ServoMotor::lastUpdateTimeMs = 0.0F
protected

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