aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB/topics/position_setpoint_triplet.h
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2014-06-03 16:01:28 +0200
committerJulian Oes <julian@oes.ch>2014-06-03 16:01:28 +0200
commit854bb7fe089daf8bf3d4e9f2cac1cb2b99a67ac7 (patch)
tree947f86c23d10ee717a418badb662ed09694687dd /src/modules/uORB/topics/position_setpoint_triplet.h
parent5f91fe7d15e382b8903cb01c30e28c857f5cfdbe (diff)
downloadpx4-firmware-854bb7fe089daf8bf3d4e9f2cac1cb2b99a67ac7.tar.gz
px4-firmware-854bb7fe089daf8bf3d4e9f2cac1cb2b99a67ac7.tar.bz2
px4-firmware-854bb7fe089daf8bf3d4e9f2cac1cb2b99a67ac7.zip
navigator: mission class added (WIP)
Diffstat (limited to 'src/modules/uORB/topics/position_setpoint_triplet.h')
-rw-r--r--src/modules/uORB/topics/position_setpoint_triplet.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/modules/uORB/topics/position_setpoint_triplet.h b/src/modules/uORB/topics/position_setpoint_triplet.h
index c2741a05b..ce42035ba 100644
--- a/src/modules/uORB/topics/position_setpoint_triplet.h
+++ b/src/modules/uORB/topics/position_setpoint_triplet.h
@@ -1,9 +1,6 @@
/****************************************************************************
*
* Copyright (C) 2013 PX4 Development Team. All rights reserved.
- * Author: @author Thomas Gubler <thomasgubler@student.ethz.ch>
- * @author Julian Oes <joes@student.ethz.ch>
- * @author Lorenz Meier <lm@inf.ethz.ch>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -37,6 +34,10 @@
/**
* @file mission_item_triplet.h
* Definition of the global WGS84 position setpoint uORB topic.
+ *
+ * @author Thomas Gubler <thomasgubler@student.ethz.ch>
+ * @author Julian Oes <joes@student.ethz.ch>
+ * @author Lorenz Meier <lm@inf.ethz.ch>
*/
#ifndef TOPIC_MISSION_ITEM_TRIPLET_H_
@@ -53,11 +54,12 @@
enum SETPOINT_TYPE
{
- SETPOINT_TYPE_NORMAL = 0, /**< normal setpoint */
- SETPOINT_TYPE_LOITER, /**< loiter setpoint */
- SETPOINT_TYPE_TAKEOFF, /**< takeoff setpoint */
- SETPOINT_TYPE_LAND, /**< land setpoint, altitude must be ignored, vehicle must descend until landing */
- SETPOINT_TYPE_IDLE, /**< do nothing, switch off motors or keep at idle speed (MC) */
+ SETPOINT_TYPE_POSITION = 0, /**< position setpoint */
+ SETPOINT_TYPE_VELOCITY, /**< velocity setpoint */
+ SETPOINT_TYPE_LOITER, /**< loiter setpoint */
+ SETPOINT_TYPE_TAKEOFF, /**< takeoff setpoint */
+ SETPOINT_TYPE_LAND, /**< land setpoint, altitude must be ignored, descend until landing */
+ SETPOINT_TYPE_IDLE, /**< do nothing, switch off motors or keep at idle speed (MC) */
};
struct position_setpoint_s
@@ -73,16 +75,6 @@ struct position_setpoint_s
float pitch_min; /**< minimal pitch angle for fixed wing takeoff waypoints */
};
-typedef enum {
- NAV_STATE_MANUAL = 0,
- NAV_STATE_POSCTL,
- NAV_STATE_AUTO,
- NAV_STATE_RC_LOSS,
- NAV_STATE_DL_LOSS,
- NAV_STATE_TERMINATION,
- MAX_NAV_STATE
-} nav_state_t;
-
/**
* Global position setpoint triplet in WGS84 coordinates.
*
@@ -93,8 +85,6 @@ struct position_setpoint_triplet_s
struct position_setpoint_s previous;
struct position_setpoint_s current;
struct position_setpoint_s next;
-
- nav_state_t nav_state; /**< navigation state */
};
/**