mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 22:51:35 +08:00
pixhawk specific files
This commit is contained in:
@@ -56,7 +56,6 @@ FixedwingAttitudeControlBase::FixedwingAttitudeControlBase() :
|
|||||||
_setpoint_valid(false), _debug(false) {
|
_setpoint_valid(false), _debug(false) {
|
||||||
/* safely initialize structs */
|
/* safely initialize structs */
|
||||||
_att = {};
|
_att = {};
|
||||||
_accel = {};
|
|
||||||
_att_sp = {};
|
_att_sp = {};
|
||||||
_manual = {};
|
_manual = {};
|
||||||
_airspeed = {};
|
_airspeed = {};
|
||||||
|
|||||||
@@ -54,7 +54,6 @@
|
|||||||
#include <uORB/topics/vehicle_global_position.h>
|
#include <uORB/topics/vehicle_global_position.h>
|
||||||
#include <uORB/topics/vehicle_status.h>
|
#include <uORB/topics/vehicle_status.h>
|
||||||
|
|
||||||
#include <drivers/drv_accel.h>
|
|
||||||
#include <systemlib/perf_counter.h>
|
#include <systemlib/perf_counter.h>
|
||||||
|
|
||||||
class FixedwingAttitudeControlBase
|
class FixedwingAttitudeControlBase
|
||||||
@@ -78,7 +77,6 @@ protected:
|
|||||||
int _control_task; /**< task handle for sensor task */
|
int _control_task; /**< task handle for sensor task */
|
||||||
|
|
||||||
struct vehicle_attitude_s _att; /**< vehicle attitude */
|
struct vehicle_attitude_s _att; /**< vehicle attitude */
|
||||||
struct accel_report _accel; /**< body frame accelerations */
|
|
||||||
struct vehicle_attitude_setpoint_s _att_sp; /**< vehicle attitude setpoint */
|
struct vehicle_attitude_setpoint_s _att_sp; /**< vehicle attitude setpoint */
|
||||||
struct manual_control_setpoint_s _manual; /**< r/c channel data */
|
struct manual_control_setpoint_s _manual; /**< r/c channel data */
|
||||||
struct airspeed_s _airspeed; /**< airspeed */
|
struct airspeed_s _airspeed; /**< airspeed */
|
||||||
|
|||||||
@@ -48,11 +48,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
//#define PX4_MAIN_FUNCTION(_prefix) __EXPORT int _prefix##main(int argc, char **argv)() { return main(argc, argv); }
|
//#define PX4_MAIN_FUNCTION(_prefix) __EXPORT int _prefix##main(int argc, char **argv)() { return main(argc, argv); }
|
||||||
|
|
||||||
#include "drv_sensor.h"
|
|
||||||
#include "drv_orb_dev.h"
|
|
||||||
#define ACCEL_DEVICE_PATH "/dev/accel"
|
|
||||||
|
|
||||||
#include <modules/uORB/uORB.h>
|
#include <modules/uORB/uORB.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user