Fixed method to send speed to train controller