diff --git a/modules/simulation/DCSupplySimulator/main/power_supply_DCImpl.cpp b/modules/simulation/DCSupplySimulator/main/power_supply_DCImpl.cpp index 4bf684b828..d988318815 100644 --- a/modules/simulation/DCSupplySimulator/main/power_supply_DCImpl.cpp +++ b/modules/simulation/DCSupplySimulator/main/power_supply_DCImpl.cpp @@ -22,19 +22,19 @@ void power_supply_DCImpl::ready() { types::power_supply_DC::Capabilities power_supply_DCImpl::handle_getCapabilities() { types::power_supply_DC::Capabilities Capabilities = { - .bidirectional = config.bidirectional, + .bidirectional = this->config.bidirectional, .current_regulation_tolerance_A = 2.0, .peak_current_ripple_A = 2.0, - .max_export_voltage_V = static_cast(config.max_voltage), - .min_export_voltage_V = static_cast(config.min_voltage), - .max_export_current_A = static_cast(config.max_current), - .min_export_current_A = static_cast(config.min_current), - .max_export_power_W = static_cast(config.max_power), - .max_import_voltage_V = static_cast(config.max_voltage), - .min_import_voltage_V = static_cast(config.min_voltage), - .max_import_current_A = static_cast(config.max_current), - .min_import_current_A = static_cast(config.min_current), - .max_import_power_W = static_cast(config.max_power), + .max_export_voltage_V = static_cast(this->config.max_voltage), + .min_export_voltage_V = static_cast(this->config.min_voltage), + .max_export_current_A = static_cast(this->config.max_current), + .min_export_current_A = static_cast(this->config.min_current), + .max_export_power_W = static_cast(this->config.max_power), + .max_import_voltage_V = static_cast(this->config.max_voltage), + .min_import_voltage_V = static_cast(this->config.min_voltage), + .max_import_current_A = static_cast(this->config.max_current), + .min_import_current_A = static_cast(this->config.min_current), + .max_import_power_W = static_cast(this->config.max_power), .conversion_efficiency_import = 0.85, .conversion_efficiency_export = 0.9, }; @@ -105,7 +105,7 @@ void power_supply_DCImpl::power_supply_worker(void) { types::power_supply_DC::VoltageCurrent voltage_current; while (true) { - if (power_supply_thread_handle.shouldExit()) { + if (this->power_supply_thread_handle.shouldExit()) { break; } @@ -116,7 +116,7 @@ void power_supply_DCImpl::power_supply_worker(void) { voltage_current.voltage_V = static_cast(this->connector_voltage); voltage_current.current_A = static_cast(this->connector_current); - mod->p_main->publish_voltage_current(voltage_current); + this->mod->p_main->publish_voltage_current(voltage_current); } } } // namespace main