From cf8fbdbfb994576b6f3278602c25e84795deac11 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 14 Apr 2012 20:18:16 +0200 Subject: digital: use 16bit speed --- digital/mimot/src/dirty/eeprom.avr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'digital/mimot/src/dirty/eeprom.avr.c') diff --git a/digital/mimot/src/dirty/eeprom.avr.c b/digital/mimot/src/dirty/eeprom.avr.c index faf2c282..8a49a27d 100644 --- a/digital/mimot/src/dirty/eeprom.avr.c +++ b/digital/mimot/src/dirty/eeprom.avr.c @@ -45,9 +45,9 @@ struct eeprom_t uint8_t key; /** Saved parameters. */ struct { - uint8_t max; - uint8_t slow; - uint16_t acc; + uint16_t max; + uint16_t slow; + uint16_t acc_f; } speed[EEPROM_INDEX_NB]; struct { uint16_t kp; @@ -92,7 +92,7 @@ eeprom_read_params_helper (struct eeprom_t *loaded, uint8_t index, { speed->max = loaded->speed[index].max; speed->slow = loaded->speed[index].slow; - speed->acc = loaded->speed[index].acc; + speed->acc_f = loaded->speed[index].acc_f; pos->kp = loaded->pos[index].kp; pos->ki = loaded->pos[index].ki; pos->kd = loaded->pos[index].kd; @@ -154,7 +154,7 @@ eeprom_write_params_helper (struct eeprom_t *param, uint8_t index, { param->speed[index].max = speed->max; param->speed[index].slow = speed->slow; - param->speed[index].acc = speed->acc; + param->speed[index].acc_f = speed->acc_f; param->pos[index].kp = pos->kp; param->pos[index].ki = pos->ki; param->pos[index].kd = pos->kd; -- cgit v1.2.3