Any utility functions related to running of a vehicle
- Source:
Methods
(inner) getBatteryRangeMiles(skv_config) → {number}
- Source:
get user or official battery range miles based on struct
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | battery_range_miles_user, battery_range_miles |
Returns:
Description
- Type
- number
(inner) getIsCSMode(skv_config) → {boolean}
- Source:
if a journey range is not provided then 16 miles is added to the battery range to calculate the journey range as an approximation of how far the vehicle will travel on ICE before recharging the battery
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | mpg, battery range, optional journey miles |
Returns:
- Type
- boolean
(inner) getMPG(skv_config) → {number}
- Source:
get user or official mpg based on struct
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | mpg_user, mpg |
Returns:
- Type
- number