Subversion Repositories FlightCtrl

Rev

Rev 1926 | Rev 2099 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1926 Rev 1927
Line 4... Line 4...
4
#include "configuration.h"
4
#include "configuration.h"
5
#include "eeprom.h"
5
#include "eeprom.h"
6
#include "uart0.h"
6
#include "uart0.h"
Line 7... Line 7...
7
 
7
 
8
int16_t variables[8] = {0,0,0,0,0,0,0,0};
8
int16_t variables[8] = {0,0,0,0,0,0,0,0};
9
dynamicParam_t dynamicParams = {48,251,16,58,64,8,150,150,2,10,{0,0,0,0,0,0,0,0},100,70,90,65,64,100,0,0,0};
9
dynamicParam_t dynamicParams;// = {48,251,16,58,64,8,150,150,2,10,{0,0,0,0,0,0,0,0},100,70,90,65,64,100,0,0,0};
10
uint8_t CPUType = ATMEGA644;
10
uint8_t CPUType = ATMEGA644;
Line 11... Line 11...
11
uint8_t BoardRelease = 13;
11
uint8_t BoardRelease = 13;
12
 
12
 
Line 30... Line 30...
30
 
30
 
31
  SET_POT(dynamicParams.GyroPitchD,staticParams.GyroPitchD);
31
  SET_POT(dynamicParams.GyroPitchD,staticParams.GyroPitchD);
32
  SET_POT(dynamicParams.GyroRollD,staticParams.GyroRollD);
32
  SET_POT(dynamicParams.GyroRollD,staticParams.GyroRollD);
Line 33... Line -...
33
  SET_POT(dynamicParams.GyroYawD,staticParams.GyroYawD);
-
 
34
 
33
  SET_POT(dynamicParams.GyroYawD,staticParams.GyroYawD);
35
  SET_POT(dynamicParams.IFactor,staticParams.IFactor);
34
 
36
  for (i=0; i<sizeof(staticParams.UserParams); i++) {
35
  for (i=0; i<sizeof(staticParams.UserParams); i++) {
-
 
36
    SET_POT(dynamicParams.UserParams[i],staticParams.UserParams[i]);
37
    SET_POT(dynamicParams.UserParams[i],staticParams.UserParams[i]);
37
  }
38
  }
38
   
Line 39... Line 39...
39
  SET_POT_MM(dynamicParams.J16Timing,staticParams.J16Timing,1,255);
39
  SET_POT_MM(dynamicParams.J16Timing,staticParams.J16Timing,1,255);
40
  SET_POT_MM(dynamicParams.J17Timing,staticParams.J17Timing,1,255);
40
  SET_POT_MM(dynamicParams.J17Timing,staticParams.J17Timing,1,255);