2012-08-04 15:12:36 -07:00
|
|
|
/****************************************************************************
|
|
|
|
|
*
|
2013-07-15 22:15:15 +02:00
|
|
|
* Copyright (C) 2012, 2013 PX4 Development Team. All rights reserved.
|
2012-08-04 15:12:36 -07:00
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
|
* are met:
|
|
|
|
|
*
|
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
|
* distribution.
|
|
|
|
|
* 3. Neither the name PX4 nor the names of its contributors may be
|
|
|
|
|
* used to endorse or promote products derived from this software
|
|
|
|
|
* without specific prior written permission.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/**
|
2012-08-27 22:57:20 +02:00
|
|
|
* @file objects_common.cpp
|
2012-08-05 13:43:16 -07:00
|
|
|
*
|
|
|
|
|
* Common object definitions without a better home.
|
2012-08-04 15:12:36 -07:00
|
|
|
*/
|
|
|
|
|
|
2013-08-15 13:38:59 +02:00
|
|
|
/**
|
|
|
|
|
* @defgroup topics List of all uORB topics.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-08-04 15:12:36 -07:00
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
|
|
#include <drivers/drv_orb_dev.h>
|
|
|
|
|
|
|
|
|
|
#include <drivers/drv_mag.h>
|
2014-06-10 15:03:58 +02:00
|
|
|
ORB_DEFINE(sensor_mag0, struct mag_report);
|
|
|
|
|
ORB_DEFINE(sensor_mag1, struct mag_report);
|
2014-07-15 23:18:04 +02:00
|
|
|
ORB_DEFINE(sensor_mag2, struct mag_report);
|
2012-08-04 15:12:36 -07:00
|
|
|
|
|
|
|
|
#include <drivers/drv_accel.h>
|
2014-06-10 15:03:58 +02:00
|
|
|
ORB_DEFINE(sensor_accel0, struct accel_report);
|
|
|
|
|
ORB_DEFINE(sensor_accel1, struct accel_report);
|
2014-07-15 23:18:04 +02:00
|
|
|
ORB_DEFINE(sensor_accel2, struct accel_report);
|
2012-08-04 15:12:36 -07:00
|
|
|
|
|
|
|
|
#include <drivers/drv_gyro.h>
|
2014-06-10 15:03:58 +02:00
|
|
|
ORB_DEFINE(sensor_gyro0, struct gyro_report);
|
|
|
|
|
ORB_DEFINE(sensor_gyro1, struct gyro_report);
|
2014-07-15 23:18:04 +02:00
|
|
|
ORB_DEFINE(sensor_gyro2, struct gyro_report);
|
2012-08-04 15:12:36 -07:00
|
|
|
|
|
|
|
|
#include <drivers/drv_baro.h>
|
2014-06-10 15:03:58 +02:00
|
|
|
ORB_DEFINE(sensor_baro0, struct baro_report);
|
|
|
|
|
ORB_DEFINE(sensor_baro1, struct baro_report);
|
2012-08-04 15:12:36 -07:00
|
|
|
|
2013-03-01 09:20:00 -08:00
|
|
|
#include <drivers/drv_range_finder.h>
|
|
|
|
|
ORB_DEFINE(sensor_range_finder, struct range_finder_report);
|
|
|
|
|
|
2012-08-04 15:12:36 -07:00
|
|
|
#include <drivers/drv_pwm_output.h>
|
|
|
|
|
ORB_DEFINE(output_pwm, struct pwm_output_values);
|
|
|
|
|
|
|
|
|
|
#include <drivers/drv_rc_input.h>
|
|
|
|
|
ORB_DEFINE(input_rc, struct rc_input_values);
|
|
|
|
|
|
|
|
|
|
#include "topics/vehicle_attitude.h"
|
|
|
|
|
ORB_DEFINE(vehicle_attitude, struct vehicle_attitude_s);
|
|
|
|
|
|
|
|
|
|
#include "topics/sensor_combined.h"
|
|
|
|
|
ORB_DEFINE(sensor_combined, struct sensor_combined_s);
|
|
|
|
|
|
|
|
|
|
#include "topics/vehicle_gps_position.h"
|
|
|
|
|
ORB_DEFINE(vehicle_gps_position, struct vehicle_gps_position_s);
|
|
|
|
|
|
2014-05-30 14:30:25 +02:00
|
|
|
#include "topics/satellite_info.h"
|
|
|
|
|
ORB_DEFINE(satellite_info, struct satellite_info_s);
|
|
|
|
|
|
2013-01-19 14:46:26 +01:00
|
|
|
#include "topics/home_position.h"
|
|
|
|
|
ORB_DEFINE(home_position, struct home_position_s);
|
|
|
|
|
|
2012-08-04 15:12:36 -07:00
|
|
|
#include "topics/vehicle_status.h"
|
|
|
|
|
ORB_DEFINE(vehicle_status, struct vehicle_status_s);
|
|
|
|
|
|
2014-12-02 10:32:13 +01:00
|
|
|
#include "topics/vtol_vehicle_status.h"
|
|
|
|
|
ORB_DEFINE(vtol_vehicle_status, struct vtol_vehicle_status_s);
|
|
|
|
|
|
2013-07-15 22:15:15 +02:00
|
|
|
#include "topics/safety.h"
|
|
|
|
|
ORB_DEFINE(safety, struct safety_s);
|
|
|
|
|
|
2013-01-01 13:30:24 +01:00
|
|
|
#include "topics/battery_status.h"
|
|
|
|
|
ORB_DEFINE(battery_status, struct battery_status_s);
|
|
|
|
|
|
2013-09-12 15:48:26 +10:00
|
|
|
#include "topics/servorail_status.h"
|
|
|
|
|
ORB_DEFINE(servorail_status, struct servorail_status_s);
|
|
|
|
|
|
2014-02-12 12:16:51 +11:00
|
|
|
#include "topics/system_power.h"
|
|
|
|
|
ORB_DEFINE(system_power, struct system_power_s);
|
|
|
|
|
|
2012-08-04 15:12:36 -07:00
|
|
|
#include "topics/vehicle_global_position.h"
|
|
|
|
|
ORB_DEFINE(vehicle_global_position, struct vehicle_global_position_s);
|
|
|
|
|
|
|
|
|
|
#include "topics/vehicle_local_position.h"
|
|
|
|
|
ORB_DEFINE(vehicle_local_position, struct vehicle_local_position_s);
|
|
|
|
|
|
2012-10-04 15:33:39 +02:00
|
|
|
#include "topics/vehicle_vicon_position.h"
|
|
|
|
|
ORB_DEFINE(vehicle_vicon_position, struct vehicle_vicon_position_s);
|
|
|
|
|
|
2012-09-19 18:53:29 +02:00
|
|
|
#include "topics/vehicle_rates_setpoint.h"
|
|
|
|
|
ORB_DEFINE(vehicle_rates_setpoint, struct vehicle_rates_setpoint_s);
|
2014-12-02 10:32:13 +01:00
|
|
|
ORB_DEFINE(mc_virtual_rates_setpoint, struct vehicle_rates_setpoint_s);
|
|
|
|
|
ORB_DEFINE(fw_virtual_rates_setpoint, struct vehicle_rates_setpoint_s);
|
2012-08-04 15:12:36 -07:00
|
|
|
|
|
|
|
|
#include "topics/rc_channels.h"
|
|
|
|
|
ORB_DEFINE(rc_channels, struct rc_channels_s);
|
|
|
|
|
|
|
|
|
|
#include "topics/vehicle_command.h"
|
|
|
|
|
ORB_DEFINE(vehicle_command, struct vehicle_command_s);
|
|
|
|
|
|
2013-06-15 19:41:54 +02:00
|
|
|
#include "topics/vehicle_control_mode.h"
|
|
|
|
|
ORB_DEFINE(vehicle_control_mode, struct vehicle_control_mode_s);
|
|
|
|
|
|
2012-08-04 15:12:36 -07:00
|
|
|
#include "topics/vehicle_local_position_setpoint.h"
|
|
|
|
|
ORB_DEFINE(vehicle_local_position_setpoint, struct vehicle_local_position_setpoint_s);
|
|
|
|
|
|
2013-06-14 17:29:19 +02:00
|
|
|
#include "topics/vehicle_bodyframe_speed_setpoint.h"
|
|
|
|
|
ORB_DEFINE(vehicle_bodyframe_speed_setpoint, struct vehicle_bodyframe_speed_setpoint_s);
|
|
|
|
|
|
2014-01-23 12:16:02 +01:00
|
|
|
#include "topics/position_setpoint_triplet.h"
|
|
|
|
|
ORB_DEFINE(position_setpoint_triplet, struct position_setpoint_triplet_s);
|
2012-11-20 15:20:13 +01:00
|
|
|
|
2013-07-12 16:30:11 +04:00
|
|
|
#include "topics/vehicle_global_velocity_setpoint.h"
|
|
|
|
|
ORB_DEFINE(vehicle_global_velocity_setpoint, struct vehicle_global_velocity_setpoint_s);
|
|
|
|
|
|
2013-07-04 15:39:29 +02:00
|
|
|
#include "topics/mission.h"
|
2014-04-18 11:15:40 +02:00
|
|
|
ORB_DEFINE(offboard_mission, struct mission_s);
|
2013-11-29 10:06:01 +01:00
|
|
|
ORB_DEFINE(onboard_mission, struct mission_s);
|
2013-07-04 15:39:29 +02:00
|
|
|
|
2013-11-27 09:27:08 +01:00
|
|
|
#include "topics/mission_result.h"
|
|
|
|
|
ORB_DEFINE(mission_result, struct mission_result_s);
|
|
|
|
|
|
2013-11-03 12:40:13 -05:00
|
|
|
#include "topics/fence.h"
|
|
|
|
|
ORB_DEFINE(fence, unsigned);
|
|
|
|
|
|
2012-08-04 15:12:36 -07:00
|
|
|
#include "topics/vehicle_attitude_setpoint.h"
|
2012-08-11 19:45:32 +02:00
|
|
|
ORB_DEFINE(vehicle_attitude_setpoint, struct vehicle_attitude_setpoint_s);
|
2014-12-02 10:32:13 +01:00
|
|
|
ORB_DEFINE(mc_virtual_attitude_setpoint, struct vehicle_attitude_setpoint_s);
|
|
|
|
|
ORB_DEFINE(fw_virtual_attitude_setpoint, struct vehicle_attitude_setpoint_s);
|
2012-08-11 19:45:32 +02:00
|
|
|
|
|
|
|
|
#include "topics/manual_control_setpoint.h"
|
|
|
|
|
ORB_DEFINE(manual_control_setpoint, struct manual_control_setpoint_s);
|
2012-08-05 02:09:11 -07:00
|
|
|
|
2013-06-16 12:59:50 +02:00
|
|
|
#include "topics/vehicle_control_debug.h"
|
|
|
|
|
ORB_DEFINE(vehicle_control_debug, struct vehicle_control_debug_s);
|
|
|
|
|
|
2012-09-21 12:55:41 +02:00
|
|
|
#include "topics/offboard_control_setpoint.h"
|
|
|
|
|
ORB_DEFINE(offboard_control_setpoint, struct offboard_control_setpoint_s);
|
|
|
|
|
|
2012-08-14 11:40:08 +02:00
|
|
|
#include "topics/optical_flow.h"
|
|
|
|
|
ORB_DEFINE(optical_flow, struct optical_flow_s);
|
|
|
|
|
|
2013-06-14 17:29:19 +02:00
|
|
|
#include "topics/filtered_bottom_flow.h"
|
|
|
|
|
ORB_DEFINE(filtered_bottom_flow, struct filtered_bottom_flow_s);
|
|
|
|
|
|
2013-01-09 16:37:45 +01:00
|
|
|
#include "topics/omnidirectional_flow.h"
|
|
|
|
|
ORB_DEFINE(omnidirectional_flow, struct omnidirectional_flow_s);
|
|
|
|
|
|
2013-04-19 16:20:40 +02:00
|
|
|
#include "topics/airspeed.h"
|
|
|
|
|
ORB_DEFINE(airspeed, struct airspeed_s);
|
|
|
|
|
|
2013-01-09 16:37:45 +01:00
|
|
|
#include "topics/differential_pressure.h"
|
|
|
|
|
ORB_DEFINE(differential_pressure, struct differential_pressure_s);
|
|
|
|
|
|
2012-08-24 00:01:23 +02:00
|
|
|
#include "topics/subsystem_info.h"
|
|
|
|
|
ORB_DEFINE(subsystem_info, struct subsystem_info_s);
|
|
|
|
|
|
2012-11-21 14:59:55 +01:00
|
|
|
/* actuator controls, as requested by controller */
|
2012-08-05 02:09:11 -07:00
|
|
|
#include "topics/actuator_controls.h"
|
2012-08-05 13:43:16 -07:00
|
|
|
ORB_DEFINE(actuator_controls_0, struct actuator_controls_s);
|
|
|
|
|
ORB_DEFINE(actuator_controls_1, struct actuator_controls_s);
|
|
|
|
|
ORB_DEFINE(actuator_controls_2, struct actuator_controls_s);
|
|
|
|
|
ORB_DEFINE(actuator_controls_3, struct actuator_controls_s);
|
2014-12-02 10:32:13 +01:00
|
|
|
//Virtual control groups, used for VTOL operation
|
|
|
|
|
ORB_DEFINE(actuator_controls_virtual_mc, struct actuator_controls_s);
|
|
|
|
|
ORB_DEFINE(actuator_controls_virtual_fw, struct actuator_controls_s);
|
2013-06-14 13:53:26 +02:00
|
|
|
|
2013-07-15 22:15:15 +02:00
|
|
|
#include "topics/actuator_armed.h"
|
|
|
|
|
ORB_DEFINE(actuator_armed, struct actuator_armed_s);
|
2012-08-21 20:14:43 -07:00
|
|
|
|
|
|
|
|
#include "topics/actuator_outputs.h"
|
2012-08-22 14:35:22 +02:00
|
|
|
ORB_DEFINE(actuator_outputs_0, struct actuator_outputs_s);
|
|
|
|
|
ORB_DEFINE(actuator_outputs_1, struct actuator_outputs_s);
|
|
|
|
|
ORB_DEFINE(actuator_outputs_2, struct actuator_outputs_s);
|
|
|
|
|
ORB_DEFINE(actuator_outputs_3, struct actuator_outputs_s);
|
2012-09-05 11:37:17 +02:00
|
|
|
|
2014-11-20 09:35:58 +11:00
|
|
|
#include "topics/actuator_direct.h"
|
|
|
|
|
ORB_DEFINE(actuator_direct, struct actuator_direct_s);
|
|
|
|
|
|
2014-08-26 20:26:47 +02:00
|
|
|
#include "topics/multirotor_motor_limits.h"
|
|
|
|
|
ORB_DEFINE(multirotor_motor_limits, struct multirotor_motor_limits_s);
|
|
|
|
|
|
2013-07-04 15:39:29 +02:00
|
|
|
#include "topics/telemetry_status.h"
|
2014-07-06 16:08:37 +02:00
|
|
|
ORB_DEFINE(telemetry_status_0, struct telemetry_status_s);
|
|
|
|
|
ORB_DEFINE(telemetry_status_1, struct telemetry_status_s);
|
|
|
|
|
ORB_DEFINE(telemetry_status_2, struct telemetry_status_s);
|
|
|
|
|
ORB_DEFINE(telemetry_status_3, struct telemetry_status_s);
|
2013-07-04 15:39:29 +02:00
|
|
|
|
2014-08-26 21:08:16 +02:00
|
|
|
#include "topics/test_motor.h"
|
|
|
|
|
ORB_DEFINE(test_motor, struct test_motor_s);
|
|
|
|
|
|
2012-09-05 11:37:17 +02:00
|
|
|
#include "topics/debug_key_value.h"
|
|
|
|
|
ORB_DEFINE(debug_key_value, struct debug_key_value_s);
|
2013-06-09 14:09:09 +02:00
|
|
|
|
2013-07-04 15:39:29 +02:00
|
|
|
#include "topics/navigation_capabilities.h"
|
|
|
|
|
ORB_DEFINE(navigation_capabilities, struct navigation_capabilities_s);
|
2013-07-08 20:48:30 +02:00
|
|
|
|
2013-07-02 19:46:15 +02:00
|
|
|
#include "topics/esc_status.h"
|
|
|
|
|
ORB_DEFINE(esc_status, struct esc_status_s);
|
2014-03-16 18:35:26 -04:00
|
|
|
|
|
|
|
|
#include "topics/encoders.h"
|
|
|
|
|
ORB_DEFINE(encoders, struct encoders_s);
|
2014-03-24 09:04:35 +01:00
|
|
|
|
|
|
|
|
#include "topics/estimator_status.h"
|
|
|
|
|
ORB_DEFINE(estimator_status, struct estimator_status_report);
|
2014-06-05 16:47:16 +02:00
|
|
|
|
|
|
|
|
#include "topics/vision_position_estimate.h"
|
|
|
|
|
ORB_DEFINE(vision_position_estimate, struct vision_position_estimate);
|
2014-07-01 14:00:54 +02:00
|
|
|
|
2014-06-23 13:35:14 +02:00
|
|
|
#include "topics/vehicle_force_setpoint.h"
|
|
|
|
|
ORB_DEFINE(vehicle_force_setpoint, struct vehicle_force_setpoint_s);
|
2014-06-30 09:53:07 +02:00
|
|
|
|
2014-05-24 18:04:38 +02:00
|
|
|
#include "topics/tecs_status.h"
|
|
|
|
|
ORB_DEFINE(tecs_status, struct tecs_status_s);
|
|
|
|
|
|
2014-06-01 15:34:27 +02:00
|
|
|
#include "topics/wind_estimate.h"
|
|
|
|
|
ORB_DEFINE(wind_estimate, struct wind_estimate_s);
|