Search found 367 matches

by kristoffer
Wed Jan 20, 2021 1:30 pm
Forum: Lighthouse positioning system
Topic: Lighthouse Positioning - position estimation with only one Basestation
Replies: 1
Views: 8

Re: Lighthouse Positioning - position estimation with only one Basestation

Hi! One basestation swipes two orthogonal planes across the space. When the planes hit the drone it will know that it is on the intersection line of the planes but it does not know on which point of the intersection line it is. Yes, this is correct for one sensor. The Lighthouse deck has 4 sensors t...
by kristoffer
Fri Jan 15, 2021 7:46 am
Forum: Developer Discussions
Topic: Using SyncLogger with passed in arguments.
Replies: 1
Views: 33

Re: Using SyncLogger with passed in arguments.

I'm not completely sure what you are trying to do, but my guess is that you want self.cf_pos to be updated in the background by calling flight_logger . Correct? This does not work since the for loop in the SyncLogger context will never return, it will simply run the for loop forever (unless I missed...
by kristoffer
Tue Jan 12, 2021 11:50 am
Forum: General discussions
Topic: using SyncLogger with an array of configurations
Replies: 1
Views: 34

Re: using SyncLogger with an array of configurations

No, you only need one for loop, but in each iteration you get either log data for log_angle or log_position, but not both. You have to check that the key actually exists in the dictionary before reading with SyncLogger(self._cf, [log_angle,log_position]) as log: for log_entry_1 in log: data_1 = log_...
by kristoffer
Fri Jan 08, 2021 11:08 am
Forum: General discussions
Topic: A PyQt question for the Client
Replies: 1
Views: 42

Re: A PyQt question for the Client

Hi! Yes, a Lighthouse tab is on our roadmap for the near future, let's align our afforts! We have not really discussed what we want to do, but I have some ideas of creating generic positioning tab instead to show data for all types of positioning systems in one view. It would also be nice to make so...
by kristoffer
Fri Jan 08, 2021 10:52 am
Forum: Support
Topic: LPS TWR Mode accuracy
Replies: 3
Views: 2362

Re: LPS TWR Mode accuracy

yzhou, could you please start a new thread and descibe your problems and setup
by kristoffer
Fri Jan 08, 2021 10:47 am
Forum: Lighthouse positioning system
Topic: One drone following another drone. [Solved]
Replies: 10
Views: 559

Re: One drone following another drone.

Sorry for being unclear, I meant that it is easier to send the setpoints directly to the controller and skip the high level commander. One thing to note is that you must continuously send setpoints (atleast 4-5/s) after take off, otherwise you will trigger a safety mechanism in the Crazyflie that wi...
by kristoffer
Fri Jan 08, 2021 10:35 am
Forum: Quadcopters
Topic: Update queued measurements in kalman filter
Replies: 3
Views: 534

Re: Update queued measurements in kalman filter

Hi Marc!

That is not the intention, good catch!
It looks like it was me messing up when refactoring.

Fixed in https://github.com/bitcraze/crazyflie-f ... issues/669

Thanks!
by kristoffer
Thu Jan 07, 2021 4:02 pm
Forum: Lighthouse positioning system
Topic: One drone following another drone. [Solved]
Replies: 10
Views: 559

Re: One drone following another drone.

The High level commander is pretty cool and generates nice trajectories with lots of control information for the undrlying controller, unfortunately the PID controller is not as competent and will discard most of if. To really get the best out of the HL commander you need the Mellinger controller, b...
by kristoffer
Tue Jan 05, 2021 11:42 am
Forum: Lighthouse positioning system
Topic: One drone following another drone. [Solved]
Replies: 10
Views: 559

Re: One drone following another drone.

Hi! Q1 It should be fine to nest yet another SyncCrazyflie. You can take a look in https://github.com/bitcraze/crazyflie-lib-python/blob/0.1.12.1/cflib/crazyflie/syncCrazyflie.py#L71-L73 to see what is actually going on. When you enter the context it pretty much just opens the link to the Crazyflie ...
by kristoffer
Mon Jan 04, 2021 1:25 pm
Forum: Lighthouse positioning system
Topic: One drone following another drone. [Solved]
Replies: 10
Views: 559

Re: One drone following another drone.

Hi Joe! It is possible to use one context manager within another one like you do. I think your code looks pretty OK, I would suggest adding a sleep in the while loop inside the follow() function to avoid pushing too many set points to the Crazyflie. Maybe add a time.sleep(0.1)? I don't know why you ...