firmware updated with encoder support, and support for the f031.

This commit is contained in:
Stephen Hawes
2022-07-28 14:40:30 -04:00
parent 51b8ca6efb
commit e51ccdd232
19 changed files with 1874 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#ifndef _FEEDER_H
#define _FEEDER_H
#include <cstddef>
#include <cstdint>
class Feeder {
public:
enum FeedResult
{
SUCCESS,
INVALID_LENGTH,
MOTOR_FAULT,
UNKNOWN_ERROR
};
virtual bool init() = 0;
virtual FeedResult feedDistance(uint8_t tenths_mm, bool forward) = 0;
};
#endif //_INDEX_FEEDER_PROTOCOL_H