Skip to content

Commit

Permalink
Improve mavproxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JcZou committed Jul 2, 2023
1 parent 7c60d00 commit f4cf92d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/introduction/configuration/mavproxy_config.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Mavproxy Configuration

The mavproxy module implements mavlink protocol and it is responsible for mavlink data communication, including message sending and reception.
The `mavproxy` module implements the MAVLink protocol and is responsible for handling MAVLink data communication, including message transmission and reception.

`[mavproxy]` table is used to configure the mavproxy module, which supports multiple channels (`currently 2 channels are supported, channel 0 for GCS and channel 1 for onboard computer`) and each channel can defines one or more `[[mavproxy.devices]]` that the mavproxy channel can use. The bellowing is a valid configuration with two devices reserved for channel0 and one device for channel1 .
The configuration of the `mavproxy` module is defined in the `[mavproxy]` table. It supports multiple channels, where channel 0 is designated for the Ground Control Station (GCS) and channel 1 is designated for the Onboard Computer (OBC). Each channel can be associated with one or more `[[mavproxy.devices]]` that the corresponding `mavproxy` channel can utilize.

The system will use the first device by default for mavproxy channel and is able to switch to other devices if multiple devices defined for the channel. For instance, mavproxy channel0 can switch to usb0 if usb is connected. When usb disconnected, the mavproxy channel0 will switch back to serial1 device.
Here is an example configuration that includes two devices reserved for channel 0 and one device reserved for channel 1.

```
[mavproxy]
Expand All @@ -28,6 +28,8 @@ The system will use the first device by default for mavproxy channel and is able
baudrate = 115200
```

By default, the system will utilize the first device defined for the `mavproxy` channel. However, if multiple devices are defined for a channel, the system has the capability to switch to other available devices. For instance, if a USB connection is established, `mavproxy` channel 0 can switch to the `usb0` device. If the USB connection is disconnected, `mavproxy` channel 0 will automatically switch back to the `serial1` device.

The **chan** has following choices:

- 0: Channel for ground control station.
Expand Down

0 comments on commit f4cf92d

Please sign in to comment.