mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 11:20:34 +08:00
reenable task flag
This commit is contained in:
@@ -32,7 +32,11 @@ using namespace px4;
|
||||
/**
|
||||
* This tutorial demonstrates simple sending of messages over the PX4 middleware system.
|
||||
*/
|
||||
// __EXPORT bool task_should_exit;
|
||||
|
||||
namespace px4
|
||||
{
|
||||
bool task_should_exit = false;
|
||||
}
|
||||
|
||||
PX4_MAIN_FUNCTION(publisher)
|
||||
{
|
||||
|
||||
@@ -36,8 +36,10 @@ void rc_channels_callback(const PX4_TOPIC_T(rc_channels) *msg)
|
||||
{
|
||||
PX4_INFO("I heard: [%lu]", msg->timestamp_last_valid);
|
||||
}
|
||||
|
||||
// __EXPORT bool task_should_exit;
|
||||
namespace px4
|
||||
{
|
||||
bool task_should_exit = false;
|
||||
}
|
||||
|
||||
PX4_MAIN_FUNCTION(subscriber)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user