mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 10:51:36 +08:00
PX4 ROS2 msg conformity and explicit topics
- .msg files are PascalCase - topics are still either per msg or explicitly listed in TOPICS - compatible structs are still generated (eg struct msg_s), but ROS2 style px4::msg::Msg is also available
This commit is contained in:
@@ -32,9 +32,9 @@
|
||||
############################################################################
|
||||
|
||||
# nuttx uses internal work queue currently
|
||||
if (NOT "${PX4_PLATFORM}" MATCHES "nuttx")
|
||||
if(NOT "${PX4_PLATFORM}" MATCHES "nuttx")
|
||||
|
||||
add_library(work_queue
|
||||
add_library(work_queue STATIC
|
||||
dq_addlast.c
|
||||
dq_rem.c
|
||||
dq_remfirst.c
|
||||
|
||||
@@ -52,30 +52,6 @@
|
||||
#include <px4_platform_common/posix.h>
|
||||
#include "hrt_work.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Type Declarations
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Variables
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Variables
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: hrt_work_queue
|
||||
*
|
||||
@@ -125,7 +101,7 @@ int hrt_work_queue(struct work_s *work, worker_t worker, void *arg, uint32_t del
|
||||
|
||||
dq_addlast((dq_entry_t *)work, &wqueue->q);
|
||||
|
||||
if (px4_getpid() != wqueue->pid) { /* only need to wake up if called from a different thread */
|
||||
if (getpid() != wqueue->pid) { /* only need to wake up if called from a different thread */
|
||||
#ifdef __PX4_QURT
|
||||
px4_task_kill(wqueue->pid, SIGALRM); /* Wake up the worker thread */
|
||||
#else
|
||||
|
||||
@@ -96,7 +96,7 @@ static void _sighandler(int sig_num);
|
||||
****************************************************************************/
|
||||
static void _sighandler(int sig_num)
|
||||
{
|
||||
PX4_DEBUG("RECEIVED SIGNAL %d", sig_num);
|
||||
//PX4_DEBUG("RECEIVED SIGNAL %d", sig_num);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -176,7 +176,7 @@ static void hrt_work_process()
|
||||
hrt_work_unlock();
|
||||
|
||||
if (!worker) {
|
||||
PX4_ERR("MESSED UP: worker = 0");
|
||||
//PX4_ERR("MESSED UP: worker = 0");
|
||||
|
||||
} else {
|
||||
worker(arg);
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <stdio.h>
|
||||
#include "work_lock.h"
|
||||
|
||||
#include <px4_platform_common/sem.h>
|
||||
|
||||
extern px4_sem_t _work_lock[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user