Code Monkey home page Code Monkey logo

Comments (4)

whoenig avatar whoenig commented on August 16, 2024

The communication in the Crazyswarm is using broadcasting (except for the initial connection) and thus your LED indicators might not work as expected. If you have an LED ring attached to the CFs, they show the communication status by default (red = no packets received; green = good communication). Your initial log shows that there was no problem connecting to both CFs.

Also, make sure that the tracking is working properly (e.g. by looking at the tf frames in rviz) - if the CFs are not tracked, no packets are being send to the CFs.

from crazyswarm.

rbellido1 avatar rbellido1 commented on August 16, 2024

Thanks for your reply Whoenig.
I followed your recommendations so checked tf frames in rviz and I am getting data for both CFs. I don't have LED ring attached to CFs. Also I flashed the firmwares for two more crazyflies (CF2 and CF5) and tested with the same results. Please see the pic for the rviz results.
rviz3.
But there is one difference compare with the previous logs that I haven't got the thread info like"[ INFO] [1505519597.433256325]: Started 1 threads ".
At this point I think my problem is that i haven't flashed the firmwares properly. To flash the firmwares I used the Crazyflie PC Client and followed the procedure from your paper "Flying Multiple UAVs using ROS". In order to create the zip file, I get the bin files for STM32 and NRF51 that I generated on crazyswarm after running the ./build.sh. But first I renamed the bin files accordingly to the names on manifest.json and finally zip them. My understanding is when the PC Client is used both firmwares need to upload at the same time.
Yesterday, I tried to followed the procedure from crazyswarm documentation for flashing, https://wiki.bitcraze.io/doc:crazyflie:dev:starting. But It was not clear for me, the first thing that I tried understand what does "make cload"?.
I googled "make cload" and I couldn't find any information. Is this something that you created? .Also I found one of your previous post regarding to "make cload", #10, and tried to use it, like this
crazyswarm$ cd crazyflie-firmware
make
make cload
But I got errors:
rbellido@holmes:~/crazyswarm/crazyflie-firmware$ make cload
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next
10 seconds ...
Cannot connect the bootloader!
make: *** [cload] Error 255
With this method, do you need to "make cload" each bin file separate (crazyswarm/crazyflie-firmware AND crazyswarm/crazyflie2-nrf-firmware)? Do I need to use USB cable between the CF and PC for the communication or a Crazyradio in order to "make cload"?
I don't have at this moment any of the programming cables mentioned on the paper but I could buy them if it is necessary. Could you please provide some details about how you flash the firmware using "make cload" from the terminal. if it is possible?.
Last question, on my previous tests with multiple CFs, I used the script "figure8_canned.py" for flying. Is this the correct script for flying multiples CFs?
Thank you for all your help.
Robert Bellido

from crazyswarm.

whoenig avatar whoenig commented on August 16, 2024
  1. make cload is the recommended method. The idea with the zip file should technically work, but we didn't test it for the Crazyswarm. The flashing will use the Crazyradio dongle as well. The steps are the following: a) Put the battery into the CF. b) Press the power button for 3 seconds. The blue LED should start blinking. The firmware is now in bootloading mode. c) run make cload on the command line. For best results, place the CF close to the radio. You will need to repeat this procedure for STM32 and NRF51.
  2. figure8_canned is a good starting point. You can also just press start on your xbox360 controller to trigger a takeoff (and press back to land again), without running a python script.
  3. There will be as many threads as channels/radios used. So in your case there should be only 1 thread.
  4. Make sure your CF is on a level surface while booting, otherwise its self-test might fail during sensor calibration which would cause it to never take off.

from crazyswarm.

rbellido1 avatar rbellido1 commented on August 16, 2024

Hi Whoenig,
Finally,I was able to establish radio communication between the 2CFs and one crazyradio. I reflashed all the CFs using your method and I also noticed that I was using for the broadcast_address "E7E7E7E7E7" instead of "FFE7E7E7E7". I still get the warning messages but I think I need to improve Vicon coverage by rearranging the cameras in order to get rid off these messages.
Thank you again for all your help! I will close this post.
Robert Bellido

from crazyswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.