|
|
|
@ -77,6 +77,7 @@
@@ -77,6 +77,7 @@
|
|
|
|
|
#include <uORB/topics/vehicle_control_mode.h> |
|
|
|
|
#include <uORB/topics/vehicle_land_detected.h> |
|
|
|
|
#include <uORB/topics/vehicle_local_position.h> |
|
|
|
|
#include <uORB/topics/vehicle_local_position_setpoint.h> |
|
|
|
|
#include <uORB/topics/vehicle_rates_setpoint.h> |
|
|
|
|
#include <uORB/topics/vtol_vehicle_status.h> |
|
|
|
|
#include <uORB/uORB.h> |
|
|
|
@ -116,6 +117,7 @@ public:
@@ -116,6 +117,7 @@ public:
|
|
|
|
|
struct actuator_controls_s *get_actuators_fw_in() {return &_actuators_fw_in;} |
|
|
|
|
struct actuator_armed_s *get_armed() {return &_armed;} |
|
|
|
|
struct vehicle_local_position_s *get_local_pos() {return &_local_pos;} |
|
|
|
|
struct vehicle_local_position_setpoint_s *get_local_pos_sp() {return &_local_pos_sp;} |
|
|
|
|
struct airspeed_s *get_airspeed() {return &_airspeed;} |
|
|
|
|
struct battery_status_s *get_batt_status() {return &_batt_status;} |
|
|
|
|
struct tecs_status_s *get_tecs_status() {return &_tecs_status;} |
|
|
|
@ -142,6 +144,7 @@ private:
@@ -142,6 +144,7 @@ private:
|
|
|
|
|
int _manual_control_sp_sub; //manual control setpoint subscription
|
|
|
|
|
int _armed_sub; //arming status subscription
|
|
|
|
|
int _local_pos_sub; // sensor subscription
|
|
|
|
|
int _local_pos_sp_sub; // local position setpoint subscription
|
|
|
|
|
int _airspeed_sub; // airspeed subscription
|
|
|
|
|
int _battery_status_sub; // battery status subscription
|
|
|
|
|
int _vehicle_cmd_sub; |
|
|
|
@ -175,6 +178,7 @@ private:
@@ -175,6 +178,7 @@ private:
|
|
|
|
|
struct actuator_controls_s _actuators_fw_in; //actuator controls from fw_att_control
|
|
|
|
|
struct actuator_armed_s _armed; //actuator arming status
|
|
|
|
|
struct vehicle_local_position_s _local_pos; |
|
|
|
|
struct vehicle_local_position_setpoint_s _local_pos_sp; |
|
|
|
|
struct airspeed_s _airspeed; // airspeed
|
|
|
|
|
struct battery_status_s _batt_status; // battery status
|
|
|
|
|
struct vehicle_command_s _vehicle_cmd; |
|
|
|
@ -226,6 +230,7 @@ private:
@@ -226,6 +230,7 @@ private:
|
|
|
|
|
void vehicle_rates_sp_mc_poll(); |
|
|
|
|
void vehicle_rates_sp_fw_poll(); |
|
|
|
|
void vehicle_local_pos_poll(); // Check for changes in sensor values
|
|
|
|
|
void vehicle_local_pos_sp_poll(); // Check for changes in position setpoint values
|
|
|
|
|
void vehicle_airspeed_poll(); // Check for changes in airspeed
|
|
|
|
|
void vehicle_attitude_setpoint_poll(); //Check for attitude setpoint updates.
|
|
|
|
|
void vehicle_attitude_poll(); //Check for attitude updates.
|
|
|
|
|