mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10: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()
|
int32_t FlightPlanInitialize()
|
||||||
{
|
{
|
||||||
// Initialize variables
|
|
||||||
taskHandle = NULL;
|
taskHandle = NULL;
|
||||||
FlightPlanStatusInitialize();
|
|
||||||
FlightPlanControlInitialize();
|
|
||||||
FlightPlanSettingsInitialize();
|
|
||||||
|
|
||||||
// Listen for object updates
|
// Listen for object updates
|
||||||
FlightPlanControlConnectCallback(&objectUpdatedCb);
|
FlightPlanControlConnectCallback(&objectUpdatedCb);
|
||||||
|
@ -97,21 +97,6 @@ int32_t GuidanceStart()
|
|||||||
*/
|
*/
|
||||||
int32_t GuidanceInitialize()
|
int32_t GuidanceInitialize()
|
||||||
{
|
{
|
||||||
//initialize variables
|
|
||||||
GuidanceSettingsInitialize();
|
|
||||||
AttitudeRawInitialize();
|
|
||||||
AttitudeActualInitialize();
|
|
||||||
PositionDesiredInitialize();
|
|
||||||
PositionActualInitialize();
|
|
||||||
ManualControlCommandInitialize();
|
|
||||||
FlightStatusInitialize();
|
|
||||||
NedAccelInitialize();
|
|
||||||
StabilizationDesiredInitialize();
|
|
||||||
StabilizationSettingsInitialize();
|
|
||||||
SystemSettingsInitialize();
|
|
||||||
VelocityDesiredInitialize();
|
|
||||||
VelocityActualInitialize();
|
|
||||||
|
|
||||||
// Create object queue
|
// Create object queue
|
||||||
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));
|
queue = xQueueCreate(MAX_QUEUE_SIZE, sizeof(UAVObjEvent));
|
||||||
|
|
||||||
|
@ -112,14 +112,10 @@ int32_t ManualControlInitialize()
|
|||||||
if(!assumptions)
|
if(!assumptions)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ManualControlSettingsInitialize();
|
|
||||||
StabilizationSettingsInitialize();
|
|
||||||
ManualControlCommandInitialize();
|
|
||||||
ActuatorDesiredInitialize();
|
|
||||||
StabilizationDesiredInitialize();
|
|
||||||
FlightTelemetryStatsInitialize();
|
|
||||||
FlightStatusInitialize();
|
|
||||||
AccessoryDesiredInitialize();
|
AccessoryDesiredInitialize();
|
||||||
|
ManualControlCommandInitialize();
|
||||||
|
FlightStatusInitialize();
|
||||||
|
StabilizationDesiredInitialize();
|
||||||
|
|
||||||
// ManualControlSettingsInitialize(); // this is initialized in
|
// ManualControlSettingsInitialize(); // this is initialized in
|
||||||
// pios_board.c
|
// pios_board.c
|
||||||
|
@ -115,8 +115,6 @@ int32_t StabilizationInitialize()
|
|||||||
// Initialize variables
|
// Initialize variables
|
||||||
StabilizationSettingsInitialize();
|
StabilizationSettingsInitialize();
|
||||||
ActuatorDesiredInitialize();
|
ActuatorDesiredInitialize();
|
||||||
AttitudeActualInitialize();
|
|
||||||
AttitudeRawInitialize();
|
|
||||||
#if defined(DIAGNOSTICS)
|
#if defined(DIAGNOSTICS)
|
||||||
RateDesiredInitialize();
|
RateDesiredInitialize();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user