🎓 Expand servo buffers to Int16

This commit is contained in:
Rune Harlyk
2023-08-07 22:17:08 +02:00
parent 4282055be0
commit 6017051324
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ class Servo : public Adafruit_PWMServoDriver {
Servo() : Adafruit_PWMServoDriver() {}
void SetAngles(int8_t* angle) {
void SetAngles(int16_t* angle) {
for(size_t i = 0; i < 12; i++)
servo_angles[i] = angle[i];
updateServos();
@@ -108,7 +108,7 @@ class Servo : public Adafruit_PWMServoDriver {
position_t spot_position = {.omega=0,.phi=0,.psi=0,.xm=-40,.ym=-170, .zm=0, .set=1};
position_t goal_position = {0,};
int8_t servo_angles[12]{0,};
int16_t servo_angles[12]{0,};
};
extern DRAM_ATTR std::unique_ptr<Servo> g_ptrServo;