Search found 14 matches

by Naidala
Fri Jun 18, 2021 10:43 am
Forum: Developer Discussions
Topic: FP16 to float conversion
Replies: 1
Views: 904

FP16 to float conversion

Hi, I'd like to know how to convert FP16 to its float value. I'm logging values as in https://github.com/bitcraze/crazyflie-lib-python/blob/master/examples/basiclog.py#L75-L84, but I'd like to print (and store) the floating value of 'pm.vbat' (or pm.batteryLevel), in order to use them inside an IF t...
by Naidala
Sat May 15, 2021 7:59 am
Forum: Developer Discussions
Topic: Non-blocking goto function
Replies: 1
Views: 935

Non-blocking goto function

Hi, I have a Vicon Wand and the idea is to send the current position of the wand as reference for the drone while flying, as a pursuit. This way, I cannot use anymore a sequence defined offline, and I cannot use the go_to() function inside PositionHlCommander, since it is blocking. One idea is to us...
by Naidala
Sat May 15, 2021 7:49 am
Forum: Developer Discussions
Topic: external orientation as quaternion
Replies: 3
Views: 1644

Re: external orientation as quaternion

Hi Naidala, I tried Vicon and got the result pretty good with that.
Hi, did you have to change coordinates to the measurement sent, or you passed them to send_extpose just as they are returned by Vicon?
And which commander did you use?
Thanks!
by Naidala
Tue May 11, 2021 1:58 pm
Forum: Support
Topic: Crazyradio not working
Replies: 6
Views: 13081

Crazyradio not working

Hi, till last week the CrazyRadio was working, but then the error "Cannot find a Crazyradio Dongle" appeared. The USB was very loosely attached to the board, so we had it soldered. Now when we insert the Crazyradio its red and green LEDs are always both lit: not blinking, nor switching off...
by Naidala
Tue May 11, 2021 9:54 am
Forum: Developer Discussions
Topic: PositionHlCommander Localization system
Replies: 10
Views: 43208

Re: PositionHlCommander Localization system

Thanks, that's better, I appreciate it. I see no upvote button but thanks, really!
by Naidala
Mon May 10, 2021 9:00 pm
Forum: Developer Discussions
Topic: PositionHlCommander Localization system
Replies: 10
Views: 43208

Re: PositionHlCommander Localization system

Forgive me, I don't know if I understood your answer correctly. I see the go_to() command inside PositionHlCommander sets the absolute desired position x as the current position self._x at the end of a sleep. Is that what you mean when you say it "adds any motion to it to keep track of the curr...
by Naidala
Fri May 07, 2021 11:52 am
Forum: Developer Discussions
Topic: PositionHlCommander Localization system
Replies: 10
Views: 43208

Re: PositionHlCommander Localization system

I upgraded the firmware and now it seems to be working. I only have one more question: as far as I understood, the position is set in the init of PositionHlCommander class, but then I see no other function changing it. Will it be automatically updated on a low level at every new send_extpose command...
by Naidala
Tue May 04, 2021 1:03 pm
Forum: Developer Discussions
Topic: PositionHlCommander Localization system
Replies: 10
Views: 43208

Re: PositionHlCommander Localization system

Thanks! I have used send_extpose with measurements from Vicon in this way: with LogEstimationManager() as log_est: with SyncCrazyflie(URI) as scf: cf = scf.cf log_est.simple_log_async(cf) log_est.reset_estimator(cf) vicon = ViconManager() time.sleep(0.5) init_pos, V2G_rot = vicon.get_drone_pose() wi...
by Naidala
Mon May 03, 2021 10:41 am
Forum: Developer Discussions
Topic: PositionHlCommander Localization system
Replies: 10
Views: 43208

PositionHlCommander Localization system

position_commander_demo is not working, it does run the script (if I put some print here and there it does execute them), but it does not fly, not even start the motors. I'm reading the script requires some kind of Localization system, but I have a Vicon MOCAP. Should I configure it someway, in orde...
by Naidala
Mon Apr 12, 2021 11:51 am
Forum: External positioning systems
Topic: StdDev of External Measurements
Replies: 5
Views: 11786

Re: StdDev of External Measurements

Yes, I want to send the full pose! So, maybe Kalman does not receive those measurements and I'm trying to figure out why. Just to be sure, the max size of a CRTP packet payload is 30 bytes, right? But now a question comes to mind. In C, a float takes only 4 bytes, thus I should be able to send (3pos...