Repository navigation
|
Hello! I've recently been using CrazySwarm to perform various experiments and overall having much success. I'm using the low-level command mode cmdFullState() in order to track trajectories I have defined on the host PC. I've implemented this using a state machine which runs at about 100Hz. The tracking performance of the path is nearly perfect but considering the tracking of the trajectory is where the issues start to arise. Below is a visualization of the desired command sent in cmdFullState() as well as the "actual" positions coming in as read from VICON pose information: My particular application sees me iteratively building trajectories mid-flight (on a finite time horizon), so this has only recently become an issue due to discrepancies in the expected vs actual position of the cf. I've taken some steps towards debugging this delay:
You can see if I shift the data over by 0.62 seconds then the desired and actual nearly perfectly overlap. This excellent path, but not trajectory, tracking strongly suggests (at least to me) that there is something causing a delay in commanded inputs, a queue build-up somewhere, or something similar. However I wanted to reach out and inquire if this was a known phenemona or if there was perhaps an obvious place I hadn't yet looked. Thanks in advance for any help anyone can give, CrazySwarm has been a great tool! |
Replies: 1 comment 11 replies
|
Hi! What version of the crazyflie are you using? the 2.1 or the 2.1+ (with upgraded motors) Have you tried any of the other controllers as well? |






Which controller are you using? I think such a delay is normal for the default PID controller, but Mellinger or Lee shouldn't have such large delays for such a relatively slow trajectory.