略微更改文件架构
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -243,7 +243,7 @@ private:
|
||||
int16_t yaw = 0; // 云台偏航
|
||||
int16_t pitch = 0; // 云台俯仰
|
||||
|
||||
uint8_t data[8];
|
||||
uint16_t data[8];
|
||||
data[0] = (x_move >> 8) & 0xFF;
|
||||
data[1] = x_move & 0xFF;
|
||||
data[2] = (y_move >> 8) & 0xFF;
|
||||
@@ -269,7 +269,7 @@ private:
|
||||
int16_t spin = 2; // 小陀螺开启
|
||||
int16_t friction = 2; // 摩擦轮开启
|
||||
|
||||
uint8_t data[8];
|
||||
uint16_t data[8];
|
||||
data[0] = (feed >> 8) & 0xFF;
|
||||
data[1] = feed & 0xFF;
|
||||
data[2] = (spin >> 8) & 0xFF;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user