OK, in summary I have a TBS discovery and I want to do a better job of setting up its odd angle arms to work with the APM.  I feel like understand this would also be great for testing and adding new platforms like a spider Octa, hexa V, etc.

I've made pictures because I feel they can better convey information.  Basically, I've found the angles on my non-pure X frame (not 45* spacing) from the horizontal and vertical lines.  I tried do a simple edit of these values (see picture 3), but it didn't see very stable over the normal X with the same PID settings.


I also looked at how the Octa V is setup, and I'm thinking that is the best way to tackle this problem, but I don't quite understand how I might map these values out for this setup.  Who wrote the V code?  Could they share any insight?

Here is the normal X frame, and the rough Roll/Pitch factor that gets applied after the add_motor function by my calculations. 

3690974422?profile=original

I then looked at the Octa V and saw how it skipped the add motor function and just wrote raw roll/pitch factors.  I mapped them here to try to better understand how their placement would change my offset X.

 3690974001?profile=original

So can I get away with my angle changes running add_motors, or do I need to find out what the real roll/pitch factors for this offset should be?

 

3690974443?profile=original

Edit: Updated pictures.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi Josh,

    check this out, ardupirates motor mixing.

    I wrote this when I made the V mixing for the arducopter/ardupirates, hope it helps.

    Dani

  • Finally got some arms, here's what I'm getting for angles on the TBS discovery:

    3692554030?profile=originalI'll be trying out 62/-133/-62/133 see how it goes, not until some more parts are in though

  • How do you mean it flew badly ? Did it respond to roll/pitch correctly ?

    Also, where did you get the raw values ? Here's what I'm getting for these angles (67.5 -120 -67.5 120)

    #1 -0.9   0.4

    #2  0.9  -0.5

    #3  0.9   0.4

    #4  -0.9 -0.5

    rounded up at one decimal

    but if you measured correctly then the correct in-code angles for 2 & 4 should be more like 127.5 , -127.5

  • I did some more testing yesterday;  putting the add_motor_raw function works just fine.  I started out just emulating the X quad setup to get a baseline, and this worked as well.   I will flight test the configuration in the last picture today.  It felt like it had more forward pitch correction which is what I wanted.

    I still am looking for any information on how one might find these raw values so we can write code for Octa spiders, Hexa V's, or other crazy designs.  Anyone? 

  • I just did more flying on the correct angle offset config, and it does not fly well.  The pure X setup feels much better than the correct angle setup, and I believe this is because the "pure" setups are made to be symmetrical in nature.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
Monday
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
Monday
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
Monday
DIY Robocars via Twitter
Sep 24
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Sep 23
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Sep 22
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: Practiced at @RAMS_RC_Club today with my new @ARRMARC car https://t.co/AEu2hCx89T
Aug 28
DIY Robocars via Twitter
Aug 24
DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
More…