Merge branch 'main' of ssh://gitea.qutcmrt.top:222/hara/mid360 into main

This commit is contained in:
hara 2024-11-28 20:22:04 +08:00
commit b67fa57651
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ void write3float2(float x,float y,float yaw)
unsigned char buf[16] = {0};//
buf[0]=0xFF;
buf[1]=0x09;
buf[2]=0x00;
buf[2]=0x01;
buf[15]=0xFE;
for(int i=0;i<4;i++){
buf[i+3]=X.data[i];

View File

@ -8,7 +8,7 @@
#include <nav_msgs/Odometry.h>
#include <boost/asio.hpp>
#include <geometry_msgs/Twist.h>
void write3float2(float x,float y,float yaw);
extern void write3float2(float x,float y,float yaw);
extern void serialInit();
extern void writeSpeed(double Left_v, double Right_v,unsigned char ctrlFlag);
extern void write3float(float x, float y, float yaw);