Skip to content

Commit

Permalink
switch off speed PLL
Browse files Browse the repository at this point in the history
  • Loading branch information
stancecoke committed Jun 23, 2024
1 parent cbf603a commit e2f4f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Inc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//#define INDIVIDUAL_MODES
//#define SPEEDTHROTTLE
#define SIXSTEPTHRESHOLD 20000
#define SPEED_PLL 1 //1 for using PLL, 0 for angle extrapolation
#define SPEED_PLL 0 //1 for using PLL, 0 for angle extrapolation
#define P_FACTOR_PLL 10
#define I_FACTOR_PLL 10

Expand Down
2 changes: 1 addition & 1 deletion Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ int main(void)
ui16_ph1_offset=temp1>>5;
ui16_ph2_offset=temp2>>5;
ui16_ph3_offset=temp3>>5;
ui16_throttle_offset=(temp4>>5)+3;
ui16_throttle_offset=(temp4>>5)+5;

#ifdef DISABLE_DYNAMIC_ADC // set injected channel with offsets
ADC1->JSQR=0b00100000000000000000; //ADC1 injected reads phase A JL = 0b00, JSQ4 = 0b00100 (decimal 4 = channel 4)
Expand Down

0 comments on commit e2f4f2e

Please sign in to comment.