first version : speed by slope only. Other parameters could be tweaked inside constants file