Adapted uORB topic files to work with ROS (data stuctures are used but not the uORB functionality)

This commit is contained in:
Roman Bapst 2014-09-25 10:20:15 +02:00
parent 81a5aeb6f5
commit 96b22f1ba8
10 changed files with 41 additions and 4 deletions

View File

@ -47,7 +47,9 @@
#define TOPIC_ACTUATOR_CONTROLS_H
#include <stdint.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
#define NUM_ACTUATOR_CONTROLS 8
#define NUM_ACTUATOR_CONTROL_GROUPS 4 /**< for sanity checking */
@ -70,9 +72,11 @@ struct actuator_controls_s {
*/
/* actuator control sets; this list can be expanded as more controllers emerge */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(actuator_controls_0);
ORB_DECLARE(actuator_controls_1);
ORB_DECLARE(actuator_controls_2);
ORB_DECLARE(actuator_controls_3);
#endif
#endif

View File

@ -40,7 +40,9 @@
#ifndef TOPIC_AIRSPEED_H_
#define TOPIC_AIRSPEED_H_
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
#include <stdint.h>
/**
@ -63,6 +65,8 @@ struct airspeed_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(airspeed);
#endif
#endif

View File

@ -41,8 +41,9 @@
#define TOPIC_MANUAL_CONTROL_SETPOINT_H_
#include <stdint.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* Switch position
*/
@ -106,6 +107,7 @@ struct manual_control_setpoint_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(manual_control_setpoint);
#endif
#endif

View File

@ -40,7 +40,9 @@
#define TOPIC_PARAMETER_UPDATE_H
#include <stdint.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* @addtogroup topics
@ -56,6 +58,8 @@ struct parameter_update_s {
* @}
*/
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(parameter_update);
#endif
#endif
#endif

View File

@ -44,7 +44,9 @@
#include <stdint.h>
#include <stdbool.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* @addtogroup topics
@ -87,6 +89,8 @@ struct vehicle_attitude_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(vehicle_attitude);
#endif
#endif

View File

@ -42,7 +42,9 @@
#include <stdint.h>
#include <stdbool.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* @addtogroup topics
@ -82,6 +84,8 @@ struct vehicle_attitude_setpoint_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(vehicle_attitude_setpoint);
#endif
#endif /* TOPIC_ARDRONE_CONTROL_H_ */

View File

@ -48,7 +48,9 @@
#include <stdint.h>
#include <stdbool.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
#include "vehicle_status.h"
/**
@ -89,6 +91,8 @@ struct vehicle_control_mode_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(vehicle_control_mode);
#endif
#endif

View File

@ -45,7 +45,9 @@
#include <stdint.h>
#include <stdbool.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* @addtogroup topics
@ -81,6 +83,7 @@ struct vehicle_global_position_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(vehicle_global_position);
#endif
#endif

View File

@ -41,7 +41,9 @@
#define TOPIC_VEHICLE_RATES_SETPOINT_H_
#include <stdint.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* @addtogroup topics
@ -62,6 +64,8 @@ struct vehicle_rates_setpoint_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(vehicle_rates_setpoint);
#endif
#endif

View File

@ -53,7 +53,9 @@
#include <stdint.h>
#include <stdbool.h>
#ifdef CONFIG_ARCH_ARM
#include "../uORB.h"
#endif
/**
* @addtogroup topics @{
@ -234,6 +236,8 @@ struct vehicle_status_s {
*/
/* register this as object request broker structure */
#ifdef CONFIG_ARCH_ARM
ORB_DECLARE(vehicle_status);
#endif
#endif