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 script to generate rst from hwdef #27128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peterbarker
Copy link
Contributor

pbarker@fx:~/rc/ardupilot(pr/rst-from-hwdef)$ ./Tools/scripts/generate_board_page.py 
pbarker@fx:~/rc/ardupilot(pr/rst-from-hwdef)$ cat /tmp/some_html/Pixhawk6X.rst 

============
UART Mapping
============

 - SERIAL0 -> OTG1 (USB)
 - SERIAL1 -> UART7 (Telem1) (RTS/CTS pins)
 - SERIAL2 -> UART5 (Telem2) (RTS/CTS pins)
 - SERIAL3 -> USART1 (GPS1)
 - SERIAL4 -> UART8 (GPS2)
 - SERIAL5 -> USART2 (Telem3) (RTS/CTS pins)
 - SERIAL6 -> UART4 (User)
 - SERIAL7 -> USART3 (Debug)
 - SERIAL8 -> OTG2 (USB; MAVLink, can be used for SLCAN with protocol change)

I'm not sure what else we can usefully generate. A lot of things are optional or change over time, so the best you can say from a hwdef is "might have a this, might have a that". The MatekF405-TE etc is a really good example of that....

@peterbarker peterbarker requested a review from Hwurzburg May 22, 2024 01:58
@Hwurzburg
Copy link
Collaborator

I think we need to discuss when you get a chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants