This commit is contained in:
2023-01-09 15:32:52 +01:00
parent d570fae5f0
commit 26d010c6f0
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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:
/** /**
+2 -1
View File
@@ -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;