joplin-mdbooks-website/content/ardupilot/dji-fpv-configuration.md

31 lines
1.3 KiB
Markdown
Raw Normal View History

2021-12-31 11:37:43 -05:00
# DJI FPV configuration
2022-03-03 17:36:12 -05:00
## Configuring ArduPilot for DJI FPV
2021-12-31 11:37:43 -05:00
If you're using the DJI FPV system, here's the relevant configuration you need to set:
1. Set `OSD_TYPE=3`.
2. Set `SERIALn_PROTOCOL=33 SERIALn_BAUD=115 SERIALn_OPTIONS=0` (DJI FPV).
3. Create a text file called `naco.txt` on the SD card of the Air Unit with the text `1` in it [to unlock full power](https://oscarliang.com/dji-fpv-system-fcc-700mw/).
4. Create a text file called `naco_pwr.txt` on the SD card of the goggles with the text `pwr_2` in it [to unlock more full power](https://oscarliang.com/dji-fpv-system-1200mw-output/).
5. Set "Custom OSD" to "on" in the goggles menu.
6. Arrange your OSD elements how you like them.
That's it!
2022-03-03 17:36:12 -05:00
## Synchronizing the video and audio of the DJI Air Unit
The audio of the DJI air unit is slower than the video, leading to desynchronization, but it is slower by a constant factor, which means it can be easily corrected with the following command:
2021-12-31 11:37:43 -05:00
2022-03-03 17:36:12 -05:00
```bash
2022-03-03 17:44:38 -05:00
$ ffmpeg -i "$1" -c:v copy -filter:a atempo=1.001480,volume=20 \
-c:a aac -b:a 93k "$(basename "$1" .mp4)_fixed_audio.mp4"
2022-03-03 17:36:12 -05:00
```
2021-12-31 11:37:43 -05:00
* * *
<p style="font-size:80%; font-style: italic">
2022-03-03 17:36:12 -05:00
Last updated on March 04, 2022. For any questions/feedback,
2021-12-31 11:37:43 -05:00
email me at <a href="mailto:hi@stavros.io">hi@stavros.io</a>.
</p>