Welcome to Multi-Rotor UK. Please login or sign up.

Wednesday,April 30, 2025, 15:11:26

Login with username, password and session length

Shoutbox

Bad Raven:
12 May 2024 08:13:51
 I have some F1 Abusemark boards going spare,,,,,,,,,,,,,    ;)    :azn
DarkButterfly:
11 May 2024 22:12:29
And with oldskool parts  :D
DarkButterfly:
11 May 2024 22:11:57
I must be the only one doing tricopters right now  :laugh:
DarkButterfly:
11 May 2024 22:09:30
 :D
Gaza07:
11 May 2024 21:15:16
Domain has been renewed closure has been cancelled  :D
Gaza07:
02 May 2024 08:07:52
Who are most people ??? I think the person you are referring to has put in a lot of effort to keep things moving  :rolleyes:
hoverfly:
01 May 2024 10:16:12
Most people I have spoken to are pizzed off with the yellow peril  flooding the forum,go figure. :whistling:
Gaza07:
23 Apr 2024 08:09:45
The Domain expires for the forum in 60 days, I'm not going to renew it this time unless I see any activity  :beer2:
Gaza07:
20 Apr 2024 18:02:50
Is there anyone who would like to see this forum stay open ? :shrug:
hoverfly:
17 Apr 2024 17:15:13
 :rolleyes:
Members
Stats
  • Total Posts: 201,527
  • Total Topics: 20,277
  • Online today: 62
  • Online ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 20
Total: 20

Theme Changer





3d - Printworx

Change Y6 motor mixing

Started by bfretless, Saturday,August 30, 2014, 17:50:55

Previous topic - Next topic

bfretless

Hello, first post here. I have a Crius AIO Pro V2 and GPS coming for my 650mm Y6. It';s presently running a KK2 board. Will load Multiwii 2.3 on the Crius. The KK2 runs all top motors CCW and all bottoms CW. Would like to make the Crius do the same, both because i think it helps with Y6 yaw issues, and to save having to buy new props.

I';ve read the wiki and searched. Looks like the mixing table is where I';d edit to change this. Can anyone help me understand what to change? Basically I want to switch both rear motors'; direction of rotation.

Bill

bfretless

So, it looks like in output.cpp function mixTable() that this #define:

#define PIDMIX(X,Y,Z) rcCommand[THROTTLE] + axisPID[ROLL]*X + axisPID[PITCH]*Y + YAW_DIRECTION * axisPID[YAW]*Z

uses the third term for yaw control. Since I would be changing the direction of rotation of both rear motors, I should alter the direction of yaw output for those motors.

So where the code is presently

#elif defined( Y6 )
    motor[0] = PIDMIX(+0,+4/3,+1); //REAR
    motor[1] = PIDMIX(-1,-2/3,-1); //RIGHT
    motor[2] = PIDMIX(+1,-2/3,-1); //LEFT
    motor[3] = PIDMIX(+0,+4/3,-1); //UNDER_REAR
    motor[4] = PIDMIX(-1,-2/3,+1); //UNDER_RIGHT
    motor[5] = PIDMIX(+1,-2/3,+1); //UNDER_LEFT

I would edit the rear motor parameters thus:

#elif defined( Y6 )
    motor[0] = PIDMIX(+0,+4/3,-1); //REAR
    motor[1] = PIDMIX(-1,-2/3,-1); //RIGHT
    motor[2] = PIDMIX(+1,-2/3,-1); //LEFT
    motor[3] = PIDMIX(+0,+4/3,+1); //UNDER_REAR
    motor[4] = PIDMIX(-1,-2/3,+1); //UNDER_RIGHT
    motor[5] = PIDMIX(+1,-2/3,+1); //UNDER_LEFT

And I noticed that I can put all this in a MY_PRIVATE_MIXING file as an include.

Can anyone confirm that I';m on the right track?