add max velocity check in CST demo