Skip to content

LD app received only one PX4 Data Msg at a time in the Main app loop #343

@ynielson

Description

@ynielson

In my observation, most of other Apps that receive PX4 Data Message through the DataPipe,
they received all the PX4 Data in the pipe until there is no more message at a time in the Main loop.

But the LD app received only one PX4 Data in the pipe even though there are several more Data in the DataPipe.
and waited for SCH Messages and executed LD_WAKEUP_MID or LD_SEND_HK_MID
without Data information in the DataPipe.
And then it read the next PX4 Data in the DataPipe and then Sch Message and so on..

When I did unit test for this App, I had to send one Data Message(ex: ActuatorArmedMsg/VehicleLocalPositionMsg/
AirspeedMsg/BatteryStatusMsg) and one Wakeup Message one by one until I send all the Data Messages that I needed to send.

Unless this App was tuned this way for it's own purpose, it may need to be tuned.

This also apply to the test case, Test_LD_Execute_AutoFlying().

  • Test case: Test_LD_Execute_Landed() - This test case name was changed to Test_LD_Execute_AutoLanded()
    ld_DataMessage_Frequency_2023-03-24 13-34-28

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions