MultiWii horizon mode

720 views
Skip to first unread message

peabody124

unread,
Nov 4, 2013, 8:03:03 PM11/4/13
to phoeni...@googlegroups.com
I was playing around with porting MultiWii horizon mode to Tau Labs today. It's pretty fun.  Supposedly this is good for FPV to be able to fly attitude and also do flips :)



Reddog

unread,
Nov 5, 2013, 12:45:53 AM11/5/13
to phoeni...@googlegroups.com
Never heard of this before, what a great idea! Nice work mate.

Jörg Rohde

unread,
Nov 5, 2013, 4:43:54 AM11/5/13
to phoeni...@googlegroups.com
I have to say I use it - horizon - on a Naze. And when you implement it in TL I must put an Sparky in my mini - 200mm - copter. Telemetrie, Batt., to my Hott:-)

peabody124

unread,
Nov 5, 2013, 4:01:21 PM11/5/13
to phoeni...@googlegroups.com
Tested on a plane today and updated the video. https://vimeo.com/78585463#t=2m43s

Oso Grande

unread,
Nov 7, 2013, 8:28:35 PM11/7/13
to phoeni...@googlegroups.com
Ok, I got it loaded onto my CC3D board last night and got a chance to fly it after work today.

Holy crap it works great!  In your video you noticed something odd doing pitch rolls.  It seems to yaw around 180 degrees once it gets inverted before rolling the rest of the way over.  It's almost like doing auto Split-S maneuvers.  This is the first time I've flown on Tau Labs firmware.  I just copied the same PID's as I was using on the OP firmware and its appears to me to be even more smooth flying on this version.  Forgive the yawing back and forth I do occasionally in this video, I kept getting turned around.  Not enough visual landmarks under the goggles.

I've flipped over left, right, forward and backwards to check to see if there is any bugs.  It seems the same odd rotations occur whether flipping forward or backwards, but not to either side.

Thank you sir, I'm enjoying this quite a bit!


peabody124

unread,
Nov 7, 2013, 8:37:10 PM11/7/13
to phoeni...@googlegroups.com
Awesome video. Glad you like it!  Yeah we did quite a few improvements to the flight code since the fork so I think it flies better now.

Also I think it showed me what is going on - basically when you pitch flip the roll axis is in attitude mode and when you flip upside down it thinks it needs to roll 180 degrees. I can fix this fairly easily and will upload a new version after testing it.

Oso Grande

unread,
Nov 7, 2013, 8:47:54 PM11/7/13
to phoeni...@googlegroups.com
Very cool.  Thanks for the work and the quick response!  I've never gotten the hang of acro mode so this is right up my alley.  

You keep fiddling with the code, I'll keep crashing and testing!

pug398

unread,
Nov 9, 2013, 9:20:21 PM11/9/13
to phoeni...@googlegroups.com

Been hoping for something like this. Put it on one last night and hope to give it a whirl tomorrow. Think I had maybe better put the cheap props back on first :D
 
 
 

Oso Grande

unread,
Nov 9, 2013, 9:32:48 PM11/9/13
to phoeni...@googlegroups.com
It flies well. Just watch out pitching foreward or backwards. Left and right roll works great.

pug398

unread,
Nov 9, 2013, 9:46:58 PM11/9/13
to phoeni...@googlegroups.com
Oh I am sure it flies well it is my aerobatic skills that worry me LOL
 
What rate are you running? On the old TL a rate of 400 was a slow loop, 500 wasn't bad but got a little tricky and 600 was tough to handle. With expo added in I imagine that took care of the problem of being hard to handle. Guess I will start with 500.

Oso Grande

unread,
Nov 9, 2013, 9:55:11 PM11/9/13
to phoeni...@googlegroups.com
I was using a rate of 300 in the above video.  I'll be trying 500 tomorrow since 300 was a bit slow for my taste.  I'm running 75% expo and that makes for some pretty smooth flying.  

pug398

unread,
Nov 9, 2013, 10:04:07 PM11/9/13
to phoeni...@googlegroups.com
Wow if that is 300 then something has changed so I had better back off some. 
 
 

peabody124

unread,
Nov 9, 2013, 10:38:25 PM11/9/13
to phoeni...@googlegroups.com
So I think these firmwares should fix the weirdness on pitch.

Sparky: https://dl.dropboxusercontent.com/u/6645063/fw_sparky_horizon.tlfw 

CopterControl: https://dl.dropboxusercontent.com/u/6645063/fw_coptercontrol_horizon.tlfw


So what this does is bases the blending based on whichever stick has the greatest input (that's what I tried to do in the last version for Oso but had a bug).  Now when you are in high rate for pitch the roll axis will go into rate mode (i.e. if you are neutral it will try and keep the roll stable). 85% stick input goes into full rate (seems like a reasonable value).

Also regarding the max rate, you can try exponential as well (on the FC side) to have higher rates but make it feel more stable in the middle. I know some of the guys on IRC are using up to 600 (make sure you increase your gyro rate).

Oso Grande

unread,
Nov 9, 2013, 10:48:55 PM11/9/13
to phoeni...@googlegroups.com
Thank you sir.  I'll give it a try in the morning.  Thanks for all your work!

pug398

unread,
Nov 10, 2013, 10:55:58 AM11/10/13
to phoeni...@googlegroups.com
Definitely nice. This updated version flew very well and had a good feel to it on my 500 size quad. Decent flip speed at 300 rate if you have a little altitude. All you guys are doing a great job. Glad you are still supporting CC since that is what I tested it on and now to try it on Sparky.

James Cotton

unread,
Nov 10, 2013, 11:11:49 AM11/10/13
to pug398, phoeni...@googlegroups.com

Great! Awesome it is working now. Video always welcome ;)

--
You received this message because you are subscribed to the Google Groups "phoenixpilot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phoenixpilot...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

pug398

unread,
Nov 10, 2013, 11:30:20 AM11/10/13
to phoeni...@googlegroups.com, pug398
Oso can confirm since he is the one that picked up on it but all the flip combinations seemed good to me. Need to come up with a different cap mount for my camera before getting any video :)

peabody124

unread,
Nov 10, 2013, 3:49:30 PM11/10/13
to phoeni...@googlegroups.com, pug398
Here is me testing it with my Aggressor.  Definitely some of the cleanest looking flips I've ever done.

Oso Grande

unread,
Nov 10, 2013, 3:55:35 PM11/10/13
to phoeni...@googlegroups.com, pug398
Looks like it's working pretty well.  I got out to the field and found I had a motor wire come unsoldered so I've yet to test it.  Possibly later today or definitely tomorrow.

That last flip didn't look like the landing went off as planned.  

peabody124

unread,
Nov 10, 2013, 4:08:24 PM11/10/13
to phoeni...@googlegroups.com, pug398
I just like testing that the stress points break as planned :)  big props to QuadAddict designing that frame well.

pug398

unread,
Nov 10, 2013, 6:02:59 PM11/10/13
to phoeni...@googlegroups.com, pug398
Nice. That is what I like about it the flips break pretty clean even when the rates are cranked up. The 2000 degree gyro setting always worked well for me using Mike Barton's custom firmware and the D20 gyro. This eliminates breaking out the flip at the worst time and slamming into the ground under power.

Oso Grande

unread,
Nov 10, 2013, 6:19:16 PM11/10/13
to phoeni...@googlegroups.com
We have a winner! It flies great. I'll have video up later this evening.

AlPackin

unread,
Nov 10, 2013, 6:53:49 PM11/10/13
to phoeni...@googlegroups.com
heh heh ... great job peabody124 !

Oso Grande

unread,
Nov 10, 2013, 7:46:28 PM11/10/13
to phoeni...@googlegroups.com

https://vimeo.com/79061286

Looking forward to pushing it further.

peabody124

unread,
Nov 10, 2013, 10:03:40 PM11/10/13
to phoeni...@googlegroups.com
Nice demo! It's crazy how tightly and level those flips stop, especially seeing it from FPV perspective. I've added to the videos page http://taulabs.org/videos.html

Oso Grande

unread,
Nov 10, 2013, 10:24:07 PM11/10/13
to phoeni...@googlegroups.com
Thanks.  I'm going to be having some fun with this flying mode. 

Jörg Rohde

unread,
Nov 11, 2013, 7:30:22 AM11/11/13
to phoeni...@googlegroups.com
Tested just now. It´s realy funny. Normaly I am flipping arround with copter´s from half the weight and less then today - but it works.
Gyrorange to 2000 and rate to 500 on roll and pitch works fine.
Thanks James for this feature in TL.
 

pug398

unread,
Nov 11, 2013, 8:22:50 AM11/11/13
to phoeni...@googlegroups.com
I know what you mean. I wish now I had not disassembled the 2 meter quad as it would be awesome to see it flipping about with this running on it.

Oso Grande

unread,
Nov 11, 2013, 9:47:33 AM11/11/13
to phoeni...@googlegroups.com
It's no 2 meter quad but this one is about 4 feet across + 16" props.  I was doing some acro with it with a NAZA on manual.  It sounds like a prop cargo place circling overhead.

Jörg Rohde

unread,
Nov 11, 2013, 11:57:48 AM11/11/13
to phoeni...@googlegroups.com
Oso, 14mm tubes and Turnigy Talon Motorholders?

Oso Grande

unread,
Nov 11, 2013, 12:01:32 PM11/11/13
to phoeni...@googlegroups.com
Yup, Turnigy Talon V2 frame with the extended arms. 25 minutes hovering on 5ah 3s.

Oso Grande

unread,
Nov 11, 2013, 8:17:04 PM11/11/13
to phoeni...@googlegroups.com

Ok, so 500 deg/s is a little fast for the sensors it appears.  I wanted a faster roll than 300 was giving me but it appears 500 throws off the sensors as to what level is.

Damage includes a bunch of nylon bolts and one cf arm & leg.  Oh well, I have spare parts....

James Cotton

unread,
Nov 11, 2013, 9:45:12 PM11/11/13
to Oso Grande, phoeni...@googlegroups.com

Aww man. Sorry to hear that. Whenever you use rates greater than 400 deg/s you need to make sure the gyro rate is higher. I used 2000 deg/s on sparky in my last video.

Can you make a bug report and I'll add a check to gcs to prevent easily entering this configuration. Or maybe I should even add the check to the flight firmware and prevent arming...

--

Oso Grande

unread,
Nov 11, 2013, 9:57:47 PM11/11/13
to phoeni...@googlegroups.com, Oso Grande
I feel like I'm answering a newbie question, but how to I make set the gyro rate higher?

James Cotton

unread,
Nov 11, 2013, 10:03:15 PM11/11/13
to Oso Grande, phoeni...@googlegroups.com

Thanks for making the issue.

That should show up in the config gadget on the main page for the board. However now I think about it that night not be exposed in the GUI for CC.

You should be able to get to it through the browser in HwCopterControl->gyro range. Will post later when at computer if you can't find it.

Oso Grande

unread,
Nov 11, 2013, 10:19:38 PM11/11/13
to phoeni...@googlegroups.com, Oso Grande
I got to it through the browser and got it switched up to 2000.  That said, I lowered the rotation down to 350 deg/s and I'll more slowly step it.  500 was rolling it over faster than needed anyway.  I just want to be able to flip and roll without losing too much altitude.

James Cotton

unread,
Nov 11, 2013, 10:23:12 PM11/11/13
to Oso Grande, phoeni...@googlegroups.com

Also be cautious. I've had ESC failures with crazy stick changes.  Normally my ESC though :)

Jörg Rohde

unread,
Nov 12, 2013, 3:33:18 AM11/12/13
to phoeni...@googlegroups.com, Oso Grande
SimonK ESC´s?
On one quad when I arm, give 10% throttle to stabilize and than move the throttle very fast to 100%, two of the BL´s desynchronize and the Quad flips 180° on SimonK´s.

On a Quad with SiLabs/BLHeli I haven´t seen this. The SparkyQuad with the Horizon Mode has SiLabs there I have no Problem with 500°/sec Rate and 2000°/sec Gyrorange

Reddog

unread,
Nov 12, 2013, 5:31:08 AM11/12/13
to phoeni...@googlegroups.com, Oso Grande
Supposedly the MultiWii ESC code is more stable for some ESCs than SimonK.

Oso Grande

unread,
Nov 12, 2013, 7:54:42 AM11/12/13
to phoeni...@googlegroups.com
Hobby king blue series flashed with SimonK.

Glad to hear 500 does work with the gyro set to 2000.

pug398

unread,
Nov 12, 2013, 9:27:51 AM11/12/13
to phoeni...@googlegroups.com
I find the more narrow the stator the more chance the motor will unsync with simonk. With 12mm and wider stator I have not had a problem so far.

Oso Grande

unread,
Nov 12, 2013, 9:32:02 AM11/12/13
to phoeni...@googlegroups.com
That would make sense given that some folks have had problems running simonk firmware with pancake motors.

James Cotton

unread,
Nov 12, 2013, 9:48:42 AM11/12/13
to Oso Grande, phoeni...@googlegroups.com

Glad it isn't just my firmware that loses sync

--

peabody124

unread,
Nov 13, 2013, 6:43:31 PM11/13/13
to phoeni...@googlegroups.com

pug398

unread,
Nov 13, 2013, 9:19:06 PM11/13/13
to phoeni...@googlegroups.com
James, any reason to use the included updated win version over the previous one?
 
Out of curiosity would it be a coding nightmare to have dual stick rates and dual gyro range? Auto switch between the two depending on mode? The reason asked is I think I see "wandering" coming back in atti mode as gyro range and stick rate go up. Happy with what I got but thought I would ask :)

peabody124

unread,
Nov 13, 2013, 10:04:10 PM11/13/13
to phoeni...@googlegroups.com
No they are the same, just rebased onto next so it changed the hash.

Dual gyro range (i.e. 500 deg/s versus 2000 deg/s) is practically impossible because you have to stop the gyro data to change the rate. But generally I haven't noticed a drop in performance with 2000. Why would you want to change that on the fly?

Regarding dual stick rates, I'm not clear what you mean. Like a different max rate in regular rate mode versus horizon mode on the stick extremes? I think I'm missing something.

Jörg Rohde

unread,
Nov 14, 2013, 12:47:00 AM11/14/13
to phoeni...@googlegroups.com
James, you make an build for windows. I have seen that other builds (next) on Jenkins are also only for windows. Are there no more builds for windows in future?

peabody124

unread,
Nov 14, 2013, 9:53:51 AM11/14/13
to phoeni...@googlegroups.com
I think jenkins is in a bad mood but when lilvinz is around and can kick it then it should make them again.

pug398

unread,
Nov 14, 2013, 10:20:52 AM11/14/13
to phoeni...@googlegroups.com
Thanks, I thought about it later and realized the digital sensor would be a problem. Not sure there would be any problem with analog but since they are being phased out it doesn't matter. Without a range change the stick rate doesn't matter but yes I was thinking a different max rate for attitude and rate mode that horizon switches between.
 
If you haven't noticed any difference in hover between 500 with low max stick rate set and 2000 with high max stick rate set then it is probably just my setup

peabody124

unread,
Nov 14, 2013, 11:50:30 AM11/14/13
to phoeni...@googlegroups.com
"If you haven't noticed any difference in hover between 500 with low max stick rate set and 2000 with high max stick rate set then it is probably just my setup"

Well say you stay in 2000 deg/s and then use low max rate versus high max rate. Then there will definitely be a difference in how it feels. However, I doubt if you compare low max stick rate at 500 deg/s versus low max stick rate with 2000 deg/s you will see much difference. If you think you do let me know and I will try and replicate it.

pug398

unread,
Nov 14, 2013, 9:08:36 PM11/14/13
to phoeni...@googlegroups.com
Actually others can try and see if they notice a difference. Just hover in a small room and see if you have to touch the sticks more in one gyro range than the other. Kind of curious now :)

pug398

unread,
Nov 16, 2013, 6:54:23 PM11/16/13
to phoeni...@googlegroups.com
After flying the micro sparky set for 500 and 2000 d/s with 200 stick rate I can't really tell much of a difference. The 500mm CC on the other hand seemed like more stable hover on the 500 gyro range setting. Didn't try it on the 620mm with quanton as it is flying very well as is with the camera stuff. Love the horizon mode and tried out the 600 stick rate setting this morning.  

pug398

unread,
Nov 17, 2013, 12:36:37 PM11/17/13
to phoeni...@googlegroups.com
First let me say once again horizon mode is great. Want to make sure I say that first :) Now having said that is there something limiting stick rate other than gyro range and max stick rate? Something that would limit roll/pitch flip (2 arms in x mode) but not arm to arm (single arm diagonal flip in x mode or like x/y flip in + mode)? Asking because I am at 1000 max rate and the speed diagonal is close to my speed using my other aerobatic firmware but the roll/pitch flip (in x mode) is a lot slower. Usually two motors powering it over in x mode is faster. I haven't tried + mode yet.

peabody124

unread,
Nov 20, 2013, 9:02:25 PM11/20/13
to phoeni...@googlegroups.com
I don't have the intuition to go through the geometry in my head, but I'm pretty sure to make the sensors in each axis go at 500 deg/s (for example) requires going faster across the diagonal and will result in a faster flip. It's sort of like if you were going 10 m/s east and 10 m/s north your ground speed would be close to 14 m/s.  At least I think that is what it is.

Keep in mind it probably _could_ go faster in X for a flip but it's not flipping at the fastest possible rate, it's flipping at the rate you request.

pug398

unread,
Nov 21, 2013, 9:04:51 AM11/21/13
to phoeni...@googlegroups.com
You may be right it may have an additive effect. My endpoints are at max on both setups so can't tell it to go any faster that way. Not a big deal. Going to get a few more acro only boards from dorkbotix and assemble them to have something to play with. My last one flew away into the sunset never to be seen again when it lost signal :(

peabody124

unread,
Nov 21, 2013, 9:07:13 AM11/21/13
to phoeni...@googlegroups.com
Our hardware flew away or another? Ours should be really robust to transmitter signal loss and reliably fall. I've gone over that code a lot. You do have to have your failsafe configured correctly for some trasmitters that can default to sillyness like full throttle on failsafe.

BTW email me if you'd like a Sparky instead :)
Message has been deleted

pug398

unread,
Nov 21, 2013, 10:18:54 AM11/21/13
to phoeni...@googlegroups.com
No this was my rate mode only board that uses L3GD20 gyro. Old school thru hole board LOL. Lack of failsafe is why it flew away. Sparky is way more advanced and failsafe works well. Kind of miss the agility of the acro board though so think I will throw one together to have something to play with.  Cost less than used kk2 board I just sold so actually will make money. That rarely happens.

Nando

unread,
Nov 21, 2013, 4:16:28 PM11/21/13
to pug398, phoeni...@googlegroups.com
Is is this code good to go on the old CC?



-Nando
Sent from my Sinclair ZX81


pug398

unread,
Nov 21, 2013, 5:50:47 PM11/21/13
to phoeni...@googlegroups.com, pug398
I'm flying "old" CC as well as Sparky version and both working great. I would try it on CC3D but that has a bad output port and only rises to 3.8v and my esc don't like it.

Nando

unread,
Nov 21, 2013, 5:53:48 PM11/21/13
to pug398, phoeni...@googlegroups.com
Got it, thanks.
Load it will be.


-Nando
Sent from my Sinclair ZX81


Nando

unread,
Nov 21, 2013, 6:55:01 PM11/21/13
to pug398, phoeni...@googlegroups.com
The UI is crashing for me in OSX 10.9.
Anyone else been able to run it on this OSX version?


-Nando
Sent from my Sinclair ZX81


peabody124

unread,
Nov 21, 2013, 8:50:13 PM11/21/13
to phoeni...@googlegroups.com, pug398
Can you post the crash report? This was tested by someone else on 10.9

Nando

unread,
Nov 22, 2013, 10:05:10 AM11/22/13
to peabody124, phoeni...@googlegroups.com, pug398
I'll post the stack trace later on.
I ended up loading the GUI in a windows machine and was able to somewhere update/configure the board.
I still had a couple of crashes.

Question, I had before the latest version from OpenPilot that required the loading of the new bootloader (v4).
Will the mix of this code and that bootloader cause any problems?


-Nando
Sent from my Sinclair ZX81


Nando

unread,
Nov 22, 2013, 6:10:25 PM11/22/13
to peabody124, phoeni...@googlegroups.com, pug398
Crash dump.


-Nando
Sent from my Sinclair ZX81


crash_dump.txt

Jörg Rohde

unread,
Nov 30, 2013, 9:32:00 PM11/30/13
to phoeni...@googlegroups.com
James, would it be possible that you make an update with Hott Telemetrie included?

peabody124

unread,
Nov 30, 2013, 11:45:39 PM11/30/13
to phoeni...@googlegroups.com

pug398

unread,
Dec 13, 2013, 10:01:29 AM12/13/13
to phoeni...@googlegroups.com
Built a couple more of the gyro only boards based on the D20 and they flip faster on diagonal just like Sparky in horizon mode so the effect must be additive and I just couldn't remember that being the case. After flying the gyro only fc a bit I began to appreciate sparky in horizon mode all over again :)

flye

unread,
Jan 9, 2014, 9:21:37 AM1/9/14
to phoeni...@googlegroups.com
Hi,I am a new user of TauLab and I want to use horizon mode on my old cc I have last master and read wiki but not found  bootloader to use with your GCS...

Le lundi 4 novembre 2013 20:03:03 UTC-5, peabody124 a écrit :
I was playing around with porting MultiWii horizon mode to Tau Labs today. It's pretty fun.  Supposedly this is good for FPV to be able to fly attitude and also do flips :)



pug398

unread,
Jan 9, 2014, 1:48:46 PM1/9/14
to phoeni...@googlegroups.com
Hi flye. My old CC board had the OP bootloader v1 on it and wouldn't talk to any newer GCS including OP. I had to use stm32 flash loader to burn later release bootloader to it and then it would work with newer GCS including TL. Not sure if you have same problem or not. Bootloader I flashed was off OP site.

pug398

unread,
Jan 9, 2014, 2:05:24 PM1/9/14
to phoeni...@googlegroups.com
These steps to get a compatible bootloader on the board if it won't talk to GCS
 
 
Unless someone has an easier solution :)

flye

unread,
Jan 9, 2014, 4:59:19 PM1/9/14
to phoeni...@googlegroups.com
Hi pug 398,I have v3 now on my cc but for last OPGCS I need v4  but the last TL master look like OP GCS 12.10.2 so I am good with v3 but if it's like OP GCS 13.06.02 & above I need v4
My cc talk to TL GCS but which version did you load for latest TL GCS?

This link is for a brick cc mine is ok I can load bootloader with GCS halt etc.... 

Thanks

pug398

unread,
Jan 9, 2014, 5:45:02 PM1/9/14
to phoeni...@googlegroups.com
ok then I am not clear on what you were looking for. If you can connect to the current master GCS then you have a working bootloader. Perhaps you are asking where the current flight firmware is located which would be flight\coptercontrol\fw_coptercontrol.tlfw. I have never run the BL updater since so I still have v3 on the old board. Bootloader and flight firmware are the only two things I can think of.

flye

unread,
Jan 10, 2014, 10:28:51 AM1/10/14
to phoeni...@googlegroups.com
Ok will try it like this but my question was that with latest OPGCS release we need BL v4 so with TL master do we need v3 or v4?

Thanks

Reddog

unread,
Jan 10, 2014, 6:56:51 PM1/10/14
to phoeni...@googlegroups.com
I have one of the first CopterControls made and I have never changed the bootloader on it. Actually I have never changed a bootloader (that I am aware of) on any of the 10 or so boards I have. Just because Tau Labs and OP GCS looks the same doesn't mean they operate the same.

In short I am saying just try it and see if it works.

peabody124

unread,
Jan 10, 2014, 7:27:42 PM1/10/14
to phoeni...@googlegroups.com
Agreed. I don't think any of us have a clue what they have changed in the bootloader since hte fork but I'd expect v3 to probably work. Also we have our own bootloader that is a complete rewrite (backwards compatible) if you really need to update.

flye

unread,
Jan 11, 2014, 4:39:55 PM1/11/14
to phoeni...@googlegroups.com
Thanks everybody for help I will try it when I will receive missing parts
Reply all
Reply to author
Forward
0 new messages