![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|
Public Member Functions | |
| void | SetStream (uint8_t *input) |
| uint8_t | BitIndex () const |
| uint64_t | ByteIndex () const |
| uint8_t | InnerReadByte (const uint8_t &offset) |
| uint8_t | InnerRead (const uint8_t &size, const uint8_t &offset) |
| template<class T, uint8_t BYTES> | |
| T | ReadBytes (const uint8_t &remainder) |
| template<class T> | |
| T | ReadBytes (const uint8_t &bytes, const uint8_t &remainder) |
| template<class T, uint8_t SIZE> | |
| T | ReadValue () |
| template<class T> | |
| T | ReadValue (const uint8_t &size) |
Public Attributes | |
| uint8_t * | input |
| uint32_t | index |
Static Private Attributes | |
| static constexpr uint8_t | MASKS [] |
| Align the masks to the right. | |
| static constexpr uint8_t | REMAINDER_MASKS [] |
Every byte read touches at most 2 bytes (1 if it's perfectly aligned) Within a byte we need to mask off the bits that we're interested in
|
inline |
|
inline |
|
inline |
|
inline |
index: 4 size: 7 input: [12345678][12345678] result: [-AAAA BBB]
Result contains 4 bits from the first byte (making up the most significant bits) And 3 bits from the second byte (the least significant bits)
|
inline |
|
inline |
|
inline |
|
staticconstexprprivate |
Align the masks to the right.
|
staticconstexprprivate |