Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1080 → Rev 1081

/branches/V0.71h Code Redesign killagreg/Hex-Files/Flight-Ctrl_MEGA644p_NAVICTRL_V0_70d.hex
File deleted
/branches/V0.71h Code Redesign killagreg/Hex-Files/Flight-Ctrl_MEGA644_MK3MAG_V0_70d.hex
File deleted
/branches/V0.71h Code Redesign killagreg/Hex-Files/Flight-Ctrl_MEGA644p_KILLAGREG_V0_70d.hex
File deleted
/branches/V0.71h Code Redesign killagreg/Hex-Files/Flight-Ctrl_MEGA644_KILLAGREG_V0_70d.hex
File deleted
/branches/V0.71h Code Redesign killagreg/Hex-Files/Flight-Ctrl_MEGA644_NAVICTRL_V0_70d.hex
File deleted
/branches/V0.71h Code Redesign killagreg/Hex-Files/Flight-Ctrl_MEGA644p_MK3MAG_V0_70d.hex
File deleted
/branches/V0.71h Code Redesign killagreg/spi.c
28,7 → 28,6
// data exchange packets to and From NaviCtrl
ToNaviCtrl_t ToNaviCtrl;
FromNaviCtrl_t FromNaviCtrl;
FromNaviCtrl_Value_t FromNaviCtrl_Value;
 
SPI_VersionInfo_t SPI_VersionInfo;
 
/branches/V0.71h Code Redesign killagreg/uart.c
60,7 → 60,7
typedef struct
{
int16_t Heading;
} Heading_t;
} __attribute__((packed)) Heading_t;
 
DebugOut_t DebugOut;
ExternControl_t ExternControl;
438,9 → 438,7
{
#ifdef USE_MK3MAG
case 'K':// compass value
Heading_t* pMK3MagHeading;
pMK3MagHeading = (Heading_t *) pRxData;
CompassHeading = *pMK3MagHeading;
CompassHeading = ((Heading_t *)pRxData)->Heading;
CompassOffCourse = ((540 + CompassHeading - CompassCourse) % 360) - 180;
break;
#endif
499,15 → 497,6
 
switch(rxd_buffer[2])
{
// only for compatibility to old MK3Mag Version taht does not send the right Slave Address
#ifdef USE_MK3MAG
case 'K':// compass value
Heading_t* pMK3MagHeading;
pMK3MagHeading = (Heading_t *) pRxData;
CompassHeading = *pMK3MagHeading;
CompassOffCourse = ((540 + CompassHeading - CompassCourse) % 360) - 180;
break;
#endif
case 'a':// request for labels of the analog debug outputs
Request_DebugLabel = pRxData[0];
if(Request_DebugLabel > 31) Request_DebugLabel = 31;
/branches/V0.71h Code Redesign killagreg/uart.h
23,8 → 23,8
 
typedef struct
{
uint8_t Digital[2];
uint16_t Analog[32]; // Debugvalues
uint8_t Digital[2];
uint16_t Analog[32]; // Debugvalues
} __attribute__((packed)) DebugOut_t;
 
extern DebugOut_t DebugOut;
31,16 → 31,16
 
typedef struct
{
uint8_t Digital[2];
uint8_t RemoteButtons;
int8_t Nick;
int8_t Roll;
int8_t Yaw;
uint8_t Gas;
int8_t Height;
uint8_t free;
uint8_t Frame;
uint8_t Config;
uint8_t Digital[2];
uint8_t RemoteButtons;
int8_t Nick;
int8_t Roll;
int8_t Yaw;
uint8_t Gas;
int8_t Height;
uint8_t free;
uint8_t Frame;
uint8_t Config;
} __attribute__((packed)) ExternControl_t;
 
extern ExternControl_t ExternControl;
47,12 → 47,12
 
typedef struct
{
uint8_t SWMajor;
uint8_t SWMinor;
uint8_t ProtoMajor;
uint8_t ProtoMinor;
uint8_t SWPatch;
uint8_t Reserved[5];
uint8_t SWMajor;
uint8_t SWMinor;
uint8_t ProtoMajor;
uint8_t ProtoMinor;
uint8_t SWPatch;
uint8_t Reserved[5];
} __attribute__((packed)) UART_VersionInfo_t;