Merge pull request #180 from meshtastic/remove-analog-sensors

Removed analog sensors and lame config settings
pull/181/head
Ben Meadors 2022-07-29 10:25:54 -05:00 zatwierdzone przez GitHub
commit c6293d78a6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 6 dodań i 54 usunięć

Wyświetl plik

@ -246,35 +246,11 @@ message ModuleConfig {
*/
bool environment_screen_enabled = 4;
/*
* Sometimes sensor reads can fail.
* If this happens, we will retry a configurable number of attempts,
* each attempt will be delayed by the minimum required refresh rate for that sensor
*/
uint32 environment_read_error_count_threshold = 5;
/*
* Sometimes we can end up with more than read_error_count_threshold failures.
* In this case, we will stop trying to read from the sensor for a while.
* Wait this long until trying to read from the sensor again
*/
uint32 environment_recovery_interval = 6;
/*
* We'll always read the sensor in Celsius, but sometimes we might want to
* display the results in Fahrenheit as a "user preference".
*/
bool environment_display_fahrenheit = 7;
/*
* Specify the sensor type
*/
TelemetrySensorType environment_sensor_type = 8;
/*
* Specify the peferred GPIO Pin for sensor readings
*/
uint32 environment_sensor_pin = 9;
}
/*

Wyświetl plik

@ -100,58 +100,34 @@ enum TelemetrySensorType {
* No external telemetry sensor explicitly set
*/
NotSet = 0;
/*
* Moderate accuracy temperature
*/
DHT11 = 1;
/*
* High accuracy temperature
*/
DS18B20 = 2;
/*
* Moderate accuracy temperature and humidity
*/
DHT12 = 3;
/*
* Moderate accuracy temperature and humidity
*/
DHT21 = 4;
/*
* Moderate accuracy temperature and humidity
*/
DHT22 = 5;
DHT22 = 1;
/*
* High accuracy temperature, pressure, humidity
*/
BME280 = 6;
BME280 = 2;
/*
* High accuracy temperature, pressure, humidity, and air resistance
*/
BME680 = 7;
BME680 = 3;
/*
* Very high accuracy temperature
*/
MCP9808 = 8;
/*
* Moderate accuracy temperature and humidity
*/
SHTC3 = 9;
MCP9808 = 4;
/*
* Moderate accuracy current and voltage
*/
INA260 = 10;
INA260 = 5;
/*
* Moderate accuracy current and voltage
*/
INA219 = 11;
INA219 = 6;
};