View Single Post
Old 05-09-2020, 07:06 AM   #3415 (permalink)
sparkey
EcoModding Lurker
 
Join Date: May 2020
Location: UK
Posts: 5
Thanks: 0
Thanked 5 Times in 4 Posts
Thanks for the reply! I've updated my throttle settings to what you suggested, but still no movement.

Here is my current config. I've put in comments to show where I got the values from where approproate

motor-type=4 // from the code...
kp=11284 ki=00182 // from a comment in the code for MGR motors at 48V
current-sensor-amps-per-volt=0320 // hass 200 current sensors
max-regen-position=0320
min-regen-position=0400
min-throttle-position=0450
max-throttle-position=0800
fault-throttle-position=0005
max-battery-amps=0015 amps
max-battery-amps-regen=0015 amps
max-motor-amps=025 amps
max-motor-amps-regen=025 amps
precharge-time=0050 tenths of a sec
angle-offset=167 // based on the angle-offset test
saliency=0000 // not sure what this is
pole-pairs=004 // from the motor's specificatoins
max-rpm=06000 rev/min
throttle-type=0
encoder-ticks=0256 ticks/rev // not sure what this should be for my current motor mode
pi-ratio=062
raw-throttle=0316

Below shows the stream of throlttle and poscnt, first when i'm pressing the throttle, then ween i'm turning the motor by hand. Notice how the position isn't between 0-511. This is my current focus of debugging, but I'm not sure what behavior should be given I'm using the motor-mode 4

rawThrottle,poscnt,
...pressing the throttle
0316,13209,
0316,13209,
0325,13208,
0422,13209,
0475,13208,
0535,13209,
0604,13208,
0681,13208,
0754,13208,
0796,13208,
0499,13208,
0316,13209,
...now turning the motor by hand
0316,13208,
0317,13209,
0317,13209,
0316,12083,
0315,11446,
0316,10662,
  Reply With Quote