Files

15 lines
450 B
C++
Raw Permalink Normal View History

#pragma once
2025-12-14 13:21:36 +01:00
constexpr float COMP_EPSILON = 0.01;
// ----- Servo config -----
2025-12-14 18:57:28 +01:00
/*
#define SERVO_PMIN 125 // Minimum pulse length (0 degrees)
#define SERVO_PMAX 625 // Maximum pulse length (180 degrees)
const int servo_range[] = {270, 270, 270, 180};
const int min_safe_angles[] = {10, 0, 0, 0};
const int max_safe_angles[] = {270, 181, 270, 180};
const int initial_pose[] = {186, 71, 171, 36};
int currentPose[] = {0, 0, 0, 0};
2025-12-14 18:57:28 +01:00
*/