ghst_telemetry: send battery status

Send battery status (ghst_telemetry). Apply factors to show correct values of volts, amps and mAh. Change ghost protocol code to follow more MISRA C++ guidelines.
This commit is contained in:
jciberlin
2021-03-15 09:42:53 +01:00
committed by Lorenz Meier
parent af3573e464
commit 6f5efbeab5
8 changed files with 157 additions and 132 deletions
+2 -2
View File
@@ -41,7 +41,7 @@
#include <drivers/drv_rc_input.h>
#include <lib/perf/perf_counter.h>
#include <lib/rc/crsf.h>
#include <lib/rc/ghst.h>
#include <lib/rc/ghst.hpp>
#include <lib/rc/dsm.h>
#include <lib/rc/sbus.h>
#include <lib/rc/st24.h>
@@ -61,7 +61,7 @@
#include <uORB/topics/vehicle_command.h>
#include "crsf_telemetry.h"
#include "ghst_telemetry.h"
#include "ghst_telemetry.hpp"
#ifdef HRT_PPM_CHANNEL
# include <systemlib/ppm_decode.h>