forward
Dependencies: VNH5019
Fork of AigamozuControlPackets by
Diff: AigamozuControlPackets.cpp
- Revision:
- 26:195c054a0148
- Parent:
- 25:119fd6c9ae80
- Child:
- 30:abc6740124d4
diff -r 119fd6c9ae80 -r 195c054a0148 AigamozuControlPackets.cpp --- 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; } //////////////////////////////