David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
logger.h
- Committer:
- DavidEGrayson
- Date:
- 2015-04-16
- Revision:
- 57:99bec7fab454
- Parent:
- 52:05a8e919ddb0
File content as of revision 57:99bec7fab454:
#pragma once #include <stdint.h> #define LOGGER_SIZE 2000 struct LogEntry { int16_t turnAngle; int16_t x; int16_t y; }; class Logger { public: Logger(); void log(struct LogEntry *); void dump(); bool isFull(); int32_t getSize() { return entryIndex; } LogEntry entries[LOGGER_SIZE]; // The index of the next entry to write to. uint32_t entryIndex; };