Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
Diff: Utility.hpp
- Revision:
- 12:1c341b119b23
- Parent:
- 9:12519f9dd3cd
- Child:
- 13:bb9669053eb3
--- a/Utility.hpp Sun Jan 15 18:57:53 2017 +0000 +++ b/Utility.hpp Sun Jan 15 19:46:10 2017 +0000 @@ -10,6 +10,10 @@ //Return angle between 0 and 360 degree double wrap_angle(double angle); double degree_from_radian(const double angle_radian); + + //Calculate the 4 bytes required to represent a previous 4 bytes value + //after changing a single bit at a given position (position 0 being the LSB) + int update_bit(const int previous_byte, const int position, const bool new_bit_value); } #endif \ No newline at end of file