mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +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:
parent
85d42868d6
commit
1cf7555b7d
@ -2,12 +2,12 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @addtogroup OpenPilotModules OpenPilot Modules
|
* @addtogroup OpenPilotModules OpenPilot Modules
|
||||||
* @{
|
* @{
|
||||||
* @addtogroup CCAttitude Copter Control Attitude Estimation
|
* @addtogroup Attitude Copter Control Attitude Estimation
|
||||||
* @brief Handles communication with AHRS and updating position
|
* @brief Acquires sensor data and computes attitude estimate
|
||||||
* Specifically updates the the @ref AttitudeActual "AttitudeActual" and @ref AttitudeRaw "AttitudeRaw" settings objects
|
* 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.
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||||
* @brief Module to handle all comms to the AHRS on a periodic basis.
|
* @brief Module to handle all comms to the AHRS on a periodic basis.
|
||||||
*
|
*
|
||||||
@ -49,7 +49,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pios.h"
|
#include "pios.h"
|
||||||
#include "ccattitude.h"
|
#include "attitude.h"
|
||||||
#include "attituderaw.h"
|
#include "attituderaw.h"
|
||||||
#include "attitudeactual.h"
|
#include "attitudeactual.h"
|
||||||
#include "attitudedesired.h"
|
#include "attitudedesired.h"
|
||||||
@ -72,7 +72,7 @@
|
|||||||
static xTaskHandle taskHandle;
|
static xTaskHandle taskHandle;
|
||||||
|
|
||||||
// Private functions
|
// Private functions
|
||||||
static void CCAttitudeTask(void *parameters);
|
static void AttitudeTask(void *parameters);
|
||||||
|
|
||||||
void adc_callback(float * data);
|
void adc_callback(float * data);
|
||||||
float gyro[3] = {0, 0, 0};
|
float gyro[3] = {0, 0, 0};
|
||||||
@ -84,10 +84,10 @@ void updateAttitude();
|
|||||||
* Initialise the module, called on startup
|
* Initialise the module, called on startup
|
||||||
* \returns 0 on success or -1 if initialisation failed
|
* \returns 0 on success or -1 if initialisation failed
|
||||||
*/
|
*/
|
||||||
int32_t CCAttitudeInitialize(void)
|
int32_t AttitudeInitialize(void)
|
||||||
{
|
{
|
||||||
// Start main task
|
// 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);
|
TaskMonitorAdd(TASKINFO_RUNNING_ATTITUDE, taskHandle);
|
||||||
PIOS_WDG_RegisterFlag(PIOS_WDG_ATTITUDE);
|
PIOS_WDG_RegisterFlag(PIOS_WDG_ATTITUDE);
|
||||||
return 0;
|
return 0;
|
||||||
@ -96,7 +96,7 @@ int32_t CCAttitudeInitialize(void)
|
|||||||
/**
|
/**
|
||||||
* Module thread, should not return.
|
* Module thread, should not return.
|
||||||
*/
|
*/
|
||||||
static void CCAttitudeTask(void *parameters)
|
static void AttitudeTask(void *parameters)
|
||||||
{
|
{
|
||||||
|
|
||||||
AlarmsClear(SYSTEMALARMS_ALARM_ATTITUDE);
|
AlarmsClear(SYSTEMALARMS_ALARM_ATTITUDE);
|
@ -2,12 +2,12 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @addtogroup OpenPilotModules OpenPilot Modules
|
* @addtogroup OpenPilotModules OpenPilot Modules
|
||||||
* @{
|
* @{
|
||||||
* @addtogroup AHRSCommsModule AHRSComms Module
|
* @addtogroup Attitude Attitude Module
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
* @file ahrs_comms.h
|
* @file attitude.h
|
||||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
|
||||||
* @brief Module to handle all comms to the AHRS on a periodic basis.
|
* @brief Acquires sensor data and fuses it into attitude estimate for CC
|
||||||
*
|
*
|
||||||
* @see The GNU Public License (GPL) Version 3
|
* @see The GNU Public License (GPL) Version 3
|
||||||
*
|
*
|
||||||
@ -27,11 +27,11 @@
|
|||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#ifndef AHRS_COMMS_H
|
#ifndef ATTITUDE_H
|
||||||
#define AHRS_COMMS_H
|
#define ATTITUDE_H
|
||||||
|
|
||||||
#include "openpilot.h"
|
#include "openpilot.h"
|
||||||
|
|
||||||
int32_t AHRSCommsInitialize(void);
|
int32_t AttitudeInitialize(void);
|
||||||
|
|
||||||
#endif // AHRS_COMMS_H
|
#endif // ATTITUDE_H
|
Loading…
x
Reference in New Issue
Block a user