refactor - change constants
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef SPEEDOMETER_H
|
||||
#define SPEEDOMETER_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <cstdint>
|
||||
#include <ESP32Encoder.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user