|
@@ -119,16 +119,19 @@ typedef struct
|
|
|
|
|
|
typedef struct
|
|
|
{
|
|
|
+ uint8_t CdcDoor;
|
|
|
+ uint8_t res1;
|
|
|
+ uint8_t res2;
|
|
|
uint8_t ADS_UDLCTurnLightReq;
|
|
|
-} ECU_36E_t;
|
|
|
+} ECU_25E_t; //zhuanxiangdeng IDgenghuan
|
|
|
|
|
|
unsigned char byte_1C4[64];//byte_144[8];
|
|
|
unsigned char byte_24E[64];
|
|
|
-unsigned char byte_36E[64];
|
|
|
+unsigned char byte_25E[32];
|
|
|
|
|
|
ECU_1C4_t _m1C4 = {0,0,0,0};
|
|
|
ECU_24E_t _m24E = {0,0,0,0,0,0,0,0,0,0,0};
|
|
|
-ECU_36E_t _m36E = {0};
|
|
|
+ECU_25E_t _m25E = {0,0,0,0};
|
|
|
|
|
|
void ExecSend();
|
|
|
|
|
@@ -339,14 +342,14 @@ void executeDecition(const iv::brain::decition &decition)
|
|
|
//byte_24E[13] = ((_m24E.ACC_AccTrqReq & (0x1FU)<<3))| ((_m24E.ACC_AccTrqReqActive & (0x01U)) << 2);
|
|
|
byte_24E[13] = (((_m24E.ACC_AccTrqReq & (0x1FU))<<3))| ((_m24E.ACC_AccTrqReqActive & (0x01U)) << 2);
|
|
|
|
|
|
-// if(decition.leftlamp() == true && decition.rightlamp() == false)
|
|
|
-// _m36E.ADS_UDLCTurnLightReq = 3;
|
|
|
-// else if(decition.leftlamp() == false && decition.rightlamp() == true)
|
|
|
-// _m36E.ADS_UDLCTurnLightReq = 4;
|
|
|
-// else
|
|
|
-// _m36E.ADS_UDLCTurnLightReq = 0;
|
|
|
+ if(decition.leftlamp() == true && decition.rightlamp() == false)
|
|
|
+ _m25E.ADS_UDLCTurnLightReq = 3;
|
|
|
+ else if(decition.leftlamp() == false && decition.rightlamp() == true)
|
|
|
+ _m25E.ADS_UDLCTurnLightReq = 4;
|
|
|
+ else
|
|
|
+ _m25E.ADS_UDLCTurnLightReq = 0;
|
|
|
|
|
|
-// byte_36E[0] = ((_m36E.ADS_UDLCTurnLightReq & (0x07U)) << 5);
|
|
|
+ byte_25E[3] = ((_m25E.ADS_UDLCTurnLightReq & (0x07U)));
|
|
|
|
|
|
}
|
|
|
|
|
@@ -526,19 +529,19 @@ void ExecSend()
|
|
|
xmsg.set_channel(0);
|
|
|
xmsg.set_index(gnIndex);
|
|
|
|
|
|
-// xraw.set_id(0x36E);
|
|
|
-// xraw.set_data(byte_36E,8);
|
|
|
-// xraw.set_bext(false);
|
|
|
-// xraw.set_bremote(false);
|
|
|
-// xraw.set_len(8);
|
|
|
-// if(nCount == 10)
|
|
|
-// {
|
|
|
-// iv::can::canraw * pxraw36E = xmsg.add_rawmsg();
|
|
|
-// pxraw36E->CopyFrom(xraw);
|
|
|
-// nCount = 0;
|
|
|
-// }
|
|
|
-// xmsg.set_channel(0);
|
|
|
-// xmsg.set_index(gnIndex);
|
|
|
+ xraw.set_id(0x25E);
|
|
|
+ xraw.set_data(byte_25E,32);
|
|
|
+ xraw.set_bext(false);
|
|
|
+ xraw.set_bremote(false);
|
|
|
+ xraw.set_len(32);
|
|
|
+ if(nCount == 10)
|
|
|
+ {
|
|
|
+ iv::can::canraw * pxraw25E = xmsg.add_rawmsg();
|
|
|
+ pxraw25E->CopyFrom(xraw);
|
|
|
+ nCount = 0;
|
|
|
+ }
|
|
|
+ xmsg.set_channel(0);
|
|
|
+ xmsg.set_index(gnIndex);
|
|
|
|
|
|
gnIndex++;
|
|
|
xmsg.set_mstime(QDateTime::currentMSecsSinceEpoch());
|