Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pixix4 committed Aug 13, 2023
1 parent 2f51e69 commit efdc28c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
Expand Down
4 changes: 4 additions & 0 deletions examples/motors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;

Expand Down

0 comments on commit efdc28c

Please sign in to comment.