diff --git a/config/mower_config.schema.json b/config/mower_config.schema.json index fe5cee1d..01faa101 100644 --- a/config/mower_config.schema.json +++ b/config/mower_config.schema.json @@ -531,6 +531,27 @@ "title": "Stock-CoverUI rain sensor threshold", "description": "Stock-CoverUI limited rain sensor threshold, below which humidity/dryness value get identified as rain. As higher, as more dry. Default to 700", "x-environment-variable": "OM_CU_RAIN_THRESHOLD" + }, + "OM_BATTERY_CRITICAL_HIGH_VOLTAGE": { + "type": "number", + "default": -1, + "title": "Max. battery voltage", + "description": "Max. battery voltage before charging get switched off", + "x-environment-variable": "OM_BATTERY_CRITICAL_HIGH_VOLTAGE" + }, + "OM_CHARGE_CRITICAL_HIGH_VOLTAGE": { + "type": "number", + "default": -1, + "title": "Max. charge voltage", + "description": "Max. charge voltage before charging get switched off", + "x-environment-variable": "OM_CHARGE_CRITICAL_HIGH_VOLTAGE" + }, + "OM_CHARGE_CRITICAL_HIGH_CURRENT": { + "type": "number", + "default": -1, + "title": "Max. charge current", + "description": "Max. charge current before charging get switched off", + "x-environment-variable": "OM_CHARGE_CRITICAL_HIGH_CURRENT" } } } diff --git a/config/mower_config.sh.example b/config/mower_config.sh.example index 37759d4c..3856e521 100644 --- a/config/mower_config.sh.example +++ b/config/mower_config.sh.example @@ -196,6 +196,14 @@ export OM_BATTERY_EMPTY_VOLTAGE=24.0 # Immediate dock if voltage is critical export OM_BATTERY_CRITICAL_VOLTAGE=23.0 +# Absolute battery and charging limits, before charging get switched off +# Over-voltage battery protection +#export OM_BATTERY_CRITICAL_HIGH_VOLTAGE=29.0 +# Over-voltage charge protection +#export OM_CHARGE_CRITICAL_HIGH_VOLTAGE=30.0 +# Over-current charge protection +#export OM_CHARGE_CRITICAL_HIGH_CURRENT=1.5 + # Mower motor temperatures to stop and start mowing export OM_MOWING_MOTOR_TEMP_HIGH=80.0 export OM_MOWING_MOTOR_TEMP_LOW=40.0 diff --git a/src/open_mower/launch/open_mower.launch b/src/open_mower/launch/open_mower.launch index 96ba4a3a..cc5c2973 100644 --- a/src/open_mower/launch/open_mower.launch +++ b/src/open_mower/launch/open_mower.launch @@ -9,7 +9,6 @@ - @@ -29,6 +28,9 @@ value="$(eval battery_empty_voltage if battery_critical_voltage=='' else battery_critical_voltage)" /> + + +