refactor
This commit is contained in:
@@ -124,7 +124,7 @@ class MoveControl {
|
|||||||
*
|
*
|
||||||
* @param delay_ time in Milliseconds
|
* @param delay_ time in Milliseconds
|
||||||
*/
|
*/
|
||||||
void setDelay(uint8_t delay_) { delay = delay_; }
|
void setDelay(uint8_t delay) { this->delay = delay; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,13 +13,14 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <iostream>
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#define DELAY 10
|
#define DELAY 10
|
||||||
#define PWMFREQ 16000
|
#define PWMFREQ 16000
|
||||||
#define PWMRES 8
|
#define PWMRES 8
|
||||||
#define POWERSTEPS 2 // A total of 20 levels ( 100 / SPEED_STEPS ) * RUN_MOTOR_CONTROL_DELAY = 500ms
|
#define POWERSTEPS 2 // A total of 20 levels ( 100 / SPEED_STEPS ) * RUN_MOTOR_CONTROL_DELAY = 500ms
|
||||||
#define PWMMIN 50
|
#define PWMMIN 55
|
||||||
#define PWMMAX 95 // Max 98% of 2^PWM_RES
|
#define PWMMAX 95 // Max 98% of 2^PWM_RES
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ void MenuSysteminformation::printPage() const {
|
|||||||
lineOne = "Main battery:";
|
lineOne = "Main battery:";
|
||||||
lineTwo = "";
|
lineTwo = "";
|
||||||
lineTwo.concat(this->mainBattery->getBatteryPercent());
|
lineTwo.concat(this->mainBattery->getBatteryPercent());
|
||||||
lineTwo.concat("%% - V=");
|
lineTwo.concat("% - V=");
|
||||||
lineTwo.concat(this->mainBattery->getBatteryVoltage());
|
lineTwo.concat(this->mainBattery->getBatteryVoltage());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user