I am having exactly the same problem as the other user in Lab11e.
The motor runs forward only if I input negative value in gMotorVars.SpeedRef_krpm and only runs at maximum RPM without caring for the value I have put in gMotorVars.SpeedRef_krpm.
The other user solved his problem saying "So I did NOT all Hall Sensor Values and now it is working.", but I cannot understand what exactly does that mean. Could someone provide additional assistance?