diff --git a/source/quickstart/run-the-sample.md b/source/quickstart/run-the-sample.md index 9497668..5394090 100644 --- a/source/quickstart/run-the-sample.md +++ b/source/quickstart/run-the-sample.md @@ -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` @@ -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. \ No newline at end of file +* Solution: Please activate Keil MDK before compiling the sample code with Keil MDK.