noize007 / afrodevices

Automatically exported from code.google.com/p/afrodevices
0 stars 0 forks source link

Tri with Gimbal not possible? #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I was trying arround to get Tricopter and Gimbal work at the same time without 
luck, after looking in the mixer.c i found that:

void writeServos(void)
{
    if (!useServo)
        return;

    switch (mcfg.mixerConfiguration) {
        case MULTITYPE_BI:
            pwmWriteServo(0, servo[4]);
            pwmWriteServo(1, servo[5]);
            break;

        case MULTITYPE_TRI:
            pwmWriteServo(0, servo[5]);
            break;

        case MULTITYPE_AIRPLANE:

            break;

        case MULTITYPE_FLYING_WING:
        case MULTITYPE_GIMBAL:
            pwmWriteServo(0, servo[0]);
            pwmWriteServo(1, servo[1]);
            break;

        default:
            // Two servos for SERVO_TILT, if enabled
            if (feature(FEATURE_SERVO_TILT)) {
                pwmWriteServo(0, servo[0]);
                pwmWriteServo(1, servo[1]);
            }
            break;
    }
}

If i see that right Tricopter with Gimbal is not possible at the moment right?
In general that would be possible, as there are enought output pins right?

Original issue reported on code.google.com by johannes...@gmail.com on 22 Mar 2013 at 2:13

GoogleCodeExporter commented 8 years ago
Its possible, there is enough pins (in PPM receiver mode).

Original comment by time...@gmail.com on 8 May 2013 at 6:35