1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

implemented IAP by using ROM bootloader, changed ADXL init stuff, changed mag axis orientation. added startup assembly file to root since it got modified with bootloader reboot check.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@88 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop 2012-02-18 07:02:29 +00:00
parent d262c6e66c
commit 738541b269
9 changed files with 811 additions and 81 deletions

View file

@ -201,14 +201,15 @@ static uint8_t magInit = 0;
static void Mag_getRawADC(void)
{
int16_t rawADC[3];
static int16_t rawADC[3];
hmc5883lRead(rawADC);
// Hearty FUCK-YOU goes to all teh breakout sensor faggots who make a new orientation for each shitty board they make
// sensor order: X Z Y
magADC[ROLL] = -rawADC[0]; // X
magADC[ROLL] = rawADC[0]; // X or negative? who knows mag stuff in multiwii is broken hardcore
magADC[PITCH] = rawADC[2]; // Y
magADC[YAW] = rawADC[1]; // Z
#endif
}
void Mag_init(void)