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:
mich146@hotmail.com 2011-01-17 22:57:48 +00:00
parent 50c3b2e4fd
commit 0328f926b5

View File

@ -86,10 +86,10 @@ PID::load_gains()
break; break;
case STORE_EEPROM_FLOAT: case STORE_EEPROM_FLOAT:
//eeprom_read_block((void*)&_kp,(const void*)(_address),sizeof(_kp)); 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*)&_ki,(const void*)(_address+4),sizeof(_ki));
//eeprom_read_block((void*)&_kd,(const void*)(_address+8),sizeof(_kd)); 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*)&_imax,(const void*)(_address+12),sizeof(_imax));
break; break;
} }
} }
@ -115,10 +115,10 @@ PID::save_gains()
*/ */
break; break;
case STORE_EEPROM_FLOAT: case STORE_EEPROM_FLOAT:
//eeprom_write_block((const void *)&_kp,(void *)(_address),sizeof(_kp)); 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 *)&_ki,(void *)(_address+4),sizeof(_ki));
//eeprom_write_block((const void *)&_kd,(void *)(_address+8),sizeof(_kd)); 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 *)&_imax,(void *)(_address+12),sizeof(_imax));
break; break;
} }
} }