Skip to content

What is the correct way of passing flight scripts to 2+ cfs individually? #515

Answered by whoenig
AFKBOI92 asked this question in Q&A
Discussion options

You must be logged in to vote
  • crayzfliesById: the ID refers to the last part of the URI, converted to decimal (e.g., if the URI ends with 0A, the ID would be 10). Only available for "legacy" Crazyswarm1 code.
  • crazyflies: completely unordered array, not recommended to use unless you loop over all crazyflies
  • crazyfliesByName: This is the recommended way, where the name is the string used on crazyflies.yaml

Flight issues: It's unfortunately a known issue that sometimes commands don't get executed. We believe that this is a firmware bug. The workaround is to send commands multiple times (e.g., in a for loop). The other issues you describe are probably linked to the incorrect usage of crazyflies[] vs. crazyfliesById - sw…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AFKBOI92
Comment options

Answer selected by AFKBOI92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants