Skip to content

Commit

Permalink
update forward and backward control data
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbearishappy committed Dec 29, 2017
1 parent 3d92d30 commit 5f87178
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sourcecode/source_code/APP/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ int32_t PID_Cal_Speed(pid_s *p, int32_t current,int32_t target,unsigned char whi
else if(RIGHT_WHEEL == which_wheel)
spd_length_r+= (int32_t)temp;
}
#define TEMP1_F 30
#define TEMP1_B 3
#define TEMP1_F 20
#define TEMP1_B 2
if(LEFT_WHEEL == which_wheel){
if(target == 1){
spd_length_l += ADD_VALUE_FB;
Expand Down
4 changes: 2 additions & 2 deletions sourcecode/source_code/APP/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define LEFT_WHEEL 0x4c//'L' 's ascii code is 0x4c
#define RIGHT_WHEEL 0x52//'R' 's ascii code is 0x52

#define ADD_VALUE_LR 0.4
#define ADD_VALUE_FB 0.1//1
#define ADD_VALUE_LR 0.3
#define ADD_VALUE_FB 0.05//1

typedef struct PID
{
Expand Down

0 comments on commit 5f87178

Please sign in to comment.