Performing Open Loop Maneuvers

Firmware/software/electronics/mechanics
Post Reply
eddiebob
Beginner
Posts: 2
Joined: Mon Jul 28, 2014 5:20 pm

Performing Open Loop Maneuvers

Post by eddiebob »

Hi everyone,

I'm new to the Bitcraze community and have been enjoying playing around with my Crazyflie for the last week or so. I've set up the Virtual Machine and started learning about setting parameters and logging variables. The next step I'd like to take is to be able to program open loop maneuvers to the Crazyflie while I fly it. For example, I've written a Python script to do an open loop flip, and would like to be able to press a button on my controller to override the normal flying code, then return back to the normal code to continue on my way. For now, I have to set the Crazyflie on the ground, wait for the computer to connect, etc...

I've spent quite a bit of time going through the Python repo, but I haven't been able to figure out how to call my open loop maneuvers as I've described. However, I admittedly don't have a super strong coding background, so I'm assuming that I've overlooked something. Has anyone done anything similar before? If not, I think it might be useful to know what scripts are actually operating the Crazyflie when it's flying through the CFclient, as well as which script operates the Alt Hold mode. I think that if I found these I might be able to figure things out using them as a template.

Thanks for you help!
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Performing Open Loop Maneuvers

Post by tobias »

Here's a post about flipping. I'm not sure the code is shared though.
Post Reply