1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Revert "Fixed modules that didn't initialize used UAVObjects correctly"

Modules should initialize their settings and the objects they source.  Not just
everything.

This reverts commit 9ad85e9b7b.
This commit is contained in:
James Cotton 2011-08-19 09:44:38 -05:00
parent 69f10cd6d0
commit 482bec497b
4 changed files with 3 additions and 28 deletions

View File

@ -73,11 +73,7 @@ int32_t FlightPlanStart()
*/
int32_t FlightPlanInitialize()
{
// Initialize variables
taskHandle = NULL;
FlightPlanStatusInitialize();
FlightPlanControlInitialize();
FlightPlanSettingsInitialize();
// Listen for object updates
FlightPlanControlConnectCallback(&objectUpdatedCb);

View File

@ -97,21 +97,6 @@ int32_t GuidanceStart()
*/
int32_t GuidanceInitialize()
{
//initialize variables
GuidanceSettingsInitialize();
AttitudeRawInitialize();
AttitudeActualInitialize();
PositionDesiredInitialize();
PositionActualInitialize();
ManualControlCommandInitialize();
FlightStatusInitialize();
NedAccelInitialize();
StabilizationDesiredInitialize();
StabilizationSettingsInitialize();
SystemSettingsInitialize();
VelocityDesiredInitialize();
VelocityActualInitialize();
// Create object queue
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));

View File

@ -112,14 +112,10 @@ int32_t ManualControlInitialize()
if(!assumptions)
return -1;
ManualControlSettingsInitialize();
StabilizationSettingsInitialize();
ManualControlCommandInitialize();
ActuatorDesiredInitialize();
StabilizationDesiredInitialize();
FlightTelemetryStatsInitialize();
FlightStatusInitialize();
AccessoryDesiredInitialize();
ManualControlCommandInitialize();
FlightStatusInitialize();
StabilizationDesiredInitialize();
// ManualControlSettingsInitialize(); // this is initialized in
// pios_board.c

View File

@ -115,8 +115,6 @@ int32_t StabilizationInitialize()
// Initialize variables
StabilizationSettingsInitialize();
ActuatorDesiredInitialize();
AttitudeActualInitialize();
AttitudeRawInitialize();
#if defined(DIAGNOSTICS)
RateDesiredInitialize();
#endif