Moved all fixed wing controllers to new world

This commit is contained in:
Lorenz Meier
2013-04-27 14:28:47 +02:00
parent 5085023796
commit 988bf1eb0a
12 changed files with 37 additions and 36 deletions
+7
View File
@@ -56,6 +56,13 @@ MODULES += modules/attitude_estimator_ekf
MODULES += modules/position_estimator_mc MODULES += modules/position_estimator_mc
MODULES += modules/att_pos_estimator_ekf MODULES += modules/att_pos_estimator_ekf
#
# Vehicle Control
#
MODULES += modules/fixedwing_backside
MODULES += modules/fixedwing_att_control
MODULES += modules/fixedwing_pos_control
# #
# Logging # Logging
# #
@@ -35,7 +35,6 @@
* @file fixedwing_att_control_rate.c * @file fixedwing_att_control_rate.c
* Implementation of a fixed wing attitude controller. * Implementation of a fixed wing attitude controller.
*/ */
#include <fixedwing_att_control_att.h>
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdio.h> #include <stdio.h>
@@ -59,7 +58,7 @@
#include <systemlib/geo/geo.h> #include <systemlib/geo/geo.h>
#include <systemlib/systemlib.h> #include <systemlib/systemlib.h>
#include "fixedwing_att_control_att.h"
struct fw_att_control_params { struct fw_att_control_params {
@@ -65,8 +65,9 @@
#include <systemlib/geo/geo.h> #include <systemlib/geo/geo.h>
#include <systemlib/perf_counter.h> #include <systemlib/perf_counter.h>
#include <systemlib/systemlib.h> #include <systemlib/systemlib.h>
#include <fixedwing_att_control_rate.h>
#include <fixedwing_att_control_att.h> #include "fixedwing_att_control_rate.h"
#include "fixedwing_att_control_att.h"
/* Prototypes */ /* Prototypes */
/** /**
@@ -33,11 +33,11 @@
****************************************************************************/ ****************************************************************************/
/** /**
* @file fixedwing_att_control_rate.c * @file fixedwing_att_control_rate.c
* @author Thomas Gubler <thomasgubler@student.ethz.ch>
*
* Implementation of a fixed wing attitude controller. * Implementation of a fixed wing attitude controller.
* *
* @author Thomas Gubler <thomasgubler@student.ethz.ch>
*/ */
#include <fixedwing_att_control_rate.h>
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdio.h> #include <stdio.h>
@@ -61,6 +61,8 @@
#include <systemlib/geo/geo.h> #include <systemlib/geo/geo.h>
#include <systemlib/systemlib.h> #include <systemlib/systemlib.h>
#include "fixedwing_att_control_rate.h"
/* /*
* Controller parameters, accessible via MAVLink * Controller parameters, accessible via MAVLink
* *
@@ -1,6 +1,6 @@
############################################################################ ############################################################################
# #
# Copyright (C) 2012 PX4 Development Team. All rights reserved. # Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
@@ -32,14 +32,11 @@
############################################################################ ############################################################################
# #
# Fixedwing Control application # Fixedwing Attitude Control application
# #
APPNAME = fixedwing_att_control MODULE_COMMAND = fixedwing_att_control
PRIORITY = SCHED_PRIORITY_MAX - 30
STACKSIZE = 2048
INCLUDES = $(TOPDIR)/../mavlink/include/mavlink
include $(APPDIR)/mk/app.mk
SRCS = fixedwing_att_control_main.c \
fixedwing_att_control_att.c \
fixedwing_att_control_rate.c
@@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* *
* Copyright (C) 2012 PX4 Development Team. All rights reserved. * Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved.
* Author: @author Example User <mail@example.com> * Author: James Goppert
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@@ -33,8 +33,10 @@
****************************************************************************/ ****************************************************************************/
/** /**
* @file control_demo.cpp * @file fixedwing_backside_main.cpp
* Demonstration of control library * @author James Goppert
*
* Fixedwing backside controller using control library
*/ */
#include <nuttx/config.h> #include <nuttx/config.h>
@@ -55,7 +57,7 @@ static int deamon_task; /**< Handle of deamon task / thread */
/** /**
* Deamon management function. * Deamon management function.
*/ */
extern "C" __EXPORT int control_demo_main(int argc, char *argv[]); extern "C" __EXPORT int fixedwing_backside_main(int argc, char *argv[]);
/** /**
* Mainloop of deamon. * Mainloop of deamon.
@@ -90,7 +92,7 @@ usage(const char *reason)
* The actual stack size should be set in the call * The actual stack size should be set in the call
* to task_create(). * to task_create().
*/ */
int control_demo_main(int argc, char *argv[]) int fixedwing_backside_main(int argc, char *argv[])
{ {
if (argc < 1) if (argc < 1)
@@ -1,6 +1,6 @@
############################################################################ ############################################################################
# #
# Copyright (C) 2012 PX4 Development Team. All rights reserved. # Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
@@ -32,11 +32,9 @@
############################################################################ ############################################################################
# #
# Basic example application # Fixedwing backside controller
# #
APPNAME = control_demo MODULE_COMMAND = fixedwing_backside
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048
include $(APPDIR)/mk/app.mk SRCS = fixedwing_backside_main.cpp
@@ -1,6 +1,6 @@
############################################################################ ############################################################################
# #
# Copyright (C) 2012 PX4 Development Team. All rights reserved. # Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
@@ -32,14 +32,9 @@
############################################################################ ############################################################################
# #
# Fixedwing Control application # Fixedwing PositionControl application
# #
APPNAME = fixedwing_pos_control MODULE_COMMAND = fixedwing_pos_control
PRIORITY = SCHED_PRIORITY_MAX - 30
STACKSIZE = 2048
INCLUDES = $(TOPDIR)/../mavlink/include/mavlink
include $(APPDIR)/mk/app.mk
SRCS = fixedwing_pos_control_main.c