Subversion Repositories FlightCtrl

Rev

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

Rev 2133 Rev 2135
Line 183... Line 183...
183
        // restore global interrupt flags
183
        // restore global interrupt flags
184
        SREG = sreg;
184
        SREG = sreg;
185
}
185
}
Line 186... Line 186...
186
 
186
 
187
/*
187
/*
188
 * Here the axes of the sensor can be shuffled around.
188
 * The sensor is installed vertically and the axes are moved around a little...
189
 */
189
 */
-
 
190
int16_t rawGyroValue(uint8_t axis) {
-
 
191
  switch(axis) {
-
 
192
  case PITCH:
-
 
193
    return ITG3200SensorInputs[3];
190
int16_t rawGyroValue(uint8_t axis) {
194
  case ROLL:
-
 
195
    return ITG3200SensorInputs[1];
-
 
196
  case YAW:
-
 
197
    return ITG3200SensorInputs[2];
-
 
198
  }
191
  return ITG3200SensorInputs[axis+1]; // skip temperature mesaurement in any case..
199
  return 0;
Line 192... Line 200...
192
}
200
}
193
 
201
 
194
/*
202
/*