Go to the documentation of this file.
68 void sendPacket(
unsigned char *data,
unsigned int len);
void setHandbrake(float current)
set handbreak 0 - MAX
float getPidPosNow()
get pid pos now
vesc_values getRealtimeValues()
get real time values
float * getMosfetsTemperature()
get mosfets temperature
float getAmpHours()
get amp hours
void setRPM(int32_t rpm)
set rpm to set 0 - MAX
int32_t getTachometerAbsValue()
get tachometer abs value
void setBrakeCurrent(float current)
set current 0 - MAX this value will passed directly to mcpwn / mcfoc / mcbldc and will be not truncat...
HardwareSerial * uartPort
void init(HardwareSerial *uartPort, HardwareSerial *debugPort)
init vesc interface
float getResetAvgVd()
get reset average vd
float getResetAvgIq()
get reset average iq
bool receivePacket(unsigned char *data)
helper method to receive packet
float getaAmpHoursCharged()
get amp hours charged
void setCurrent(float current)
set current 0 - MAX this value will passed directly to mcpwn / mcfoc / mcbldc and will be not truncat...
float getInputVoltage()
get input voltage
mc_configuration getMotorConfiguration()
get motor configuration
float getFetTemperature()
get MosFet temperature
bool getRealtimeValuesSelective(unsigned char *data, unsigned int index)
helper method to retrieve single values from vesc
uint8_t getFault()
get fault
float getAvgInputCurrent()
get average input current
float getAvgMotorCurrent()
get average motor current
HardwareSerial * debugPort
void sendPacket(unsigned char *data, unsigned int len)
helper method to send packet
uint8_t getControllerId()
get controller id
float getWattHoursCharged()
get watt hours charged
float getWattHours()
get watt hours
void setPosition(float position)
set rpm 0 - MAX
void setDuty(float duty)
set duty cycle range 0.0% - 1.0%
float getDutyCycleNow()
get duty cycle now
vesc_version getFirmwareVersion()
get firmware version
float getResetAvgId()
get reset average id
float getResetAvgVq()
get reset average vq
float getMotorTemperature()
get motor temperature
int32_t getTachometerValue()
get tachometer value