From 58b4bc754bbb9f5197119cd0c124e49c05acff46 Mon Sep 17 00:00:00 2001 From: Dawsyn Schraiber <32221234+dawsynth@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:30:58 -0400 Subject: Where to begin…. (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +/- Reworked collection of altimeter related functions into altimeter class +/- Reworked bno055 class to be imu class with minimal functionality \- Removed external Kalman filter implementations in favor of own in house version \- Removed any/unused files \+ Added buffer logger for when sitting on pad for extended period of time in effort to prevent filling of flash chip \+ Added heartbeat LED for alive status --- src/motor.cpp | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/motor.cpp (limited to 'src/motor.cpp') diff --git a/src/motor.cpp b/src/motor.cpp deleted file mode 100644 index 84785a9..0000000 --- a/src/motor.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "../include/motor.hpp" - - - -Motor::Motor() { - - -} - -bool Motor::init(void* data) { - - Vehicle *vehicle = (Vehicle *) data; - double duty = 100 - ((MIN_ANGLE / 180) * vehicle->duty_span + DUTY_MIN); - - // Initialize stuff - // ..... - // ..... - - - data = (void*) vehicle; // Is this necessary? - return true; -} - - -bool Motor::writeData(void* data) { - - Vehicle *vehicle = (Vehicle *) data; - double duty = 100 - ((vehicle->deployment_angle / 180) * vehicle->duty_span + DUTY_MIN); - - // Send the Data somewhere - // ..... Pin - // ..... Duty - // ..... PWM frequency Hz - // ..... Polarity - - - if (1 == 2) { - Logger::Get().logErr("Some type of Error"); - return false; - } - - data = (void*) vehicle; // Is this necessary? - return true; -} - - -- cgit v1.2.3