Subversion Repositories FlightCtrl

Rev

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

Rev 1927 Rev 2025
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
 
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
dynamicParam_t dynamicParams;
10
uint8_t CPUType = ATMEGA644;
11
uint8_t CPUType = ATMEGA644;
Line 11... Line 12...
11
uint8_t BoardRelease = 13;
12
uint8_t BoardRelease = 13;
12
 
13
 
Line 33... Line 34...
33
  SET_POT(dynamicParams.GyroYawD,staticParams.GyroYawD);
34
  SET_POT(dynamicParams.GyroYawD,staticParams.GyroYawD);
Line 34... Line 35...
34
 
35
 
35
  for (i=0; i<sizeof(staticParams.UserParams); i++) {
36
  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
   
39
 
39
  SET_POT_MM(dynamicParams.J16Timing,staticParams.J16Timing,1,255);
40
  SET_POT_MM(dynamicParams.J16Timing,staticParams.J16Timing,1,255);
Line 40... Line 41...
40
  SET_POT_MM(dynamicParams.J17Timing,staticParams.J17Timing,1,255);
41
  SET_POT_MM(dynamicParams.J17Timing,staticParams.J17Timing,1,255);
41
 
42