Sounds like you need a PID controller on the pellet feed (not gcode).