File tree Expand file tree Collapse file tree
dev/application/param_adjusts/pa_hero Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -286,11 +286,13 @@ class TopControlThread : public BaseStaticThread<512> {
286286 // / Gimbal Response Test through Remote Controller
287287 gimbal_yaw_target_angle_ +=
288288 -Remote::rc.ch0 * 0 .7f ;
289- gimbal_pitch_target_angle_ += Remote::rc.ch1 * 0 .3f ;
290-
289+ if (Remote::rc.ch1 > 0 )
290+ gimbal_pitch_target_angle_ += Remote::rc.ch1 * gimbal_pitch_max_angle * 0.1 ;
291+ else
292+ gimbal_pitch_target_angle_ -= Remote::rc.ch1 * gimbal_pitch_min_angle * 0.1 ;
291293 VAL_CROP (gimbal_pitch_target_angle_, gimbal_pitch_max_angle, gimbal_pitch_min_angle);
292294 // if the right button is up, adjust Pitch only, if it is down, adjust Yaw only
293- // if it it in the middle then both
295+ // if it is in the middle then both
294296 switch (Remote::rc.s2 ) {
295297 case Remote::S_UP:
296298 gimbal_yaw_target_angle_ = 0 .0f ;
You can’t perform that action at this time.
0 commit comments