added control for motor

Signed-off-by: Pierre <Pierre@Pierre-PC>