Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the baudrate setting #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion source/quickstart/run-the-sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,21 @@ Figure 1 shows how to add the user's information. First of all, you should obtai
```c
#define LINUX_UART_DEV "dev/your_com"
```

* In the same file, change the baudrate to match your port's baudrate (`B115200` for the X-Port, `B921600` for the Skyport V2). For example for the Skyport V2:

```c
cfsetispeed(&options, B921600); //B11500 if you are using the X-Port
cfsetospeed(&options, B921600); //B11500 if you are using the X-Port
```

* Use command `ifconfig`, look for the name of the network's interface, and fill in the `LINUX_NETWORK_DEV`which in the `sample/platform/linux/manifold2/hal/hal_network.c`.

```c
#define LINUX_NETWORK_DEV "your_network_name"
```


#### Compile and Burn

* Use the command to gain the access permission:`sudo chmod 777 /dev/your serial-port's name`
Expand Down Expand Up @@ -223,4 +232,4 @@ After binding SkyPort V2 with the sample on the DJI Assistant 2, when the payloa
## Compile Troubleshooting
#### When using Keil MDK to compile the sample code, an error is reported: "error: L6050U"
* Cause: Keil MDK is not activated.
* Solution: Please activate Keil MDK before compiling the sample code with Keil MDK.
* Solution: Please activate Keil MDK before compiling the sample code with Keil MDK.