Feature can (#4)

* can related implementations

* Fixed includes

* Added receiving can registers

* Added debug utility

* template compile time magic

* more canbus registers

* Indent fixes
This commit is contained in:
2021-05-23 17:53:27 +02:00
committed by GitHub
parent 8c6b432d7e
commit b6f0d6a185
3 changed files with 227 additions and 26 deletions

16
bobbycar-common.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <stdint.h>
enum class ControlType : uint8_t {
Commutation,
Sinusoidal,
FieldOrientedControl
};
enum class ControlMode : uint8_t {
OpenMode,
Voltage,
Speed, // Only with FieldOrientedControl
Torque // Only with FieldOrientedControl
};