Skip to content

Commit

Permalink
Fix combined telemetry sensor virtual values
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Dec 28, 2024
1 parent 5f8f9cb commit 81cb702
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/telemetry/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int telemetrySensorValue(sensor_id_e id)
return millis() % 60000;

case TELEM_BATTERY:
return 0;
return millis();
case TELEM_BATTERY_VOLTAGE:
return getBatteryVoltage();
case TELEM_BATTERY_CURRENT:
Expand Down Expand Up @@ -251,7 +251,7 @@ int telemetrySensorValue(sensor_id_e id)
return lrintf(acc.accADC[2] * acc.dev.acc_1G_rec * 10);

case TELEM_GPS:
return 0;
return millis();
case TELEM_GPS_SATS:
return gpsSol.numSat;
case TELEM_GPS_PDOP:
Expand All @@ -261,7 +261,7 @@ int telemetrySensorValue(sensor_id_e id)
case TELEM_GPS_VDOP:
return 0;
case TELEM_GPS_COORD:
return getTupleHash(gpsSol.llh.lat, gpsSol.llh.lat);
return getTupleHash(gpsSol.llh.lat, gpsSol.llh.lon);
case TELEM_GPS_ALTITUDE:
return gpsSol.llh.altCm;
case TELEM_GPS_HEADING:
Expand All @@ -276,7 +276,7 @@ int telemetrySensorValue(sensor_id_e id)
return 0;

case TELEM_LOAD:
return 0;
return millis();
case TELEM_CPU_LOAD:
return getAverageCPULoadPercent();
case TELEM_SYS_LOAD:
Expand Down

0 comments on commit 81cb702

Please sign in to comment.