26 #include "VMXErrors.h" 38 void ReleaseResources();
49 bool GetMotorControl(uint8_t motor,
bool& active,
bool& brake,
bool& invert_output,
bool& invert_encoder, VMXErrorCode *errcode);
50 bool SetMotorControl(uint8_t motor,
bool active,
bool brake,
bool invert_output,
bool invert_encoder, VMXErrorCode *errcode);
52 bool GetMotorOutputLevel(uint8_t motor,
float& output_level, VMXErrorCode *errcode);
53 bool SetMotorOutputLevel(uint8_t motor,
float output_level, VMXErrorCode *errcode);
55 bool GetMotorCurrent(uint8_t motor,
float& current, VMXErrorCode *errcode);
57 bool GetRelayState(uint8_t motor,
bool &closed, VMXErrorCode *errcode);
58 bool SetRelayState(uint8_t motor,
bool closed, VMXErrorCode *errcode);
60 bool GetLEDState(uint8_t led,
bool &on, VMXErrorCode *errcode);
61 bool SetLEDState(uint8_t led,
bool on, VMXErrorCode *errcode);
63 bool GetButtonState(uint8_t button,
bool& pressed, VMXErrorCode *errcode);
66 bool GetPIDControl(uint8_t motor, PIDControlMode& mode,
bool& reset_count_on_distance, VMXErrorCode *errcode);
67 bool SetPIDControl(uint8_t motor, PIDControlMode mode,
bool reset_count_on_distance, VMXErrorCode *errcode);
69 bool GetPIDState(uint8_t motor,
bool& active,
bool& on_target,
bool& encoder_allocated, VMXErrorCode *errcode);
71 bool GetPIDP(uint8_t motor,
float& coefficient, VMXErrorCode *errcode);
72 bool SetPIDP(uint8_t motor,
float coefficient, VMXErrorCode *errcode);
74 bool GetPIDI(uint8_t motor,
float& coefficient, VMXErrorCode *errcode);
75 bool SetPIDI(uint8_t motor,
float coefficient, VMXErrorCode *errcode);
77 bool GetPIDD(uint8_t motor,
float& coefficient, VMXErrorCode *errcode);
78 bool SetPIDD(uint8_t motor,
float coefficient, VMXErrorCode *errcode);
80 bool GetPIDF(uint8_t motor,
float& coefficient, VMXErrorCode *errcode);
81 bool SetPIDF(uint8_t motor,
float coefficient, VMXErrorCode *errcode);
83 bool GetPIDTolerance(uint8_t motor,
float& tolerance_epsilon, VMXErrorCode *errcode);
84 bool SetPIDTolerance(uint8_t motor,
float tolerance_epsilon, VMXErrorCode *errcode);
Top-level Library Class providing access to all VMX-pi functionality.
Definition: VMXPi.h:40
The VMXTeddy class provides access to VMX power management functions.
Definition: VMXTeddy.h:31
VMXTeddy teddy
The VMXTeddy object providing access to VMXzero Teddy functionality.
Definition: VMXZero.h:62
Top-level Library Class providing access to all VMXzero functionality.
Definition: VMXZero.h:40