//function to memcopy from a boost asio buffer containing polhemus floats
getFloat(int index) {
float temp = 0.0;
memcpy(&temp,buffer+3*sizeof(char)+index*sizeof(float),sizeof(float));
return temp;
}
float temp = 0.0;
memcpy(&temp,buffer+3*sizeof(char)+index*sizeof(float),sizeof(float));
return temp;
}
In the case of linux if minicom is showing "Offline" even though you know you are connected to the right port and the right DIP settings (baud, width, parity, data stop bits etc) then disabling hardware flow control in minicom port settings might do the trick.
No comments:
Post a Comment