1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

CC-10 Rename CCAttitude to Attitude. If there are alternative ones we will

just have nested subdirectories of Attitude

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2655 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2011-02-01 02:17:40 +00:00 committed by peabody124
parent 85d42868d6
commit 1cf7555b7d
2 changed files with 16 additions and 16 deletions

View File

@ -2,12 +2,12 @@
******************************************************************************
* @addtogroup OpenPilotModules OpenPilot Modules
* @{
* @addtogroup CCAttitude Copter Control Attitude Estimation
* @brief Handles communication with AHRS and updating position
* @addtogroup Attitude Copter Control Attitude Estimation
* @brief Acquires sensor data and computes attitude estimate
* Specifically updates the the @ref AttitudeActual "AttitudeActual" and @ref AttitudeRaw "AttitudeRaw" settings objects
* @{
*
* @file ccattitude.c
* @file attitude.c
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief Module to handle all comms to the AHRS on a periodic basis.
*
@ -49,7 +49,7 @@
*/
#include "pios.h"
#include "ccattitude.h"
#include "attitude.h"
#include "attituderaw.h"
#include "attitudeactual.h"
#include "attitudedesired.h"
@ -72,7 +72,7 @@
static xTaskHandle taskHandle;
// Private functions
static void CCAttitudeTask(void *parameters);
static void AttitudeTask(void *parameters);
void adc_callback(float * data);
float gyro[3] = {0, 0, 0};
@ -84,10 +84,10 @@ void updateAttitude();
* Initialise the module, called on startup
* \returns 0 on success or -1 if initialisation failed
*/
int32_t CCAttitudeInitialize(void)
int32_t AttitudeInitialize(void)
{
// Start main task
xTaskCreate(CCAttitudeTask, (signed char *)"CCAttitude", STACK_SIZE_BYTES/4, NULL, TASK_PRIORITY, &taskHandle);
xTaskCreate(AttitudeTask, (signed char *)"Attitude", STACK_SIZE_BYTES/4, NULL, TASK_PRIORITY, &taskHandle);
TaskMonitorAdd(TASKINFO_RUNNING_ATTITUDE, taskHandle);
PIOS_WDG_RegisterFlag(PIOS_WDG_ATTITUDE);
return 0;
@ -96,7 +96,7 @@ int32_t CCAttitudeInitialize(void)
/**
* Module thread, should not return.
*/
static void CCAttitudeTask(void *parameters)
static void AttitudeTask(void *parameters)
{
AlarmsClear(SYSTEMALARMS_ALARM_ATTITUDE);

View File

@ -2,12 +2,12 @@
******************************************************************************
* @addtogroup OpenPilotModules OpenPilot Modules
* @{
* @addtogroup AHRSCommsModule AHRSComms Module
* @addtogroup Attitude Attitude Module
* @{
*
* @file ahrs_comms.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief Module to handle all comms to the AHRS on a periodic basis.
* @file attitude.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
* @brief Acquires sensor data and fuses it into attitude estimate for CC
*
* @see The GNU Public License (GPL) Version 3
*
@ -27,11 +27,11 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef AHRS_COMMS_H
#define AHRS_COMMS_H
#ifndef ATTITUDE_H
#define ATTITUDE_H
#include "openpilot.h"
int32_t AHRSCommsInitialize(void);
int32_t AttitudeInitialize(void);
#endif // AHRS_COMMS_H
#endif // ATTITUDE_H