Browse Source

Moved all fixed wing controllers to new world

sbg
Lorenz Meier 12 years ago
parent
commit
988bf1eb0a
  1. 7
      makefiles/config_px4fmu_default.mk
  2. 3
      src/modules/fixedwing_att_control/fixedwing_att_control_att.c
  3. 0
      src/modules/fixedwing_att_control/fixedwing_att_control_att.h
  4. 5
      src/modules/fixedwing_att_control/fixedwing_att_control_main.c
  5. 6
      src/modules/fixedwing_att_control/fixedwing_att_control_rate.c
  6. 0
      src/modules/fixedwing_att_control/fixedwing_att_control_rate.h
  7. 15
      src/modules/fixedwing_att_control/module.mk
  8. 14
      src/modules/fixedwing_backside/fixedwing_backside_main.cpp
  9. 10
      src/modules/fixedwing_backside/module.mk
  10. 0
      src/modules/fixedwing_backside/params.c
  11. 0
      src/modules/fixedwing_pos_control/fixedwing_pos_control_main.c
  12. 13
      src/modules/fixedwing_pos_control/module.mk

7
makefiles/config_px4fmu_default.mk

@ -56,6 +56,13 @@ MODULES += modules/attitude_estimator_ekf @@ -56,6 +56,13 @@ MODULES += modules/attitude_estimator_ekf
MODULES += modules/position_estimator_mc
MODULES += modules/att_pos_estimator_ekf
#
# Vehicle Control
#
MODULES += modules/fixedwing_backside
MODULES += modules/fixedwing_att_control
MODULES += modules/fixedwing_pos_control
#
# Logging
#

3
apps/fixedwing_att_control/fixedwing_att_control_att.c → src/modules/fixedwing_att_control/fixedwing_att_control_att.c

@ -35,7 +35,6 @@ @@ -35,7 +35,6 @@
* @file fixedwing_att_control_rate.c
* Implementation of a fixed wing attitude controller.
*/
#include <fixedwing_att_control_att.h>
#include <nuttx/config.h>
#include <stdio.h>
@ -59,7 +58,7 @@ @@ -59,7 +58,7 @@
#include <systemlib/geo/geo.h>
#include <systemlib/systemlib.h>
#include "fixedwing_att_control_att.h"
struct fw_att_control_params {

0
apps/fixedwing_att_control/fixedwing_att_control_att.h → src/modules/fixedwing_att_control/fixedwing_att_control_att.h

5
apps/fixedwing_att_control/fixedwing_att_control_main.c → src/modules/fixedwing_att_control/fixedwing_att_control_main.c

@ -65,8 +65,9 @@ @@ -65,8 +65,9 @@
#include <systemlib/geo/geo.h>
#include <systemlib/perf_counter.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 */
/**

6
apps/fixedwing_att_control/fixedwing_att_control_rate.c → src/modules/fixedwing_att_control/fixedwing_att_control_rate.c

@ -33,11 +33,11 @@ @@ -33,11 +33,11 @@
****************************************************************************/
/**
* @file fixedwing_att_control_rate.c
* @author Thomas Gubler <thomasgubler@student.ethz.ch>
*
* 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 <stdio.h>
@ -61,6 +61,8 @@ @@ -61,6 +61,8 @@
#include <systemlib/geo/geo.h>
#include <systemlib/systemlib.h>
#include "fixedwing_att_control_rate.h"
/*
* Controller parameters, accessible via MAVLink
*

0
apps/fixedwing_att_control/fixedwing_att_control_rate.h → src/modules/fixedwing_att_control/fixedwing_att_control_rate.h

15
apps/fixedwing_pos_control/Makefile → src/modules/fixedwing_att_control/module.mk

@ -1,6 +1,6 @@ @@ -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
# modification, are permitted provided that the following conditions
@ -32,14 +32,11 @@ @@ -32,14 +32,11 @@
############################################################################
#
# Fixedwing Control application
# Fixedwing Attitude Control application
#
APPNAME = fixedwing_pos_control
PRIORITY = SCHED_PRIORITY_MAX - 30
STACKSIZE = 2048
INCLUDES = $(TOPDIR)/../mavlink/include/mavlink
include $(APPDIR)/mk/app.mk
MODULE_COMMAND = fixedwing_att_control
SRCS = fixedwing_att_control_main.c \
fixedwing_att_control_att.c \
fixedwing_att_control_rate.c

14
apps/examples/control_demo/control_demo.cpp → src/modules/fixedwing_backside/fixedwing_backside_main.cpp

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
/****************************************************************************
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
* Author: @author Example User <mail@example.com>
* Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved.
* Author: James Goppert
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -33,8 +33,10 @@ @@ -33,8 +33,10 @@
****************************************************************************/
/**
* @file control_demo.cpp
* Demonstration of control library
* @file fixedwing_backside_main.cpp
* @author James Goppert
*
* Fixedwing backside controller using control library
*/
#include <nuttx/config.h>
@ -55,7 +57,7 @@ static int deamon_task; /**< Handle of deamon task / thread */ @@ -55,7 +57,7 @@ static int deamon_task; /**< Handle of deamon task / thread */
/**
* 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.
@ -90,7 +92,7 @@ usage(const char *reason) @@ -90,7 +92,7 @@ usage(const char *reason)
* The actual stack size should be set in the call
* to task_create().
*/
int control_demo_main(int argc, char *argv[])
int fixedwing_backside_main(int argc, char *argv[])
{
if (argc < 1)

10
apps/examples/control_demo/Makefile → src/modules/fixedwing_backside/module.mk

@ -1,6 +1,6 @@ @@ -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
# modification, are permitted provided that the following conditions
@ -32,11 +32,9 @@ @@ -32,11 +32,9 @@
############################################################################
#
# Basic example application
# Fixedwing backside controller
#
APPNAME = control_demo
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048
MODULE_COMMAND = fixedwing_backside
include $(APPDIR)/mk/app.mk
SRCS = fixedwing_backside_main.cpp

0
apps/examples/control_demo/params.c → src/modules/fixedwing_backside/params.c

0
apps/fixedwing_pos_control/fixedwing_pos_control_main.c → src/modules/fixedwing_pos_control/fixedwing_pos_control_main.c

13
apps/fixedwing_att_control/Makefile → src/modules/fixedwing_pos_control/module.mk

@ -1,6 +1,6 @@ @@ -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
# modification, are permitted provided that the following conditions
@ -32,14 +32,9 @@ @@ -32,14 +32,9 @@
############################################################################
#
# Fixedwing Control application
# Fixedwing PositionControl application
#
APPNAME = fixedwing_att_control
PRIORITY = SCHED_PRIORITY_MAX - 30
STACKSIZE = 2048
INCLUDES = $(TOPDIR)/../mavlink/include/mavlink
include $(APPDIR)/mk/app.mk
MODULE_COMMAND = fixedwing_pos_control
SRCS = fixedwing_pos_control_main.c
Loading…
Cancel
Save