Replies: 2 comments 2 replies
-
Hi! The --sim does not simulate the controllers and dynamics of the crazyflie, only the reference trajectory that you generated if I understand correctly. So if you want to test out controllers you would need to use another simulator. This would be either CrazyS or you can check out the recent developments of the crazyflie-simulation repo. It is still experimental, but it flies in Webots already with pythonbindings of the crazyflie onboard controllers! Perhaps that would be good to try it out and see if this works for you? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I am only intending to change the controller, the algorithm between reading sensor values to actuating the motors. Because I only have access to the crazyflies at my university, I intend to use this simulation to write/test code at home. Every now and then I will test code on hardware at university. I will let you know how successful this will be.
…________________________________
From: knmcguire ***@***.***>
Sent: Tuesday, 17 May 2022, 11:43
To: USC-ACTLab/crazyswarm ***@***.***>
Cc: zafer4481 ***@***.***>; Author ***@***.***>
Subject: Re: [USC-ACTLab/crazyswarm] How to simulate changes in crazyflie firmware? (Discussion #639)
Ah great, yes indeed sim_cf uses HITL. Unfortunately the repository is no longer actively maintained I heard so I hope it will still continue to work for your purposes!
—
Reply to this email directly, view it on GitHub<#639 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMIJSFHKTEEKZ4VIRUANC43VKNS3LANCNFSM5VST4G7A>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed crazyswarm on linux for simulation only, which works totally fine.
I wish to change the firmware (controller.c stabilizer.c etc) and simulate how my own implemted controller would work. To see if I can simulate the changes in firmware I set the powerdistributions to 0 and ran the hello_world.py --sim script hoping the drone wouldn't move at all, but it did. So it seems like I was not succesful in changing the firmware and simulating the effect.
Probably I am missing some steps, any idea's? Is this even possible what I am trying to do?
Beta Was this translation helpful? Give feedback.
All reactions