The shunt resistor - How To, 50A BBSHD Controller Mod, calculate value as desired.
I have two Bafang BBSHD / Luna Ludicrous V2 controller builds (here and here). To maintain acceptable reliability, there's more to it than just bolting up the controller - riding habits, PEEK gear, rotor, chain...