Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue regarding the using of velocity setpoint and position setpoint at the same time #21

Open
hariharvin opened this issue Mar 24, 2021 · 1 comment

Comments

@hariharvin
Copy link

Hi, i am new to GitHub if any mistakes are there please forgive me

I am trying to maintain a matrix formation of four vehicles .I am using algorithm such that it checks vehicle position for every one second .If any deviation is there the vehicle has to cover deviation in next one second so vehicle needs to travel with more velocity than previous velocity of the same vehicle .

So i am trying to set the velocity and position set points at the same time so that vehicle reaches that next position in same time as other vehicles corresponding positions to maintain formations. But the vehicle is not reaching the given position although it is taking the velocities.

I am using /mavros/setpoint_raw/local ,i am setting required bit mask also ..

what could be the mistake ? Can anybody guide me to Implement this ?

@ericjohnson97
Copy link
Contributor

Sorry for the late response. XD. the easiest way to do this would be to use the default position controllers built into ardupilot, but use set_speed in the iq_gnc api to update the desired speed to the waypoint.

https://github.com/Intelligent-Quads/iq_tutorials/blob/master/docs/GNC_functions_documentation.md#int-set_speedfloat-speed__mps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants