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:
parent
69f10cd6d0
commit
482bec497b
@ -73,11 +73,7 @@ int32_t FlightPlanStart()
|
||||
*/
|
||||
int32_t FlightPlanInitialize()
|
||||
{
|
||||
// Initialize variables
|
||||
taskHandle = NULL;
|
||||
FlightPlanStatusInitialize();
|
||||
FlightPlanControlInitialize();
|
||||
FlightPlanSettingsInitialize();
|
||||
|
||||
// Listen for object updates
|
||||
FlightPlanControlConnectCallback(&objectUpdatedCb);
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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
|
||||
|
@ -115,8 +115,6 @@ int32_t StabilizationInitialize()
|
||||
// Initialize variables
|
||||
StabilizationSettingsInitialize();
|
||||
ActuatorDesiredInitialize();
|
||||
AttitudeActualInitialize();
|
||||
AttitudeRawInitialize();
|
||||
#if defined(DIAGNOSTICS)
|
||||
RateDesiredInitialize();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user