mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 02:23:33 +08:00
use px4_defines header to distinguish platform
This commit is contained in:
@@ -40,9 +40,7 @@
|
||||
#ifndef TOPIC_AIRSPEED_H_
|
||||
#define TOPIC_AIRSPEED_H_
|
||||
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
#include "../uORB.h"
|
||||
#endif
|
||||
#include <platforms/px4_defines.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
@@ -65,8 +63,6 @@ struct airspeed_s {
|
||||
*/
|
||||
|
||||
/* register this as object request broker structure */
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
ORB_DECLARE(airspeed);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user