Subversion Repositories FlightCtrl

Rev

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

Rev 2099 Rev 2102
Line 160... Line 160...
160
}
160
}
Line 161... Line 161...
161
 
161
 
162
/***************************************************/
162
/***************************************************/
163
/* Sensor offsets                                  */
163
/* Sensor offsets                                  */
164
/***************************************************/
-
 
165
uint8_t gyroAmplifierOffset_readFromEEProm(void) {
-
 
166
  return readChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroAmplifierOffset, EEPROM_ADR_GYROAMPLIFIER, sizeof(sensorOffset_t));
-
 
167
}
-
 
168
 
-
 
169
void gyroAmplifierOffset_writeToEEProm(void) {
-
 
170
  return writeChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroAmplifierOffset, EEPROM_ADR_GYROAMPLIFIER, sizeof(sensorOffset_t));
-
 
171
}
-
 
172
 
164
/***************************************************/
173
uint8_t gyroOffset_readFromEEProm(void) {
165
uint8_t gyroOffset_readFromEEProm(void) {
174
  return readChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroOffset, EEPROM_ADR_GYROOFFSET, sizeof(sensorOffset_t));
166
  return readChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroOffset, EEPROM_ADR_GYROOFFSET, sizeof(sensorOffset_t));
Line 175... Line 167...
175
}
167
}
176
 
168
 
177
void gyroOffset_writeToEEProm(void) {
169
void gyroOffset_writeToEEProm(void) {
178
  writeChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&gyroOffset, EEPROM_ADR_GYROOFFSET, sizeof(sensorOffset_t));
-
 
179
}
-
 
180
 
-
 
181
/*
-
 
182
uint8_t accOffset_readFromEEProm(void) {
-
 
183
  return readChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&accOffset, EEPROM_ADR_ACCOFFSET, sizeof(sensorOffset_t));
-
 
184
}
-
 
185
 
-
 
186
void accOffset_writeToEEProm(void) {
-
 
187
  writeChecksummedBlock(SENSOROFFSET_REVISION, (uint8_t*)&accOffset, EEPROM_ADR_ACCOFFSET, sizeof(sensorOffset_t));
-