Skip to content

Commit efdc28c

Browse files
committed
Update dockerfile
1 parent 2f51e69 commit efdc28c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM debian:stretch-slim
1+
FROM debian:trixie-slim
22

33
RUN dpkg --add-architecture armel
44

55
RUN apt-get update
6-
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
6+
# 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
77

88
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 \
99
&& rm -rf /var/lib/apt/lists/*

examples/motors.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ fn main() -> Ev3Result<()> {
77
let large_motor = LargeMotor::get(MotorPort::OutA)?;
88
let medium_motor = MediumMotor::get(MotorPort::OutB)?;
99

10+
// Set the initial speed so that the motors will move
11+
large_motor.set_speed_sp(300)?;
12+
medium_motor.set_speed_sp(300)?;
13+
1014
large_motor.run_to_rel_pos(Some(360))?;
1115
medium_motor.run_to_rel_pos(Some(180))?;
1216

0 commit comments

Comments
 (0)