联调通过

This commit is contained in:
2021-12-13 17:18:24 +08:00
parent ec8bb49b8f
commit b101e74763
30 changed files with 396 additions and 92 deletions

View File

@ -7,15 +7,15 @@ using namespace ZZ_MISCDEF;
typedef struct tagTransportLayerInfomation
{
//Serial
int iPortType;
int iPortType = 0;
int iPortNumber;
int indexBaudRate;
int iBaudRate;
int indexParity, indexBytesize, indexStopBits; //Mode
int iIndexBaudRate;
int iBaudRate = 9600;
int indexParity = 0, indexBytesize = 3, indexStopBits = 0; //Mode
bool Hw;
bool Sw;
bool Dtr, Rts;
QString qstrFullPortName = "";
//Bit
//Stop
//MODEM CONTROL setting
@ -34,11 +34,11 @@ typedef struct tagMotorStatusInfo
typedef struct tagControllerParams
{
int bdr; //baud
int mcs; //microsteps 0:full 1:half 2:4 3:8 4:16 5:32 6:64 7:128 8:256
float spd; //velocity
float acc; //acceleration
float dec; //deceleration
int bdr = 9600; //baud
int mcs = 6; //microsteps 0:full 1:half 2:4 3:8 4:16 5:32 6:64 7:128 8:256
float spd = 64000; //velocity
float acc = 100000; //acceleration
float dec = 100000; //deceleration
float cra; //acc state current
float crn; //normal state current
float crh; //hold state current
@ -46,11 +46,11 @@ typedef struct tagControllerParams
ZZ_U8 s1r;
ZZ_U8 s2f;
ZZ_U8 s2r;
ZZ_U8 zmd; //zero mode
ZZ_U8 osv; //open state sensor value
ZZ_U8 snr; //zero sensor
ZZ_U8 zsp; //zero safe position
float zsd; //zero velocity
ZZ_U8 zmd = 3; //zero mode
ZZ_U8 osv = 0; //open state sensor value
ZZ_U8 snr = 0; //zero sensor
ZZ_U8 zsp = 200; //zero safe position
float zsd = 50000; //zero velocity
}ControllerParams;
typedef union