| | |
| | | #define FINAL_MSG_FINAL_TX_TS_IDX 18 |
| | | #define FINAL_MSG_TS_LEN 4 |
| | | |
| | | #define STARTPOLL REGPOLL |
| | | #define SWITCHBASE_DIST |
| | | //#define SWITCHBASE_ZHUANDIAN |
| | | #define STARTPOLL REGPOLL//#define SWITCHBASE_DIST |
| | | #define SWITCHBASE_ZHUANDIAN |
| | | enum enumtagstate |
| | | { |
| | | REGPOLL, |
| | |
| | | pack_length = rec_remotepara[2]; |
| | | if(pack_msgtype==2) |
| | | { |
| | | if( pack_index == MOTOR_ONTIME_INDEX&&motor_keeptime==0) |
| | | if( pack_index == MOTOR_ONTIME_INDEX) |
| | | { |
| | | motor_keeptime = rec_remotepara[3]; |
| | | if(motor_keeptime==0) |
| | | motor_keeptime = rec_remotepara[3]; |
| | | }else{ |
| | | memcpy((uint8_t*)&g_com_map + pack_index, &rec_remotepara[3], pack_length); |
| | | //返回一个error状态 |