mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-28 00:14:33 +00:00
PWM rescaling
This commit is contained in:
@@ -61,9 +61,9 @@ static esp_err_t rc_adc_init (void) {
|
|||||||
static int check_motor_pcm(int x) {
|
static int check_motor_pcm(int x) {
|
||||||
int lim = 7440;
|
int lim = 7440;
|
||||||
if (x > lim)
|
if (x > lim)
|
||||||
return 8100;//lim;
|
return 8190;//lim;
|
||||||
else if (x < -lim)
|
else if (x < -lim)
|
||||||
return -8100;//-lim;
|
return -8190;//-lim;
|
||||||
else
|
else
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user