data from SLAM(ROS)

Firmware/software/electronics/mechanics
RyanMco
Member
Posts: 80
Joined: Tue Apr 09, 2019 6:15 am

Re: data from SLAM(ROS)

Post by RyanMco » Mon Nov 04, 2019 7:24 pm

once I run the second script, the crazyflie just moving its motors and it's staying on the ground not hovering ..
ofcourse Im doing that while slam is working (getting data from slam)



RyanMco
Member
Posts: 80
Joined: Tue Apr 09, 2019 6:15 am

Re: data from SLAM(ROS)

Post by RyanMco » Tue Nov 05, 2019 4:14 pm

Any help?! Im still stuck helpers !

arnaud
Bitcraze
Posts: 2127
Joined: Tue Feb 06, 2007 12:36 pm

Re: data from SLAM(ROS)

Post by arnaud » Wed Nov 06, 2019 9:00 am

My input would be to try to debug your system step by step: I already pointed-out the type of packet that is sent for sending external position to the Crazyflie, you could put a printf at that point to make sure the packet is indeed sent.

On the Crazyflie side you can look at the external position log variables to make sure the data makes it to the Crazyflie: https://github.com/bitcraze/crazyflie-f ... #L247-L251

Then, in the Crazyflie again, you should look at the estimated position before attempting any flight: https://github.com/bitcraze/crazyflie-f ... #L629-L632. If the position estimate does not make sense, autonomous flight will not work.

RyanMco
Member
Posts: 80
Joined: Tue Apr 09, 2019 6:15 am

Re: data from SLAM(ROS)

Post by RyanMco » Wed Nov 06, 2019 9:09 am

Really appreciate your effort to answer.
but I have changed a lil in my scripts as I pointed before, is there a problem with them? maybe Im forgetting something in the code that I wrote itself?!
I have changed a lil in the code that you pointed before about sending external position .. maybe my new code is having a problem?

arnaud
Bitcraze
Posts: 2127
Joined: Tue Feb 06, 2007 12:36 pm

Re: data from SLAM(ROS)

Post by arnaud » Thu Nov 07, 2019 10:00 am

It is hard to debug such a script without the actual system.

You need to check that the position you are sending is indeed sent to the Crazyflie, this is the first step to debug your problem and I sent you pointers of how to do so earlier. This will allow you to locate where the problem is.

Post Reply