mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 16:38:30 -04:00
Reinstate Float loading and saving
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1507 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
50c3b2e4fd
commit
0328f926b5
@ -86,10 +86,10 @@ PID::load_gains()
|
||||
break;
|
||||
|
||||
case STORE_EEPROM_FLOAT:
|
||||
//eeprom_read_block((void*)&_kp,(const void*)(_address),sizeof(_kp));
|
||||
//eeprom_read_block((void*)&_ki,(const void*)(_address+4),sizeof(_ki));
|
||||
//eeprom_read_block((void*)&_kd,(const void*)(_address+8),sizeof(_kd));
|
||||
//eeprom_read_block((void*)&_imax,(const void*)(_address+12),sizeof(_imax));
|
||||
eeprom_read_block((void*)&_kp,(const void*)(_address),sizeof(_kp));
|
||||
eeprom_read_block((void*)&_ki,(const void*)(_address+4),sizeof(_ki));
|
||||
eeprom_read_block((void*)&_kd,(const void*)(_address+8),sizeof(_kd));
|
||||
eeprom_read_block((void*)&_imax,(const void*)(_address+12),sizeof(_imax));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -115,10 +115,10 @@ PID::save_gains()
|
||||
*/
|
||||
break;
|
||||
case STORE_EEPROM_FLOAT:
|
||||
//eeprom_write_block((const void *)&_kp,(void *)(_address),sizeof(_kp));
|
||||
//eeprom_write_block((const void *)&_ki,(void *)(_address+4),sizeof(_ki));
|
||||
//eeprom_write_block((const void *)&_kd,(void *)(_address+8),sizeof(_kd));
|
||||
//eeprom_write_block((const void *)&_imax,(void *)(_address+12),sizeof(_imax));
|
||||
eeprom_write_block((const void *)&_kp,(void *)(_address),sizeof(_kp));
|
||||
eeprom_write_block((const void *)&_ki,(void *)(_address+4),sizeof(_ki));
|
||||
eeprom_write_block((const void *)&_kd,(void *)(_address+8),sizeof(_kd));
|
||||
eeprom_write_block((const void *)&_imax,(void *)(_address+12),sizeof(_imax));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user