Feature can #4
@@ -69,9 +69,9 @@ struct MotorFeedback {
|
|||||||
uint8_t error = 0;
|
uint8_t error = 0;
|
||||||
int16_t current = 0;
|
int16_t current = 0;
|
||||||
uint16_t chops = 0;
|
uint16_t chops = 0;
|
||||||
bool hallA = false,
|
bool hallA = false;
|
||||||
hallB = false,
|
bool hallB = false;
|
||||||
hallC = false;
|
bool hallC = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline uint16_t calculateChecksum(MotorFeedback feedback) {
|
inline uint16_t calculateChecksum(MotorFeedback feedback) {
|
||||||
@@ -92,7 +92,7 @@ struct Feedback {
|
|||||||
int16_t batVoltage = 0;
|
int16_t batVoltage = 0;
|
||||||
int16_t boardTemp = 0;
|
int16_t boardTemp = 0;
|
||||||
|
|
||||||
int16_t timeoutCntSerial = 0;
|
int16_t timeoutCntSerial = 0;
|
||||||
|
|
||||||
uint16_t checksum;
|
uint16_t checksum;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user