You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`_parameter_update_sub.updated()` tells us if there is _any_ update to the `param_update` uORB message (but not what parameter is affected).
195
195
- If there has been "some" parameter updated, we copy the update into a `parameter_update_s` (`param_update`), to clear the pending update.
196
196
- Then we call `ModuleParams::updateParams()`.
197
-
This "under the hood" updates all parameter attributes listed in our `DEFINE_PARAMETERS` list.
197
+
This "under the hood" updates all parameter attributes listed in our `DEFINE_PARAMETERS` list.
198
198
199
199
The parameter attributes (`_sys_autostart` and `_att_bias_max` in this case) can then be used to represent the parameters, and will be updated whenever the parameter value changes.
200
200
@@ -267,12 +267,12 @@ YAML meta data is intended as a full replacement for the **.c** definitions.
267
267
- An example of YAML definitions being used can be found in the MAVLink parameter definitions: [/src/modules/mavlink/module.yaml](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/mavlink/module.yaml).
268
268
- 通过添加到 cmake 构建系统中注册一个 YAML 文件
269
269
270
-
```cmake
271
-
MODULE_CONFIG
272
-
module.yaml
273
-
```
270
+
```cmake
271
+
MODULE_CONFIG
272
+
module.yaml
273
+
```
274
274
275
-
to the `px4_add_module` section of the `CMakeLists.txt` file of that module.
275
+
to the `px4_add_module` section of the `CMakeLists.txt` file of that module.
Copy file name to clipboardExpand all lines: docs/zh/advanced_config/bootloader_update.md
+56-56Lines changed: 56 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,80 +52,80 @@ The following steps explain how you can "manually" update the bootloader using a
52
52
1. Get a binary containing the bootloader (either from dev team or [build it yourself](#building-the-px4-bootloader)).
53
53
54
54
2. Get a [Debug Probe](../debug/swd_debug.md#debug-probes-for-px4-hardware).
55
-
Connect the probe your PC via USB and setup the `gdbserver`.
55
+
Connect the probe your PC via USB and setup the `gdbserver`.
56
56
57
57
3. Go into the directory containing the binary and run the command for your target bootloader in the terminal:
58
58
59
-
- FMUv6X
59
+
- FMUv6X
60
60
61
-
```sh
62
-
arm-none-eabi-gdb px4_fmu-v6x_bootloader.elf
63
-
```
61
+
```sh
62
+
arm-none-eabi-gdb px4_fmu-v6x_bootloader.elf
63
+
```
64
64
65
-
- FMUv6X-RT
65
+
- FMUv6X-RT
66
66
67
-
```sh
68
-
arm-none-eabi-gdb px4_fmu-v6xrt_bootloader.elf
69
-
```
67
+
```sh
68
+
arm-none-eabi-gdb px4_fmu-v6xrt_bootloader.elf
69
+
```
70
70
71
-
- FMUv5
71
+
- FMUv5
72
72
73
-
```sh
74
-
```
73
+
```sh
74
+
```
75
75
76
-
::: info
77
-
H7 Bootloaders from [PX4/PX4-Autopilot](https://github.com/PX4/PX4-Autopilot) are named with pattern `*._bootloader.elf`.
78
-
Bootloaders from [PX4/PX4-Bootloader](https://github.com/PX4/PX4-Bootloader) are named with the pattern `*_bl.elf`.
76
+
::: info
77
+
H7 Bootloaders from [PX4/PX4-Autopilot](https://github.com/PX4/PX4-Autopilot) are named with pattern `*._bootloader.elf`.
78
+
Bootloaders from [PX4/PX4-Bootloader](https://github.com/PX4/PX4-Bootloader) are named with the pattern `*_bl.elf`.
79
79
80
80
:::
81
81
82
82
4. The _gdb terminal_ appears and it should display the following output:
83
83
84
-
```sh
85
-
GNU gdb (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 8.0.50.20171128-git
86
-
Copyright (C) 2017 Free Software Foundation, Inc.
87
-
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
88
-
This is free software: you are free to change and redistribute it.
89
-
There is NO WARRANTY, to the extent permitted by law.
90
-
Type "show copying" and "show warranty"for details.
91
-
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
92
-
Type "show configuration"for configuration details.
93
-
For bug reporting instructions, please see:
94
-
<http://www.gnu.org/software/gdb/bugs/>.
95
-
Find the GDB manual and other documentation resources online at:
96
-
<http://www.gnu.org/software/gdb/documentation/>.
97
-
For help, type"help".
98
-
Type "apropos word" to search for commands related to "word"...
99
-
Reading symbols from px4fmuv5_bl.elf...done.
100
-
```
84
+
```sh
85
+
GNU gdb (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 8.0.50.20171128-git
86
+
Copyright (C) 2017 Free Software Foundation, Inc.
87
+
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
88
+
This is free software: you are free to change and redistribute it.
89
+
There is NO WARRANTY, to the extent permitted by law.
90
+
Type "show copying" and "show warranty"for details.
91
+
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
92
+
Type "show configuration"for configuration details.
93
+
For bug reporting instructions, please see:
94
+
<http://www.gnu.org/software/gdb/bugs/>.
95
+
Find the GDB manual and other documentation resources online at:
96
+
<http://www.gnu.org/software/gdb/documentation/>.
97
+
For help, type"help".
98
+
Type "apropos word" to search for commands related to "word"...
99
+
Reading symbols from px4fmuv5_bl.elf...done.
100
+
```
101
101
102
102
5. Find your `<dronecode-probe-id>` by running an `ls`commandin the **/dev/serial/by-id** directory.
103
103
104
104
6. Now connect to the debug probe with the following command:
105
105
106
-
```sh
107
-
tar ext /dev/serial/by-id/<dronecode-probe-id>
108
-
```
106
+
```sh
107
+
tar ext /dev/serial/by-id/<dronecode-probe-id>
108
+
```
109
109
110
110
7. Power on the Pixhawk with another USB cable and connect the probe to the `FMU-DEBUG` port.
111
111
112
-
::: info
113
-
If using a Dronecode probe you may need to remove the casein order to connect to the `FMU-DEBUG` port (e.g. on Pixhawk 4 you would do this using a T6 Torx screwdriver).
112
+
::: info
113
+
If using a Dronecode probe you may need to remove the casein order to connect to the `FMU-DEBUG` port (e.g. on Pixhawk 4 you would do this using a T6 Torx screwdriver).
114
114
115
115
:::
116
116
117
117
8. Use the following command to scan for the Pixhawk\`s SWD and connect to it:
118
118
119
-
```sh
120
-
(gdb) mon swdp_scan
121
-
(gdb) attach 1
122
-
```
119
+
```sh
120
+
(gdb) mon swdp_scan
121
+
(gdb) attach 1
122
+
```
123
123
124
124
9. 将二进制文件加载到 Pixhawk 中 :
125
125
126
-
```sh
127
-
(gdb) load
128
-
```
126
+
```sh
127
+
(gdb) load
128
+
```
129
129
130
130
After the bootloader has updated you can [Load PX4 Firmware](../config/firmware.md) using _QGroundControl_.
131
131
@@ -146,8 +146,8 @@ Currently only FMUv2 and some custom firmware includes the desired bootloader.
146
146
147
147
2. [Update the Firmware](../config/firmware.md#custom) with an image containing the new/desired bootloader.
148
148
149
-
::: info
150
-
The updated bootloader might be supplied in custom firmware (i.e. from the dev team), or it or may be included in the latest main branch.
149
+
::: info
150
+
The updated bootloader might be supplied in custom firmware (i.e. from the dev team), or it or may be included in the latest main branch.
151
151
152
152
:::
153
153
@@ -156,7 +156,7 @@ Currently only FMUv2 and some custom firmware includes the desired bootloader.
156
156
4. [Find and enable](../advanced_config/parameters.md) the parameter [SYS_BL_UPDATE](../advanced_config/parameter_reference.md#SYS_BL_UPDATE).
157
157
158
158
5. 重新启动(断开/重新连接飞控板)。
159
-
Bootloader 更新只需要几秒钟即可完成。
159
+
Bootloader 更新只需要几秒钟即可完成。
160
160
161
161
Generally at this point you may then want to [update the firmware](../config/firmware.md) again using the correct/newly installed bootloader.
162
162
@@ -176,25 +176,25 @@ Early FMUv2 [Pixhawk-series](../flight_controller/pixhawk_series.md#fmu_versions
176
176
1. 插入 SD 卡(使能引导日志记录,便于调试任何可能的问题)。
177
177
178
178
2. [Update the Firmware](../config/firmware.md) to PX4 _master_ version (when updating the firmware, check **Advanced settings** and thenselect**Developer Build (master)** from the dropdown list).
179
-
_QGroundControl_ will automatically detect that the hardware supports FMUv2 and install the appropriate Firmware.
179
+
_QGroundControl_ will automatically detect that the hardware supports FMUv2 and install the appropriate Firmware.
If the hardware has the [Silicon Errata](../flight_controller/silicon_errata.md#fmuv2-pixhawk-silicon-errata) it will still be detected as FMUv2 and you will see that FMUv2 was re-installed (in console).
197
-
在这种情况下,您将无法安装 FMUv3 硬件。
195
+
::: info
196
+
If the hardware has the [Silicon Errata](../flight_controller/silicon_errata.md#fmuv2-pixhawk-silicon-errata) it will still be detected as FMUv2 and you will see that FMUv2 was re-installed (in console).
Copy file name to clipboardExpand all lines: docs/zh/advanced_config/esc_calibration.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,29 +94,29 @@ Flight control systems that can't power the autopilot via USB will need a [diffe
94
94
95
95
- The minimum value for a motor (default: `1100us`) should make the motor spin slowly but reliably, and also spin up reliably after it was stopped.
96
96
97
-
You can confirm that a motor spins at minimum (still without propellers) in [Actuator Testing](../config/actuators.md#actuator-testing), by enabling the sliders, and then moving the test output slider for the motor to the first snap position from the bottom.
98
-
当你将滑块从解锁到最小值时,正确的值应该使电机立即和可靠地旋转。
97
+
You can confirm that a motor spins at minimum (still without propellers) in [Actuator Testing](../config/actuators.md#actuator-testing), by enabling the sliders, and then moving the test output slider for the motor to the first snap position from the bottom.
98
+
当你将滑块从解锁到最小值时,正确的值应该使电机立即和可靠地旋转。
99
99
100
-
要找到“最佳”最小值,请将滑块移动到底部(禁用)。
101
-
Then increase the PWM output's `disarmed` setting in small increments (e.g. 1025us, 1050us, etc), until the motor starts to spin reliably (it is better to be a little too high than a little too low).
102
-
Enter this value into the `minimum` setting for all the motor PWM outputs, and restore the `disarmed` output to `1100us`.
100
+
要找到“最佳”最小值,请将滑块移动到底部(禁用)。
101
+
Then increase the PWM output's `disarmed` setting in small increments (e.g. 1025us, 1050us, etc), until the motor starts to spin reliably (it is better to be a little too high than a little too low).
102
+
Enter this value into the `minimum` setting for all the motor PWM outputs, and restore the `disarmed` output to `1100us`.
103
103
104
104
- The maximum value for a motor (default: `1900us`) should be chosen such that increasing the value doesn't make the motor spin any faster.
105
105
106
-
You can confirm that the motor spins quickly at the maximum setting in [Actuator Testing](../config/actuators.md#actuator-testing), by moving the associated test output slider to the top position.
106
+
You can confirm that the motor spins quickly at the maximum setting in [Actuator Testing](../config/actuators.md#actuator-testing), by moving the associated test output slider to the top position.
107
107
108
-
To find the "optimal" maximum value, first move the slider to the bottom (disarmed).
109
-
Then increase the PWM output's `disarmed` setting to near the default maximum (`1900`) - the motors should spin up.
110
-
Listen to the tone of the motor as you increase the PWM maximum value for the output in increments (e.g. 1925us, 1950us, etc).
111
-
The optimal value is found at the point when the sound of the motors does not change as you increase the value of the output.
112
-
Enter this value into the `maximum` setting for all the motor PWM outputs, and restore the `disarmed` output to `1100us`.
108
+
To find the "optimal" maximum value, first move the slider to the bottom (disarmed).
109
+
Then increase the PWM output's `disarmed` setting to near the default maximum (`1900`) - the motors should spin up.
110
+
Listen to the tone of the motor as you increase the PWM maximum value for the output in increments (e.g. 1925us, 1950us, etc).
111
+
The optimal value is found at the point when the sound of the motors does not change as you increase the value of the output.
112
+
Enter this value into the `maximum` setting for all the motor PWM outputs, and restore the `disarmed` output to `1100us`.
113
113
114
114
- The disarmed value for a motor (default: `1000us`) should make the motor stop and stay stopped.
115
115
116
-
You can confirm this in [Actuator Testing](../config/actuators.md#actuator-testing) by moving the test output slider to the snap position at the bottom of the slider and observing that the motor does not spin.
116
+
You can confirm this in [Actuator Testing](../config/actuators.md#actuator-testing) by moving the test output slider to the snap position at the bottom of the slider and observing that the motor does not spin.
117
117
118
-
If the ESC spins with the default value of 1000us then the ESC is not properly calibrated.
119
-
If using an ESC that can't be calibrated, you should reduce the PWM output value for the output to below where the motor does not spin anymore (such as 950us or 900us).
118
+
If the ESC spins with the default value of 1000us then the ESC is not properly calibrated.
119
+
If using an ESC that can't be calibrated, you should reduce the PWM output value for the output to below where the motor does not spin anymore (such as 950us or 900us).
120
120
121
121
::: info
122
122
VTOL and fixed-wing motors do not need any special PWM configuration.
0 commit comments