1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

Minor change to give back manual control to an axis when it is set to stabilization = None

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2165 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
andrew 2010-11-27 04:03:37 +00:00 committed by andrew
parent 63c3799521
commit c94c76ce40

View File

@ -199,6 +199,26 @@ static void stabilizationTask(void* parameters)
shouldUpdate = 1;
break;
}
case MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_NONE:
//actuatorDesiredAxis[ct] = bound(manualAxis[ct]);
//shouldUpdate = 1;
switch (ct)
{
case ROLL:
actuatorDesiredAxis[ct] = bound(attitudeDesiredAxis[ct]/settings.RollMax);
shouldUpdate = 1;
break;
case PITCH:
actuatorDesiredAxis[ct] = bound(attitudeDesiredAxis[ct]/settings.PitchMax);
shouldUpdate = 1;
break;
case YAW:
actuatorDesiredAxis[ct] = bound(attitudeDesiredAxis[ct]/180);
shouldUpdate = 1;
break;
}
break;
}
}