vehicle/running/result

Works out emissions and costs based on journey miles

Source:
Since:
  • 0.1.21

Methods

(inner) getCost() → {struct}

Source:
Returns:
Type
struct

(inner) getEmissions() → {struct}

Source:
Returns:
Type
struct

(inner) getJourney(skv_config) → {struct}

Source:

get journey miles on electric and ice

Parameters:
Name Type Description
skv_config struct
Returns:
Type
struct

(inner) getSplit() → {struct}

Source:

Calculate journeys and mileages taken

Returns:

electric, ice and totals

Type
struct

(inner) singleJourneyCost(skv_journey_split, skv_ppm) → {struct}

Source:

calculate a single journey cost

Parameters:
Name Type Description
skv_journey_split struct

miles of journey on electric and ice

skv_ppm struct

pence per mile on electric and ice

Returns:
Type
struct

(inner) singleJourneyEmissions(skv_journey_split, skv_co2_g_per_mile) → {struct}

Source:

calculate a single journey emissions

Parameters:
Name Type Description
skv_journey_split struct

miles of journey on electric and ice

skv_co2_g_per_mile struct
Returns:
Type
struct