firmware/src/modules/Telemetry/Sensor
Markus a71b47b5bb
Some checks are pending
CI / setup (all) (push) Waiting to run
CI / setup (check) (push) Waiting to run
CI / version (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker (alpine, native, linux/amd64) (push) Waiting to run
CI / docker (alpine, native, linux/arm64) (push) Waiting to run
CI / docker (alpine, native-tft, linux/amd64) (push) Waiting to run
CI / docker (debian, native, linux/amd64) (push) Waiting to run
CI / docker (debian, native, linux/arm/v7) (push) Waiting to run
CI / docker (debian, native, linux/arm64) (push) Waiting to run
CI / docker (debian, native-tft, linux/amd64) (push) Waiting to run
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (rp2350) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (rp2350) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
CI / publish-firmware (push) Blocked by required conditions
rework sensor instantiation to saves memory by removing the static allocation (#8054)
* rework I2C sensor init

the goal is to only instantiate sensors that are pressend to save memory.
side effacts:
 - easyer sensor integration (less C&P code)
 - nodeTelemetrySensorsMap can be removed when all devices are migrated

* add missing ifdef

* refactor a bunch of more sensors

RAM -816
Flash -916

* fix build for t1000

* refactor more sensors

RAM -192
Flash -60

* improve error handling

Flash -112

* fix build

* fix build

* fix IndicatorSensor

* fix tracker-t1000-e build

not sure what magic is used but it works

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Telemetry/Sensor/DFRobotGravitySensor.h

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13 11:09:33 -05:00
..
AHT10.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
AHT10.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BME280Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BME280Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BME680Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BME680Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BMP3XXSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BMP3XXSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BMP085Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BMP085Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BMP280Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
BMP280Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
CGRadSensSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
CGRadSensSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
CurrentSensor.h Detect charging status by measuring current flow with configured INA battery sensor (#5271) 2024-12-22 15:02:50 +11:00
DFRobotGravitySensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
DFRobotGravitySensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
DFRobotLarkSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
DFRobotLarkSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
DPS310Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
DPS310Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
INA219Sensor.cpp Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
INA219Sensor.h Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
INA226Sensor.cpp fix: ina226 was not calibrated during init (#7547) 2025-08-05 06:34:52 -05:00
INA226Sensor.h fix: ina226 was not calibrated during init (#7547) 2025-08-05 06:34:52 -05:00
INA260Sensor.cpp Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
INA260Sensor.h Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
INA3221Sensor.cpp Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
INA3221Sensor.h allow overriding INA3221 channels (#7035) 2025-06-15 07:39:49 -05:00
IndicatorSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
IndicatorSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
LPS22HBSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
LPS22HBSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
LTR390UVSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
LTR390UVSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
MAX17048Sensor.cpp Enable telemetry and I2C sensors on STM32WL (except accelerometers) (#7008) 2025-07-02 06:01:45 -05:00
MAX17048Sensor.h Enable telemetry and I2C sensors on STM32WL (except accelerometers) (#7008) 2025-07-02 06:01:45 -05:00
MAX30102Sensor.cpp Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
MAX30102Sensor.h Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
MCP9808Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
MCP9808Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
MLX90614Sensor.cpp Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
MLX90614Sensor.h Step one of Linux Sensor support (#6673) 2025-04-28 18:35:13 -05:00
MLX90632Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
MLX90632Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
NAU7802Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
NAU7802Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
nullSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
nullSensor.h Enable telemetry and I2C sensors on STM32WL (except accelerometers) (#7008) 2025-07-02 06:01:45 -05:00
OPT3001Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
OPT3001Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
PCT2075Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
PCT2075Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
RAK9154Sensor.cpp Update RAK2560 code (#5844) 2025-01-20 09:34:54 +01:00
RAK9154Sensor.h Update RAK2560 code (#5844) 2025-01-20 09:34:54 +01:00
RAK12035Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
RAK12035Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
RCWL9620Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
RCWL9620Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
SHT4XSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
SHT4XSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
SHT31Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
SHT31Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
SHTC3Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
SHTC3Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
T1000xSensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
T1000xSensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
TelemetrySensor.cpp trunk fmt 2024-05-03 14:26:57 +02:00
TelemetrySensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
TSL2561Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
TSL2561Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
TSL2591Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
TSL2591Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
VEML7700Sensor.cpp rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
VEML7700Sensor.h rework sensor instantiation to saves memory by removing the static allocation (#8054) 2025-10-13 11:09:33 -05:00
VoltageSensor.h MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR refinements 2024-05-03 14:15:13 +12:00