31 MsgIt it=inMessages.begin();
33 while(it!=inMessages.end())
36 if ((m.
id&0x0f)==canId)
50 if ((m.
data[0]&&0xef)==CAN_GET_P_GAIN)
54 if ((m.
data[0]&&0xef)==CAN_GET_D_GAIN)
58 if ((m.
data[0]&&0xef)==CAN_GET_I_GAIN)
62 if ((m.
data[0]&&0xef)==CAN_GET_ILIM_GAIN)
66 if ((m.
data[0]&&0xef)==CAN_GET_SCALE_GAIN)
70 if ((m.
data[0]&&0xef)==CAN_GET_OFFSET_GAIN)
74 if ((m.
data[0]&&0xef)==CAN_GET_TLIM_GAIN)
81 outMessages->push_back(reply);
99 reply.
id=reply.
id|0x100;
101 reply.
data[0]=
static_cast<char>((100*(1-0.5*rand()/(double)RAND_MAX)+0.5));
106 reply.
data[4]=
static_cast<char>((100*(1-0.5*rand()/(double)RAND_MAX)+0.5));
112 outMessages->push_back(reply);
117 reply.
id=reply.
id|0x100;
118 reply.
id=reply.
id|0x003;
122 outMessages->push_back(reply);