2021-05-23 17:53:27 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2021-06-28 10:34:10 +02:00
|
|
|
namespace bobbycar {
|
|
|
|
namespace protocol {
|
|
|
|
|
2021-05-23 17:53:27 +02:00
|
|
|
enum class ControlType : uint8_t {
|
|
|
|
Commutation,
|
|
|
|
Sinusoidal,
|
|
|
|
FieldOrientedControl
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class ControlMode : uint8_t {
|
|
|
|
OpenMode,
|
|
|
|
Voltage,
|
|
|
|
Speed, // Only with FieldOrientedControl
|
|
|
|
Torque // Only with FieldOrientedControl
|
|
|
|
};
|
2021-06-28 10:34:10 +02:00
|
|
|
|
|
|
|
} // namespace protocol
|
|
|
|
} // namespace bobbycar
|