minor notes update

This commit is contained in:
Laila van Reenen 2025-07-03 20:56:43 +02:00
parent c84d17a4d9
commit f5f7184965
Signed by: LailaTheElf
GPG Key ID: 8A3EF0226518C12D
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ int cmd_contrl(char* line, void* cli)
return out;
}
// servotrim:0 410;614;819
int cmd_servotrim(char* line, void* cli)
{
uint8_t ch;

View File

@ -14,7 +14,7 @@
#define SERVO_DUTY_MIN ( 410) // 2**13 * (1000/20000) // 1000us of the 20ms
#define SERVO_DUTY_MAX ( 819) // 2**13 * (2000/20000) // 2000us of the 20ms
// #define SERVO_DUTY_MAX (1024) // 2**13 * (2500/20000) // 2500us of the 20ms
#define SERVO_DUTY_MID ( 614) // 2**13 * (1500/20000) // 2500us of the 20ms
#define SERVO_DUTY_MID ( 614) // 2**13 * (1500/20000) // 1500us of the 20ms
#define SERVO_DUTY_DIFF (SERVO_DUTY_MAX - SERVO_DUTY_MIN)