Remove Car Trip Counter from Web, because of unreliablility
This commit is contained in:
parent
36f7e1aff2
commit
e0107bee1c
|
@ -51,7 +51,7 @@ void OvmsVehicleRenaultZoePh2::WebCfgCommon(PageEntry_t& p, PageContext_t& c)
|
|||
if (c.method == "POST") {
|
||||
rangeideal = c.getvar("rangeideal");
|
||||
battcapacity = c.getvar("battcapacity");
|
||||
UseCarTrip = (c.getvar("UseCarTrip") == "no");
|
||||
//UseCarTrip = (c.getvar("UseCarTrip") == "no");
|
||||
UseBMScalculation = (c.getvar("UseBMScalculation") == "no");
|
||||
UseBMSsoc = (c.getvar("UseBMSsoc") == "no");
|
||||
|
||||
|
@ -64,7 +64,7 @@ void OvmsVehicleRenaultZoePh2::WebCfgCommon(PageEntry_t& p, PageContext_t& c)
|
|||
// store:
|
||||
MyConfig.SetParamValue("xrz2", "rangeideal", rangeideal);
|
||||
MyConfig.SetParamValue("xrz2", "battcapacity", battcapacity);
|
||||
MyConfig.SetParamValueBool("xrz2", "UseCarTrip", UseCarTrip);
|
||||
//MyConfig.SetParamValueBool("xrz2", "UseCarTrip", UseCarTrip);
|
||||
MyConfig.SetParamValueBool("xrz2", "UseBMScalculation", UseBMScalculation);
|
||||
MyConfig.SetParamValueBool("xrz2", "UseBMSsoc", UseBMSsoc);
|
||||
|
||||
|
@ -83,7 +83,7 @@ void OvmsVehicleRenaultZoePh2::WebCfgCommon(PageEntry_t& p, PageContext_t& c)
|
|||
// read configuration:
|
||||
rangeideal = MyConfig.GetParamValue("xrz2", "rangeideal", "350");
|
||||
battcapacity = MyConfig.GetParamValue("xrz2", "battcapacity", "52000");
|
||||
UseCarTrip = MyConfig.GetParamValueBool("xrz2", "UseCarTrip", false);
|
||||
//UseCarTrip = MyConfig.GetParamValueBool("xrz2", "UseCarTrip", false);
|
||||
UseBMScalculation = MyConfig.GetParamValueBool("xrz2", "UseBMScalculation", false);
|
||||
UseBMSsoc = MyConfig.GetParamValueBool("xrz2", "UseBMSsoc", false);
|
||||
c.head(200);
|
||||
|
@ -102,7 +102,7 @@ void OvmsVehicleRenaultZoePh2::WebCfgCommon(PageEntry_t& p, PageContext_t& c)
|
|||
|
||||
c.input_slider("Range Ideal", "rangeideal", 3, "km", -1, atoi(rangeideal.c_str()), 350, 80, 500, 1,
|
||||
"<p>Default 350km. Ideal Range...</p>");
|
||||
|
||||
/*
|
||||
c.fieldset_start("Trip counter settings");
|
||||
c.input_radio_start("Which tripcounter to use?", "UseCarTrip");
|
||||
c.input_radio_option("UseCarTrip", "Internal (New trip everytime car starts)", "yes", UseCarTrip == false);
|
||||
|
@ -110,7 +110,7 @@ void OvmsVehicleRenaultZoePh2::WebCfgCommon(PageEntry_t& p, PageContext_t& c)
|
|||
c.input_radio_end("");
|
||||
|
||||
c.fieldset_end();
|
||||
|
||||
*/
|
||||
c.fieldset_start("Battery energy calculation");
|
||||
|
||||
c.input_radio_start("Which energy calculation?", "UseBMScalculation");
|
||||
|
|
Loading…
Reference in a new issue