From efdc28cf08421561b7b63df5b07c3a346fb8c267 Mon Sep 17 00:00:00 2001 From: Lars Westermann Date: Sun, 13 Aug 2023 16:12:50 +0200 Subject: [PATCH] Update dockerfile --- docker/Dockerfile | 4 ++-- examples/motors.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5af6811..57668f7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,9 @@ -FROM debian:stretch-slim +FROM debian:trixie-slim RUN dpkg --add-architecture armel RUN apt-get update -RUN sed -i "s#deb http://security.debian.org/debian-security stretch/updates main#deb http://deb.debian.org/debian-security stretch/updates main#g" /etc/apt/sources.list +# RUN sed -i "s#deb http://security.debian.org/debian-security stretch/updates main#deb http://deb.debian.org/debian-security stretch/updates main#g" /etc/apt/sources.list RUN apt-get --yes install curl cmake pkg-config clang g++ g++-arm-linux-gnueabi crossbuild-essential-armel libssl-dev libssl-dev:armel libclang-dev \ && rm -rf /var/lib/apt/lists/* diff --git a/examples/motors.rs b/examples/motors.rs index 0a84a1f..335b546 100644 --- a/examples/motors.rs +++ b/examples/motors.rs @@ -7,6 +7,10 @@ fn main() -> Ev3Result<()> { let large_motor = LargeMotor::get(MotorPort::OutA)?; let medium_motor = MediumMotor::get(MotorPort::OutB)?; + // Set the initial speed so that the motors will move + large_motor.set_speed_sp(300)?; + medium_motor.set_speed_sp(300)?; + large_motor.run_to_rel_pos(Some(360))?; medium_motor.run_to_rel_pos(Some(180))?;