Synchronous mod connection Matlab, delay simulation

Typically: "How do I... ", "How can I... " questions
Post Reply
luberdis
Posts: 24
Joined: 14 Dec 2018, 16:06

Synchronous mod connection Matlab, delay simulation

Post by luberdis » 11 Jun 2019, 12:29

Hi Coppelia

I implement a code for controlling a mobile robot in synchronous connection with Matlab. I set the target velocity of the joints and then I check the state of the robot process in control conditions and then reset target velocity.

The problem and questions is how can I delay in synchronous the algortihm, from the moment i set the velocity until the timestep of 0.01 s finishes and then check the states of the robot again to send the new command.

coppelia
Site Admin
Posts: 7159
Joined: 14 Dec 2012, 00:25

Re: Synchronous mod connection Matlab, delay simulation

Post by coppelia » 14 Jun 2019, 13:03

Not sure I correctly understand your question.
Maybe make sure that your simulation step has finished executing, before sending new values or querying values?

Cheers

Post Reply