Commit 70a1e3d4 authored by Wenxi XU's avatar Wenxi XU
Browse files

Update 2 files

- /README.md
- /samples/motor/dji_m3508_demo/boards/robomaster_board_c.overlay
parent 9edc8468
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -10,9 +10,9 @@ First zephyr SDKs are needed.
```shell
sudo apt update
sudo apt upgrade
sudo apt install --no-install-recommends git cmake ninja-build gperf \
  ccache dfu-util device-tree-compiler wget \
  python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
sudo apt install --no-install-recommends git cmake ninja-build gperf /
  ccache dfu-util device-tree-compiler wget /
  python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file /
  make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1
```
### You should have a virtual environment if Python tells you to do so
@@ -52,7 +52,7 @@ To build the application, run the following command:

```shell
cd mambo
west build -b robomaster_board_c samples\motor\dji_m3508_demo
west build -b robomaster_board_c samples/motor/dji_m3508_demo
```

`$BOARD` is the target board. Here you can use `robomaster_board_c`
@@ -61,7 +61,7 @@ A sample debug configuration is also provided. To apply it, run the following
command:

```shell
west build -b $BOARD samples\motor\dji_m3508_demo
west build -b $BOARD samples/motor/dji_m3508_demo
```

Once you have built the application, run the following command to flash it:
+8 −8
Original line number Diff line number Diff line
@@ -4,19 +4,19 @@
    speed_pid_m3508: speed_pid_m3508 {
        compatible = "pid,single";
        #controller-cells = <0>;
        k_p = <800>;
        k_i = <50>;
        k_d = <10>;
        out_max = <2>;
        k_p = "8";
        k_i = "0.5";
        k_d = "0.1";
        out_max = "2";
    };

    angle_pid_m3508: angle_pid_m3508 {
        compatible = "pid,single";
        #controller-cells = <0>;
        k_p = <1200>;
        k_i = <0>;
        k_d = <200>;
        out_max = <50>;
        k_p = "10";
        k_i = "0";
        k_d = "2";
        out_max = "50";
    };

    m3508_motor: m3508_motor {