参考:https://blog.csdn.net/fightingintherain/article/details/68951741
char temp_data[4];
memset(temp_data, '0', 4);
char m_hexCommand[4]={0x41,0xC9,0x29,0x5C};
temp_data[0] = m_hexCommand[3];
temp_data[1] = m_hexCommand[4];
temp_data[2] = m_hexCommand[5];
temp_data[3] = m_hexCommand[6];
float temp;
unsigned int n;
memcpy(&n,temp_data,1);
n = n<<8;
memcpy(&n,&temp_data[1],1);
n = n<<8;
memcpy(&n,&temp_data[2],1);
n = n<<8;
memcpy(&n,&temp_data[3],1);
memcpy(&temp,&n,4);