mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Manual Control: Drop the AHRSSettings dependency to bring task memory down
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2574 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
23599ee59f
commit
cef46edafd
@ -40,7 +40,6 @@
|
||||
#include "manualcontrolcommand.h"
|
||||
#include "actuatordesired.h"
|
||||
#include "attitudedesired.h"
|
||||
#include "ahrssettings.h"
|
||||
#include "flighttelemetrystats.h"
|
||||
|
||||
// Private constants
|
||||
@ -411,15 +410,6 @@ static void manualControlTask(void *parameters)
|
||||
attitude.Throttle = (cmd.Throttle < 0) ? -1 : cmd.Throttle;
|
||||
AttitudeDesiredSet(&attitude);
|
||||
}
|
||||
|
||||
if (cmd.Accessory3 < -.5) { //TODO: Make what happens here depend on GCS
|
||||
AHRSSettingsData attitudeSettings;
|
||||
AHRSSettingsGet(&attitudeSettings);
|
||||
// Hard coding a maximum bias of 15 for now... maybe mistake
|
||||
attitudeSettings.PitchBias = cmd.Accessory1 * 15;
|
||||
attitudeSettings.RollBias = cmd.Accessory2 * 15;
|
||||
AHRSSettingsSet(&attitudeSettings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user