Skip to content
Snippets Groups Projects
Commit f93bdec8 authored by Arafat Nourredine's avatar Arafat Nourredine
Browse files

* Ensure the state is MOVING when exiting write_position, backward and forward...

* Ensure the state is MOVING when exiting write_position, backward and forward by using a synchronous task message.
parent fc99ec0f
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
<groupId>fr.soleil.device</groupId>
<artifactId>SimulatedMotor-${aol}-${mode}</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.1</version>
<packaging>nar</packaging>
<name>SimulatedMotor</name> <!-- use for the name of executable -->
......@@ -33,6 +33,10 @@
<groupId>fr.soleil.lib</groupId>
<artifactId>YAT-${aol}-${library}-${mode}</artifactId>
</dependency>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>Utils-${aol}-${library}-${mode}</artifactId>
</dependency>
</dependencies>
<scm>
......
......@@ -662,9 +662,8 @@ void SimulatedMotor::stop()
INFO_STREAM << "Command called: stop";
yat::Message * msg = new yat::Message(MSG_STOP);
msg->attach_data(-DBL_MAX);
m_task->post(msg);
yat::Message * msg = new yat::Message(MSG_STOP, DEFAULT_MSG_PRIORITY, true);
m_task->wait_msg_handled(msg); // handle message synchronously (ensure exiting backward() in STANDBY state)
}
//+------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment