Mercurial > tote
changeset 160:81beccca7fa4
Change all "char" types in tables to "signed char"
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Thu, 02 Jul 2015 16:37:34 +0200 |
| parents | ab800b79e496 |
| children | 387236216765 |
| files | start/leg.h start/servos.ino |
| diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/start/leg.h Wed Jul 01 12:29:06 2015 +0200 +++ b/start/leg.h Thu Jul 02 16:37:34 2015 +0200 @@ -15,8 +15,8 @@ #define BASE 18.5 #endif -const char LEG_X[4] = {-1, -1, 1, 1}; -const char LEG_Y[4] = {1, -1, -1, 1}; +const signed char LEG_X[4] = {-1, -1, 1, 1}; +const signed char LEG_Y[4] = {1, -1, -1, 1}; extern double leg_position[4][3]; const double HOME = (COXA + FEMUR) / SQRT2;
--- a/start/servos.ino Wed Jul 01 12:29:06 2015 +0200 +++ b/start/servos.ino Thu Jul 02 16:37:34 2015 +0200 @@ -19,14 +19,14 @@ 6, 5, 4, // hind right 7, 8, 9 // front right }; -static const char SERVO_REVERSE[SERVOS] = { +static const signed char SERVO_REVERSE[SERVOS] = { // ankle, knee, hip -1, 1, 1, // front left 1, -1, -1, // hind left -1, 1, 1, // hind right 1, -1, -1 // front right }; -static const char SERVO_TRIM[SERVOS] = { +static const signed char SERVO_TRIM[SERVOS] = { // ankle, knee, hip -10, -5, -10, // front left 10, -5, -10, // hind left
