fix(AFHDS3): Some sensor values displayed incorrectly (#3386)

* Fix the bug that some sensor values are displayed incorrectly

* Fix typos

* Fixed some units problem.

* Unit of SNR should be db and not dbm.

* Fixed Alt scaling in NV14.

* Fixed the temperature and voltage error of the FRM303 module.

* Fixed temperature data error.

---------

Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Xy2019
2023-04-19 20:12:39 +10:00
committed by GitHub
co-authored by Richard Li
parent 7e9ac82497
commit 8b40fb771a
3 changed files with 309 additions and 121 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ int32_t GetSensorValueFlySkyNv14(const FlyskyNv14Sensor* sensor,
value = value & PRESSURE_MASK;
break;
case 1:
value = CalculateAltitude(value);
value = CalculateAltitude(10 * value);
{
tmr10ms_t currTimer = getTicks();
int32_t currAlt = value;