energy change
This commit is contained in:
@@ -15,6 +15,8 @@ struct mcu_data{
|
||||
uint8_t mark;
|
||||
uint8_t use_classifier;
|
||||
uint8_t enemy_color;
|
||||
int delta_x;
|
||||
int delta_y;
|
||||
};
|
||||
|
||||
extern mcu_data mcuData;
|
||||
|
||||
@@ -39,6 +39,7 @@ void uartReceive(Serial *pSerial) {
|
||||
memcpy(&mcuData, buffer, sizeof(mcuData));
|
||||
// LOGM("Get, state:%c, mark:%d!", mcuData.state, (int) mcuData.mark);
|
||||
// LOGM("Get yaw: %f, pitch: %f!", mcuData.curr_yaw, mcuData.curr_pitch);
|
||||
// LOGM("Get delta x: %d, delta y: %d!", mcuData.delta_x, mcuData.delta_y);
|
||||
// static int t = time(nullptr);
|
||||
// static int cnt = 0;
|
||||
// if(time(nullptr) > t){
|
||||
|
||||
Reference in New Issue
Block a user