Closed vinhk closed 7 years ago
What you mean with 25 seconds? Did you try to test it first in sitl?
@Stifael once the the timing hit 25 seconds, I send the x position to see if the Pixhawk move and so on for y. I tested it in Gazebo and it worked well.
@vinhk I would try a time interval in the if statement and publish x y and z. Better, I would test if you reached position within a certain threshold, also adding a condition to stop if position has not been reached in a certain time.
Is there a PX4 issue here? If not can you ask these types of questions on discuss (http://discuss.px4.io/) or gitter (https://gitter.im/PX4/Firmware)?
I am testing it with Px4flow on my Pixhawk. I also added a few lines to see if it responds to movements commands. However, it goes off higher and higher when x or y is sent. I want to send x at 25 seconds and y at 35. Here is my code: