ใช้สื่อสารกันระหว่าง Brain และ Motion
Dependencies: Fork_Boss_Communication_Robot
Dependents: Program_BEAR_Protocol SwitchMode MPU9250AHRS-PGear_Stabilizer SwitchMode ... more
Diff: BEAR_Protocol.cpp
- Revision:
- 9:c22410169d9f
- Parent:
- 8:e1f43b1df0b5
- Child:
- 10:2398eeafa967
--- a/BEAR_Protocol.cpp Thu Jan 21 17:24:49 2016 +0000 +++ b/BEAR_Protocol.cpp Thu Jan 21 18:48:02 2016 +0000 @@ -127,7 +127,7 @@ FloatLowAngle[1]=package.parameter[7]; int_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(IntLowAngle); float_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(FloatLowAngle)/FLOAT_CONVERTER; - *low_angle=int_buffer+float_buffer;; + *low_angle=int_buffer+float_buffer; } return status; @@ -809,7 +809,7 @@ FloatOffset_Z[1]=package.parameter[7]; int_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(IntOffset_Z); float_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(FloatOffset_Z)/FLOAT_CONVERTER; - *offset_z=int_buffer+float_buffer;; + *offset_z=int_buffer+float_buffer; } return status; @@ -967,7 +967,7 @@ FloatMinAngle[1]=package.parameter[7]; int_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(IntMinAngle); float_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(FloatMinAngle)/FLOAT_CONVERTER; - *min_angle=int_buffer+float_buffer;; + *min_angle=int_buffer+float_buffer; } return status; @@ -1011,7 +1011,7 @@ FloatMinAngle[1]=package.parameter[7]; int_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(IntMinAngle); float_buffer=(float)Utilities::ConvertUInt8ArrayToInt16(FloatMinAngle)/FLOAT_CONVERTER; - *min_angle=int_buffer+float_buffer;; + *min_angle=int_buffer+float_buffer; } return status;