refactor - change constants

This commit is contained in:
2023-01-18 10:33:47 +01:00
parent 801a474b49
commit 97495338d7
9 changed files with 11 additions and 11 deletions
+1
View File
@@ -55,6 +55,7 @@ void Battery::calculateBatteryPercent() {
if (this->batteryVoltage <= this->capacityVoltages[i])
break;
}
if (i == 0) {
if (this->batteryVoltage > 6)
std::cout << "Critical low battery!" << std::endl;
+1 -1
View File
@@ -65,7 +65,7 @@ void Navigation::init(Route* route) {
Wire.write(0x0b);
Wire.write(0x01);
Wire.endTransmission();
this->compass->setMode(0x01,0x04,0x10,0X00);
this->compass->setMode(0x01,0x0C,0x10,0X00);
}
Navigation::~Navigation() {
+1 -1
View File
@@ -29,7 +29,7 @@
*
*/
#define MIN_DISTANCE_BETWEEN_POINTS 0.1
#define AZIMUTH_UPDATE_DELAY 200
#define AZIMUTH_UPDATE_DELAY 20
/**
* @brief This struct inherits the result of the navigation
+1
View File
@@ -12,6 +12,7 @@
#ifndef SPEEDOMETER_H
#define SPEEDOMETER_H
#include <Arduino.h>
#include <cstdint>
#include <ESP32Encoder.h>