docs(boards): Add PWM Outputs section#26818
Conversation
|
/en/flight_controller/corvon_743v1.md
|
| | UART8 | /dev/ttyS7 | GPS2 | | ||
|
|
||
| ## PWM Output | ||
| ## PWM Outputs |
There was a problem hiding this comment.
This one needs to be fixed up manually - the labeling of the ports was lost, and there is also electrical data that was replaced.
| | UART8 | /dev/ttyS5 | SERIAL4 | | ||
|
|
||
| ## PWM Output | ||
| ## PWM Outputs |
There was a problem hiding this comment.
This needs to be updated manually. The data might be correct but we want to capture the labelling.
35a734d to
45ab9bd
Compare
| The remaining 6 PWM ports are still being adapted (so it is not compatible with VOLT at time of writing). | ||
| ::: | ||
|
|
||
| ## PWM Outputs {#pwm_outputs} |
There was a problem hiding this comment.
@cuav-chen2 When you have a moment, can you please check the information on the CUAV boards for PWM outputs? This is script generated, and has been updated following the information you provided in #26882 (comment)
There was a problem hiding this comment.
No errors in the description.
| ## PWM Outputs {#pwm_outputs} | ||
|
|
||
| This flight controller supports up to 6 FMU PWM outputs (AUX) and 8 IO PWM outputs (MAIN). | ||
|
|
||
| All FMU outputs support [DShot](../peripherals/dshot.md) and [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry). | ||
|
|
||
| The 6 outputs are in 2 groups: | ||
|
|
||
| - Outputs 1-4 in group1 (Timer1) | ||
| - Outputs 5-6 in group2 (Timer4) | ||
|
|
||
| All outputs within the same group must use the same output protocol and rate. |
There was a problem hiding this comment.
@julianoes Do you think you could sanity check the cubepilot information for PWM outputs?
Claude wrote me a script to generate this based on information in timers and so on. It's been valided against a number of boards that already documented this stuff, but I don't deeply understand it.
No great urgency, but if you can't please let me know.
|
Sorry I missed this. I will review it tomorrow. |
dakejahl
left a comment
There was a problem hiding this comment.
ARK docs are correct. Thanks!
|
|
||
| Additional information can be found in the [Pixhawk 4 Technical Data Sheet](https://github.com/PX4/PX4-Autopilot/blob/main/docs/assets/flight_controller/pixhawk4/pixhawk4_technical_data_sheet.pdf). | ||
|
|
||
| ## PWM Outputs {#pwm_outputs} |
There was a problem hiding this comment.
@vincentpoont2 Can you please sanity check this new section for the Holybro flight controllers. This is produced via a claude produced script. I have got verification that it worked for Ark and Cube, and it seems to work for CUAV.
If it works for yours to I will assume it can be trusted and merge all of this :-)
|
|
||
| FMU Outputs: | ||
|
|
||
| - Outputs 1-4 support [DShot](../peripherals/dshot.md). |
There was a problem hiding this comment.
Pixhawk 4 is STM32F7, not H7, so won't have DShot at all.
There was a problem hiding this comment.
This bit fixed - i.e. tool filters on F7, F4 as not having support. I'm still playing with the words though to indicate support or no support.
| - Outputs 5-11 do not support DShot. | ||
| - Outputs 1-4 support [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry). | ||
|
|
||
| The 11 outputs are in 4 groups: |
There was a problem hiding this comment.
It's 8 outputs and 3 inputs, although I'm not sure where the inputs physically are, maybe on the "CAP & ADC IN" pins.
There was a problem hiding this comment.
I thin this is fixed. It now states
This flight controller supports up to 8 FMU PWM outputs (AUX) and 8 IO PWM outputs (MAIN).
DShot is not supported.
The 8 outputs are in 3 groups:
- Outputs 1-4 in group1 (Timer1)
- Outputs 5-6 in group2 (Timer4)
- Outputs 7-8 in group3 (Timer12)
All outputs within the same group must use the same output protocol and rate.
| - Outputs 1-6 support [DShot](../peripherals/dshot.md). | ||
| - Outputs 7-9 do not support DShot. | ||
| - Outputs 1-6 support [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry). |
There was a problem hiding this comment.
This is also an F7, no DSHot support as of now.
There was a problem hiding this comment.
Also fixed - it recogises not Dshot on F7.
| - Outputs 1-4 in group1 (Timer1) | ||
| - Outputs 5-6 in group2 (Timer4) | ||
| - Outputs 7-8 in group3 (Timer12) | ||
| - Output 9 in group4 (Timer5) |
There was a problem hiding this comment.
Fixed. Globally it now sees that inputs are not outputs. I haven't fixed it up to capture what the inputs are yet though.
| - Outputs 1-8 support [DShot](../peripherals/dshot.md). | ||
| - Outputs 9-12 do not support DShot. | ||
| - Outputs 1-8 support [Bidirectional DShot](../peripherals/dshot.md#bidirectional-dshot-telemetry). |
There was a problem hiding this comment.
Not sure, maybe. I'd have to test.
|
|
||
| ## PWM Outputs {#pwm_outputs} | ||
|
|
||
| This flight controller supports up to 11 FMU PWM outputs (AUX) and 8 IO PWM outputs (MAIN). |
There was a problem hiding this comment.
Should be 8 FMU PWM outputs and 8 IO outs for all Holybro Pixhawk controllers
|
|
||
| ## PWM Outputs {#pwm_outputs} | ||
|
|
||
| This flight controller supports up to 8 FMU PWM outputs (AUX) and 8 IO PWM outputs (MAIN). |
There was a problem hiding this comment.
For 6C Mini, there are only 6 FMU outputs
There was a problem hiding this comment.
@HB-SP-P According to claude:
The board source files (board_config.h and timer_config.cpp) both define 8 FMU channels for the Pixhawk 6C.
IF this is correct, and there are only 6 FMU channels, doesn't that mean the base port code is wrong? Perhaps makes no difference in practice though.
45ab9bd to
e0149f3
Compare
|
/en/flight_controller/corvon_743v1.md
|
|
|
||
| FMU Outputs: | ||
|
|
||
| - Outputs 1-6 support [DShot](../peripherals/dshot.md). |
There was a problem hiding this comment.
Doh. Claude not very bright.
…nerator script docs(update): Regenerate PWM Outputs sections using updated fc_doc_generator script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
70fbd0c to
6b51369
Compare
| - Max input voltage: 5.4V | ||
| - USB Power Input: 4.75\~5.25V | ||
| - Servo Rail Input: 0\~9.9V | ||
| <!-- pwm_outputs-proposed |
There was a problem hiding this comment.
FYI, note screwup in merge.
This adds a section
PWM Outputsto all FC docs for which one can be generated - using #27103This is generated from a Claude-created script. It looks at timers etc to determine the output. It generates some JSON in the file first.
parse_pwm_outputs.py
pwm_outputs_1.md
@dakejahl This all looks pretty sensible and I've had happy results with Claude, but I am not sure how to verify that it hasn't gone off the rails. Could you spot check this - for example look at a few of the Ark and Pixhawk cases?
There are also 4 cases which already had entries, and these have changed. I am presuming as a resutl of your Dhot changes.