Thanks for catching that I changed it to elif and it works a lot better now.
I also don't know what happened but it managed to start working with the swarm now.
Thanks again.
Search found 12 matches
- Wed Dec 01, 2021 3:46 am
- Forum: Autonomous flight
- Topic: Autonomous Flight with Swarm
- Replies: 2
- Views: 9987
- Fri Nov 26, 2021 10:44 pm
- Forum: Autonomous flight
- Topic: Autonomous Flight with Swarm
- Replies: 2
- Views: 9987
Autonomous Flight with Swarm
Hi all, I have written a script drawing ideas from previous posts on this forum to try to get a swarm to execute the autonomous flight task utilizing the multiranger and flowdeck stem bundle from Bitcraze. My only issue is that the behavior of the autonomous flight correctly works for one drone, but...
- Tue Nov 23, 2021 2:33 am
- Forum: Bitcraze
- Topic: Mapping with Script using STEM Bundle
- Replies: 3
- Views: 737
Re: Mapping with Script using STEM Bundle
Actually I understand the whole halt after calling the app to execute. I just want to know how to exactly to get the MainWindow object to command the drone to do a set of commands instead of just hovering and waiting for keyboard inputs. Is there a way I can write a sequence of movements for the dro...
- Sat Nov 20, 2021 7:08 am
- Forum: Bitcraze
- Topic: Mapping with Script using STEM Bundle
- Replies: 3
- Views: 737
Re: Mapping with Script using STEM Bundle
Sorry to further clarify, I essentially want to run the autonomous flight using the multiranger deck but be able to visually see this in the GUI that is open on multiranger_pointcloud.py.
- Fri Nov 19, 2021 6:39 pm
- Forum: Bitcraze
- Topic: Mapping with Script using STEM Bundle
- Replies: 3
- Views: 737
Mapping with Script using STEM Bundle
Hello, I had a question about the script in crazyflie-lib-python/examples/multiranger/multiranger_pointcloud.py Are we able to map the drones points its generating with this script with autonomous flight? For example, if I just write a simple set of directions for it to move forward and back. From m...
- Tue Nov 16, 2021 1:25 am
- Forum: Bitcraze
- Topic: Battery Logging with Example Script
- Replies: 10
- Views: 1548
Re: Battery Logging with Example Script
ah yes, it finally worked out thanks for your guidance. I also am curious about the value I am recording, they are in intervals of 10%? Is the CrazyFlie limitation only able to read the battery level in output intervals of 10%? I am currently using pm.batteryLevel to retrieve the data regarding batt...
- Fri Nov 12, 2021 7:08 pm
- Forum: Bitcraze
- Topic: Battery Logging with Example Script
- Replies: 10
- Views: 1548
Re: Battery Logging with Example Script
I am trying to print simultaneously the battery levels of my 2 drones. The code I have and am using is linked here https://pastebin.com/NiMuAZkP I am trying to work through my GetBattery method which would display the battery however to my attempts, it seems to only display the first URI0 CrazyFlie'...
- Thu Nov 11, 2021 3:58 am
- Forum: Bitcraze
- Topic: Battery Logging with Example Script
- Replies: 10
- Views: 1548
Re: Battery Logging with Example Script
https://imgur.com/gallery/GUmEO0C sorry this is the link I don't know why the image does not load.
- Thu Nov 11, 2021 3:58 am
- Forum: Bitcraze
- Topic: Battery Logging with Example Script
- Replies: 10
- Views: 1548
Re: Battery Logging with Example Script
https://imgur.com/gallery/GUmEO0C This is the error I am getting when trying to run the code for my two crazyflie drones. I feel like this is a really simple python syntax thing that I am not getting. I don't really understand why when I call swarm.parallel_safe(setup_logging) it is unable to find ...
- Tue Nov 09, 2021 1:50 am
- Forum: Bitcraze
- Topic: Battery Logging with Example Script
- Replies: 10
- Views: 1548
Re: Battery Logging with Example Script
Hi I tried writing a variation of that code you posted to get a swarm to ready battery levels but it was unable to do so. I am getting a weird python syntax error (new to python) so if you could help me out that would be cool My code is shared https://pastebin.com/1rmBeLxr as I got banned from posti...