calculate_range
Calculate usable battery energy (Wh) and realistic range in km from voltage and Ah, using the measured consumption baseline (24 Wh/km).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bateria_v | Yes | Battery voltage (V) | |
| bateria_ah | Yes | Battery capacity (Ah) | |
| consumo_wh_km | No | Consumption in Wh/km (default 24) | |
| carga_extra_kg | No | Extra weight (passenger/cargo) in kg |