Updated config dump to include vbat cal value
This commit is contained in:
@@ -148,6 +148,9 @@ int lcd::render_driver_primary() {
|
||||
gps_data gps;
|
||||
gps_global_read(gps);
|
||||
|
||||
double vbat;
|
||||
vbat_global_read(vbat);
|
||||
|
||||
_display->setCursor(0,0);
|
||||
this->print("GPS:");
|
||||
if (gps.num_fix != 0) {
|
||||
@@ -156,6 +159,14 @@ int lcd::render_driver_primary() {
|
||||
this->print("X");
|
||||
}
|
||||
|
||||
_display->setCursor(3,2);
|
||||
this->print("SPEED: ");
|
||||
this->print(gps.speed.value);
|
||||
|
||||
_display->setCursor(0,3);
|
||||
this->print("VBAT:");
|
||||
this->print(vbat);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "base/module_base.h"
|
||||
#include "data/gps_store.h"
|
||||
#include "data/track_store.h"
|
||||
#include "data/general_store.h"
|
||||
|
||||
namespace screen {
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include "system_logger.h"
|
||||
#include "data/general_store.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -49,6 +50,9 @@ int system_logger::dump_config() {
|
||||
temp.track_fallback
|
||||
);
|
||||
this->info(String(buffer));
|
||||
|
||||
|
||||
this->info("\tVBAT cal factor: " + String(temp.vbat_calibration, 6));
|
||||
|
||||
// Track slots (one per line)
|
||||
for (size_t i = 0; i < 8; i++) {
|
||||
@@ -59,6 +63,8 @@ int system_logger::dump_config() {
|
||||
);
|
||||
this->info(String(buffer));
|
||||
}
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user