From: zer0 Date: Sat, 24 Apr 2010 13:15:25 +0000 (+0200) Subject: new servo pos X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=99c22f682c6ddb6d0bcf657ec30aae226d3240f5;p=aversive.git new servo pos --- diff --git a/projects/microb2010/mainboard/actuator.c b/projects/microb2010/mainboard/actuator.c index 777d94a..ed86f33 100644 --- a/projects/microb2010/mainboard/actuator.c +++ b/projects/microb2010/mainboard/actuator.c @@ -58,7 +58,7 @@ void pwm_set_and_save(void *pwm, int32_t val) val = 4095; if (val < -4095) val = -4095; - + if (pwm == LEFT_PWM) mainboard.pwm_l = val; else if (pwm == RIGHT_PWM) @@ -73,16 +73,16 @@ void pwm_set_and_save(void *pwm, int32_t val) void support_balls_deploy(void) { #ifndef HOST_VERSION - pwm_ng_set(SUPPORT_BALLS_R_SERVO, 510); - pwm_ng_set(SUPPORT_BALLS_L_SERVO, 205); + pwm_ng_set(SUPPORT_BALLS_R_SERVO, 560); + pwm_ng_set(SUPPORT_BALLS_L_SERVO, 155); #endif } void support_balls_pack(void) { #ifndef HOST_VERSION - pwm_ng_set(SUPPORT_BALLS_R_SERVO, 250); - pwm_ng_set(SUPPORT_BALLS_L_SERVO, 480); + pwm_ng_set(SUPPORT_BALLS_R_SERVO, 290); + pwm_ng_set(SUPPORT_BALLS_L_SERVO, 430); #endif }