Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: VNH5019
Dependents: Aigamozu_Robot_展示会 Aigamozu_Robot_March Aigamozu_Robot_templete
Fork of AigamozuControlPackets by
Diff: AigamozuControlPackets.cpp
- Revision:
- 26:195c054a0148
- Parent:
- 25:119fd6c9ae80
- Child:
- 30:abc6740124d4
--- a/AigamozuControlPackets.cpp Fri May 15 08:18:38 2015 +0000 +++ b/AigamozuControlPackets.cpp Fri May 15 09:23:45 2015 +0000 @@ -69,7 +69,7 @@ return basePointKalman[i].y; } -char AigamozuControlPackets::get_base_status(int i){ +int AigamozuControlPackets::get_base_status(int i){ return base_status[i]; } @@ -94,7 +94,13 @@ void AigamozuControlPackets::set_base_status(int i, uint8_t *status){ - base_status[i] = (char)status; + UNION_int_char sta; + + for(int j = 0;j < 8;j++){ + sta.char_value[j]= status[j]; + } + + base_status[i] = sta.int_value; } //////////////////////////////