1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

attitude: Rename Attitude module to AHRSComms

The Attitude module will soon be handling updates for all UAVObjects
that require data from the AHRS.  To reflect this expansion of scope,
it has been renamed to AHRSComms.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1009 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
stac 2010-07-04 02:21:37 +00:00 committed by stac
parent 1425ab1786
commit 548a32f18b
3 changed files with 14 additions and 29 deletions

View File

@ -57,7 +57,7 @@ FLASH_TOOL = OPENOCD
USE_THUMB_MODE = YES
# List of modules to include
MODULES = Telemetry GPS ManualControl Actuator Altitude Attitude Stabilization
MODULES = Telemetry GPS ManualControl Actuator Altitude AHRSComms Stabilization
#MODULES = Telemetry Example
#MODULES = Telemetry MK/MKSerial
@ -278,21 +278,6 @@ EXTRAINCDIRS += $(OPUAVTALK)
EXTRAINCDIRS += $(OPUAVTALKINC)
EXTRAINCDIRS += $(OPUAVOBJ)
EXTRAINCDIRS += $(OPUAVOBJINC)
EXTRAINCDIRS += $(MODEXAMPLE)
EXTRAINCDIRS += $(MODEXAMPLEINC)
EXTRAINCDIRS += $(MODSYSTEMINC)
EXTRAINCDIRS += $(MODTELEMETRY)
EXTRAINCDIRS += $(MODTELEMETRYINC)
EXTRAINCDIRS += $(MODGPS)
EXTRAINCDIRS += $(MODGPSINC)
EXTRAINCDIRS += $(MODMANUALCONTROL)
EXTRAINCDIRS += $(MODMANUALCONTROLINC)
EXTRAINCDIRS += $(MODACTUATOR)
EXTRAINCDIRS += $(MODACTUATORINC)
EXTRAINCDIRS += $(MODALTITUDE)
EXTRAINCDIRS += $(MODALTITUDEINC)
EXTRAINCDIRS += $(MODATTITUDE)
EXTRAINCDIRS += $(MODATTITUDEINC)
EXTRAINCDIRS += $(PIOS)
EXTRAINCDIRS += $(PIOSINC)
EXTRAINCDIRS += $(PIOSSTM32F10X)

View File

@ -1,9 +1,9 @@
/**
******************************************************************************
*
* @file attitude.c
* @file ahrs_comms.c
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief Module to read the attitude solution from the AHRS on a periodic basis.
* @brief Module to handle all comms to the AHRS on a periodic basis.
*
* @see The GNU Public License (GPL) Version 3
*
@ -44,7 +44,7 @@
*
*/
#include "attitude.h"
#include "ahrs_comms.h"
#include "attitudeactual.h" // object that will be updated by the module
#include "attitudesettings.h" // object holding module settings
@ -60,16 +60,16 @@
static xTaskHandle taskHandle;
// Private functions
static void attitudeTask(void* parameters);
static void ahrscommsTask(void* parameters);
/**
* Initialise the module, called on startup
* \returns 0 on success or -1 if initialisation failed
*/
int32_t AttitudeInitialize(void)
int32_t AHRSCommsInitialize(void)
{
// Start main task
xTaskCreate(attitudeTask, (signed char*)"Attitude", STACK_SIZE, NULL, TASK_PRIORITY, &taskHandle);
xTaskCreate(ahrscommsTask, (signed char*)"AHRSComms", STACK_SIZE, NULL, TASK_PRIORITY, &taskHandle);
return 0;
}
@ -77,7 +77,7 @@ int32_t AttitudeInitialize(void)
/**
* Module thread, should not return.
*/
static void attitudeTask(void* parameters)
static void ahrscommsTask(void* parameters)
{
AttitudeSettingsData settings;
AttitudeActualData data;

View File

@ -1,9 +1,9 @@
/**
******************************************************************************
*
* @file attitude.h
* @file ahrs_comms.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief Module to read the attitude solution from the AHRS on a periodic basis.
* @brief Module to handle all comms to the AHRS on a periodic basis.
*
* @see The GNU Public License (GPL) Version 3
*
@ -23,12 +23,12 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef ATTITUDE_H
#define ATTITUDE_H
#ifndef AHRS_COMMS_H
#define AHRS_COMMS_H
#include "openpilot.h"
int32_t AttitudeInitialize(void);
int32_t AHRSCommsInitialize(void);
#endif // ATTITUDE_H
#endif // AHRS_COMMS_H