File management and Completed Part 1

This commit is contained in:
Thorsteinngretar
2026-10-03 02:41:04 +00:00
parent 0b52148272
commit 6f3c388cef
37 changed files with 1458 additions and 0 deletions
@@ -0,0 +1,26 @@
#ifndef MOTOR_DRIVER_H
#define MOTOR_DRIVER_H
class Motor_driver
{
public:
void init();
// Range: -255 ... +255
void set_command(double command);
void coast();
void brake();
double command() const;
private:
double currentCommand;
void enable_pwm_outputs();
unsigned char magnitude(double value) const;
};
#endif