|
52 | 52 |
|
53 | 53 | // Arrays to store servo min / max positions to avoid mechanical issues due |
54 | 54 | // NOTE: attach() disregards this, set PosRest to be within range of the servo's physical boundaries |
55 | | -int PosMin[SERVO_COUNT] = {0, 0, 5, 0, 0, 10, 60, 30}; |
| 55 | +int PosMin[SERVO_COUNT] = {0, 0, 5, 0, 0, 20, 60, 30}; |
56 | 56 | int PosMax[SERVO_COUNT] = {180, 180, 165, 180, 180, 180, 120, 150}; |
57 | 57 | int PosSleep[SERVO_COUNT] = {40, 60, 95, 140, 120, 85, PosMax[7], 90}; |
58 | 58 | //int PrepRestFromSleep[SERVO_COUNT] = {80, PosMin[1], PosMax[2], 100, PosMax[4], PosMin[5], S7_REST, 80, S9_REST}; |
59 | 59 | //int PrepSleepFromRest[SERVO_COUNT] = {S1_REST, S2_REST, S3_REST, S4_REST, S5_REST, S6_REST, S7_REST, 80, S9_REST}; |
60 | 60 |
|
61 | 61 | // Starting positions |
62 | 62 | //0, 3 = HIP |
63 | | -int PosStart[SERVO_COUNT] = {60, 0, 165, 120, 180, 10, 90, 90}; |
| 63 | +int PosStart[SERVO_COUNT] = {60, 0, 165, 120, 180, 20, 90, 90}; |
64 | 64 |
|
65 | | -int PosBackpack[SERVO_COUNT] = {45, 90, 165, 135, 90, 10, 90, 90}; // straighten legs and point feet to fit in backpack upright |
| 65 | +int PosBackpack[SERVO_COUNT] = {45, 90, 165, 135, 90, 20, 90, 90}; // straighten legs and point feet to fit in backpack upright |
66 | 66 |
|
67 | 67 | //int PosRest[SERVO_COUNT] = {S1_REST, S2_REST, S3_REST, S4_REST, S5_REST, S6_REST, S7_REST, S8_REST, S9_REST}; |
68 | | -int PosRest[SERVO_COUNT] = {60, 0, 165, 120, 180, 10, 90, 90}; |
| 68 | +int PosRest[SERVO_COUNT] = {60, 0, 165, 120, 180, 20, 90, 90}; |
69 | 69 |
|
70 | 70 | int PosConfig[SERVO_COUNT] = {90, 90, 90, 90, 90, 90, 90, 90}; |
71 | 71 |
|
72 | 72 | // Poses |
73 | | -int PosStand[SERVO_COUNT] = {45, 75, 90, 135, 105, 90, NOVAL, NOVAL}; |
| 73 | +int PosStand[SERVO_COUNT] = {45, 75, 80, 135, 105, 100, NOVAL, NOVAL}; |
74 | 74 | int PosLookLeft[SERVO_COUNT] = {NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, 180}; |
75 | 75 | int PosLookRight[SERVO_COUNT] = {NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, 0}; |
76 | 76 | int PosLookRandom[SERVO_COUNT] = {NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, NOVAL, -1, -1}; // Made random by calling the function moveRandom() if the value is -1 |
|
0 commit comments