VMX-pi C++ HAL Library for Raspberry Pi
VMX-pi Robotics Controller & Vision/Motion Processor
Public Types | Public Member Functions | Friends | List of all members
VMXTeddy Class Reference

The VMXTeddy class provides access to VMX power management functions. More...

#include <VMXTeddy.h>

Public Types

enum  PIDControlMode { Disabled, Velocity, Distance }
 

Public Member Functions

bool GetMotorControl (uint8_t motor, bool &active, bool &brake, bool &invert_output, bool &invert_encoder, VMXErrorCode *errcode)
 
bool SetMotorControl (uint8_t motor, bool active, bool brake, bool invert_output, bool invert_encoder, VMXErrorCode *errcode)
 
bool GetMotorOutputLevel (uint8_t motor, float &output_level, VMXErrorCode *errcode)
 
bool SetMotorOutputLevel (uint8_t motor, float output_level, VMXErrorCode *errcode)
 
bool GetMotorCurrent (uint8_t motor, float &current, VMXErrorCode *errcode)
 
bool GetRelayState (uint8_t motor, bool &closed, VMXErrorCode *errcode)
 
bool SetRelayState (uint8_t motor, bool closed, VMXErrorCode *errcode)
 
bool GetLEDState (uint8_t led, bool &on, VMXErrorCode *errcode)
 
bool SetLEDState (uint8_t led, bool on, VMXErrorCode *errcode)
 
bool GetButtonState (uint8_t button, bool &pressed, VMXErrorCode *errcode)
 
bool GetPIDControl (uint8_t motor, PIDControlMode &mode, bool &reset_count_on_distance, VMXErrorCode *errcode)
 
bool SetPIDControl (uint8_t motor, PIDControlMode mode, bool reset_count_on_distance, VMXErrorCode *errcode)
 
bool GetPIDState (uint8_t motor, bool &active, bool &on_target, bool &encoder_allocated, VMXErrorCode *errcode)
 
bool GetPIDP (uint8_t motor, float &coefficient, VMXErrorCode *errcode)
 
bool SetPIDP (uint8_t motor, float coefficient, VMXErrorCode *errcode)
 
bool GetPIDI (uint8_t motor, float &coefficient, VMXErrorCode *errcode)
 
bool SetPIDI (uint8_t motor, float coefficient, VMXErrorCode *errcode)
 
bool GetPIDD (uint8_t motor, float &coefficient, VMXErrorCode *errcode)
 
bool SetPIDD (uint8_t motor, float coefficient, VMXErrorCode *errcode)
 
bool GetPIDF (uint8_t motor, float &coefficient, VMXErrorCode *errcode)
 
bool SetPIDF (uint8_t motor, float coefficient, VMXErrorCode *errcode)
 
bool GetPIDTolerance (uint8_t motor, float &tolerance_epsilon, VMXErrorCode *errcode)
 
bool SetPIDTolerance (uint8_t motor, float tolerance_epsilon, VMXErrorCode *errcode)
 

Friends

class VMXPi
 
class VMXZero
 

Detailed Description

The VMXTeddy class provides access to VMX power management functions.


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