Functions which handle the motor current. More...
Modules | |
Advanced informations | |
Enumerations | |
enum | eCurrentGet |
clusters select values for reading the motor currents More... | |
Request Funktions | |
void | currents_request (eRequestType request) |
Requests new data from the motor currents. More... | |
uint8_t | currents_received (void) |
Indicates if new data for the data block sMD_SensCurrent was received. More... | |
uint8_t | currents_changed (void) |
Indicates if new data changed the data block sMD_SensCurrent. More... | |
Access Funktions | |
uint16_t | currents_get (eCurrentGet select) |
Returns the last stored current of the selected motor. More... | |
Functions which handle the motor current.
The motor currents are part of the driving module. All actions, like reading their value, involve internal TWI communication. This may take some milliseconds (delay time).
example
enum eCurrentGet |
clusters select values for reading the motor currents
Enumerator | |
---|---|
kCurrentGetLeft | constants (1): left motor current |
kCurrentGetRight | constants (2): right motor current |
uint8_t currents_changed | ( | void | ) |
Indicates if new data changed the data block sMD_SensCurrent.
The return value is boolean.
uint16_t currents_get | ( | eCurrentGet | select | ) |
Returns the last stored current of the selected motor.
This function relies on the internal data block sMD_SensCurrent - for new data use currents_request().
select | value of the selected motor - see also eCurrentGet |
uint8_t currents_received | ( | void | ) |
Indicates if new data for the data block sMD_SensCurrent was received.
The return value is boolean.
void currents_request | ( | eRequestType | request | ) |
Requests new data from the motor currents.
For details on the request schema see The general request.
Involved data blocks are:
sMD_SensCurrent