Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2158 → Rev 2159

/branches/dongfang_FC_rewrite/configuration.c
243,6 → 243,7
motorMixer.matrix[i][MIX_PITCH] = 0;
motorMixer.matrix[i][MIX_ROLL] = 0;
motorMixer.matrix[i][MIX_YAW] = 0;
motorMixer.matrix[i][MIX_OPPOSITE_MOTOR] = (uint8_t)-1;
}
// default = Quadro
motorMixer.matrix[0][MIX_PITCH] = +64;
/branches/dongfang_FC_rewrite/eeprom.h
34,6 → 34,7
void channelMap_readOrDefault(void);
void motorMixer_readOrDefault(void);
void IMUConfig_readOrDefault(void);
void IMUConfig_writeToEEprom(void);
 
uint8_t paramSet_readFromEEProm(uint8_t setnumber);
void paramSet_writeToEEProm(uint8_t setnumber);
/branches/dongfang_FC_rewrite/uart0.c
482,12 → 482,12
tempchar[1] = sizeof(MotorMixer_t);
while (!txd_complete)
; // wait for previous frame to be sent
sendOutData('N', FC_ADDRESS, 2, &tempchar, 2, (uint8_t *)&motorMixer, sizeof(motorMixer));
sendOutData('N', FC_ADDRESS, 2, &tempchar, 2, (uint8_t*)&motorMixer, sizeof(motorMixer));
break;
 
case 'm':// "Set Mixer Table
if (pRxData[0] == EEMIXER_REVISION && (pRxData[1] == sizeof(MotorMixer_t))) {
memcpy(&motorMixer, (uint8_t*)pRxData[2], sizeof(motorMixer));
memcpy(&motorMixer, (uint8_t*)&pRxData[2], sizeof(motorMixer));
motorMixer_writeToEEProm();
while (!txd_complete)
; // wait for previous frame to be sent
/branches/dongfang_FC_rewrite/uart0.h
1,8 → 1,8
#ifndef _UART0_H
#define _UART0_H
 
#define TXD_BUFFER_LEN 180
#define RXD_BUFFER_LEN 180
#define TXD_BUFFER_LEN 150
#define RXD_BUFFER_LEN 150
 
#include <inttypes.h>
#include "ubx.h"