Auto arming motors and leveling when thrown

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
jemmicat
Posts: 2
Joined: Sun Dec 23, 2012 9:11 pm

Auto arming motors and leveling when thrown

Post by jemmicat »

So I just got my quad together today and after futzing with the motor arming (and never getting them to disarm) I remembered that the many videos by the grasp labs show the quad being thrown into the air not running and it will spin up the motors and auto level and wait for commands (in their case the commands are built in the programming)

Has this same sort of setup been done with the MultiWii code? I searched but wasn't finding what I was looking for. If it hasn't, would it be something anyone other than me would want? I think I could probably do the code as it should just be a measure of a freefall from the accelerometers and then trigger a routine to level. But coding isn't my strong point although I am much better than I used to be

Shogun
Posts: 13
Joined: Thu Sep 06, 2012 9:14 am

Re: Auto arming motors and leveling when thrown

Post by Shogun »

Yeah, this would be cool. But I fear other priorities will be set. Anyway: +1!

jemmicat
Posts: 2
Joined: Sun Dec 23, 2012 9:11 pm

Re: Auto arming motors and leveling when thrown

Post by jemmicat »

If it hasn't been done, I will work on it when I can. I've got a lot of IMU experience with a motorcycle datalogging project and should be able to do this in between work on my ARM based project. Anyone willing to help would be great though

User avatar
dramida
Posts: 473
Joined: Mon Feb 28, 2011 12:58 pm
Location: Bucharest
Contact:

Re: Auto arming motors and leveling when thrown

Post by dramida »

The code is in MultiWii Controller already, you have to define one option witch allows to arm copter with motors stopped and they will spin only when you rise throttle. If i remember the code is #define motors_stop . I tested the throwing and somewhere on yaw code is an overflow. Here is the video:
http://www.youtube.com/watch?v=bCrAMUykk1o

brm
Posts: 287
Joined: Mon Jun 25, 2012 12:00 pm

Re: Auto arming motors and leveling when thrown

Post by brm »

jemmicat wrote:So I just got my quad together today and after futzing with the motor arming (and never getting them to disarm) I remembered that the many videos by the grasp labs show the quad being thrown into the air not running and it will spin up the motors and auto level and wait for commands (in their case the commands are built in the programming)

Has this same sort of setup been done with the MultiWii code? I searched but wasn't finding what I was looking for. If it hasn't, would it be something anyone other than me would want? I think I could probably do the code as it should just be a measure of a freefall from the accelerometers and then trigger a routine to level. But coding isn't my strong point although I am much better than I used to be


inertial measurement of the z axe aka double integration of the accelerometer values (in earth frame)
when you see the rel. height starts to decline arm the motors and set the throotle to a pre-defined value.
the value will be overwritten when the user moves the throttle...

pretty simple - but you accurate acc values :)

Post Reply