diff --git a/emBODY/eBcode/arch-arm/board/bat/BAT_Rev_B/Src/BAT_B.c b/emBODY/eBcode/arch-arm/board/bat/BAT_Rev_B/Src/BAT_B.c index 3b71d4ee9..e07e079ab 100644 --- a/emBODY/eBcode/arch-arm/board/bat/BAT_Rev_B/Src/BAT_B.c +++ b/emBODY/eBcode/arch-arm/board/bat/BAT_Rev_B/Src/BAT_B.c @@ -10,8 +10,8 @@ #include "BAT_B.h" char Firmware_vers = 1; -char Revision_vers = 3; -char Build_number = 3; +char Revision_vers = 9; +char Build_number = 9; uint32_t vtol=100; // voltage tolerance for hysteresis uint32_t vhyst=0; // voltage hysteresis diff --git a/emBODY/eBcode/arch-arm/board/ems004/appl/v2/cfg/eoemsappl/EOMtheEMSapplCfg_cfg.h b/emBODY/eBcode/arch-arm/board/ems004/appl/v2/cfg/eoemsappl/EOMtheEMSapplCfg_cfg.h index 6465019c0..a83432e60 100644 --- a/emBODY/eBcode/arch-arm/board/ems004/appl/v2/cfg/eoemsappl/EOMtheEMSapplCfg_cfg.h +++ b/emBODY/eBcode/arch-arm/board/ems004/appl/v2/cfg/eoemsappl/EOMtheEMSapplCfg_cfg.h @@ -81,7 +81,7 @@ extern "C" { #define EOMTHEEMSAPPLCFG_VERSION_MAJOR (VERSION_MAJOR_OFFSET+3) // minor <0-255> // minor <0-255> -#define EOMTHEEMSAPPLCFG_VERSION_MINOR 97 +#define EOMTHEEMSAPPLCFG_VERSION_MINOR 99 // version diff --git a/emBODY/eBcode/arch-arm/board/ems004/appl/v2/src/eoappservices/embot_app_eth_theBATservice.cpp b/emBODY/eBcode/arch-arm/board/ems004/appl/v2/src/eoappservices/embot_app_eth_theBATservice.cpp index b2772d535..263cc4274 100644 --- a/emBODY/eBcode/arch-arm/board/ems004/appl/v2/src/eoappservices/embot_app_eth_theBATservice.cpp +++ b/emBODY/eBcode/arch-arm/board/ems004/appl/v2/src/eoappservices/embot_app_eth_theBATservice.cpp @@ -90,7 +90,7 @@ struct embot::app::eth::theBATservice::Impl { CANmonitor canmonitor{}; static constexpr CANmonitor::Config defaultcanmonitorconfig{ {}, // the map is left empty - 200 * embot::core::time1millisec, + 250 * embot::core::time1millisec, CANmonitor::Report::ALL, 10 * embot::core::time1second, s_eobj_ownname, @@ -476,11 +476,13 @@ eOresult_t embot::app::eth::theBATservice::Impl::Start() { cfg.target.clear(); // check if we are not using custom value > 100 for service.servconfig.data.as.battery.canmonitorconfig.periodofcheck // if not we are setting it to 250 in order to not having error when canmonitor checks for BAT frames - if(service.servconfig.data.as.battery.canmonitorconfig.periodofcheck == 0) - service.servconfig.data.as.battery.canmonitorconfig.periodofcheck = 250; - cfg.periodofcheck = embot::core::time1millisec * service.servconfig.data.as.battery.canmonitorconfig.periodofcheck; - cfg.periodofreport = embot::core::time1millisec * service.servconfig.data.as.battery.canmonitorconfig.periodofreport; - cfg.reportmode = static_cast(service.servconfig.data.as.battery.canmonitorconfig.reportmode); +// if(service.servconfig.data.as.battery.canmonitorconfig.periodofcheck != 0) +// { +// cfg.periodofcheck = embot::core::time1millisec * service.servconfig.data.as.battery.canmonitorconfig.periodofcheck; +// cfg.periodofreport = embot::core::time1millisec * service.servconfig.data.as.battery.canmonitorconfig.periodofreport; +// cfg.reportmode = static_cast(service.servconfig.data.as.battery.canmonitorconfig.reportmode); +// } + canmonitor.configure(cfg); canmonitor.start();