Commit c138b38e authored by Stefan Dähling's avatar Stefan Dähling

fix ensure msg

parent dc0fcba8
...@@ -34,6 +34,7 @@ Ensure_msg::Ensure_msg() : Villas_message() { ...@@ -34,6 +34,7 @@ Ensure_msg::Ensure_msg() : Villas_message() {
Q = nullptr; Q = nullptr;
n = nullptr; n = nullptr;
v = nullptr; v = nullptr;
v2 = nullptr;
SOC = nullptr; SOC = nullptr;
connected = nullptr; connected = nullptr;
t_connected = nullptr; t_connected = nullptr;
...@@ -56,6 +57,7 @@ Ensure_msg::Ensure_msg(int _performative, int _agent_id) { ...@@ -56,6 +57,7 @@ Ensure_msg::Ensure_msg(int _performative, int _agent_id) {
Q = nullptr; Q = nullptr;
n = nullptr; n = nullptr;
v = nullptr; v = nullptr;
v2 = nullptr;
SOC = nullptr; SOC = nullptr;
connected = nullptr; connected = nullptr;
t_connected = nullptr; t_connected = nullptr;
...@@ -73,9 +75,10 @@ void Ensure_msg::set_pointers() { ...@@ -73,9 +75,10 @@ void Ensure_msg::set_pointers() {
Q = &(data[3].f); Q = &(data[3].f);
n = &(data[4].i); n = &(data[4].i);
v = &(data[5].f); v = &(data[5].f);
SOC = &(data[6].f); v2 = &(data[6].f);
connected = &(data[7].b); SOC = &(data[7].f);
t_connected = &(data[8].i); connected = &(data[8].b);
t_connected = &(data[9].i);
} }
void Ensure_msg::init_message(int _performative, int _agent_id, double _P, double _Q, int _n, double _v, double _v2, double _SOC, bool _conn, int _t_conn) { void Ensure_msg::init_message(int _performative, int _agent_id, double _P, double _Q, int _n, double _v, double _v2, double _SOC, bool _conn, int _t_conn) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment