Replies: 1 comment 3 replies
-
First, determine the drone’s flight mode—whether it's hover mode or trajectory tracking mode. The principle behind trajectory tracking is essentially hovering at each waypoint in sequence, so during early stages of debugging, it’s fine to focus solely on hover mode. The logic of hover mode works like this: the drone continuously receives position and velocity data. Then, we send it the desired hover position once and arm the drone. Once armed, the drone starts up, and the PID controller kicks in. The position and velocity data serve as the PID inputs, and the controller outputs an “acceleration value” in the range of -1 to 1. This value is then scaled (multiplied by 811 and offset by 992) to generate the channel values observed in Betaflight. (Note: Betaflight’s midpoint is 1000, so there might be minor differences.) Normally, the PID controller gradually adjusts the output until the drone stabilizes and hovers steadily at the target point. If the channel values are too high, there could be a few possible reasons: Roughly speaking, if we only consider the proportional term of the PID controller (which dominates during initial response), the channel value is proportional to k × error, which explains the first two issues. Also, I suggest carefully checking your positioning accuracy, because reliable positioning is the foundation for stable hovering. Here are a few debugging tips: You're very close to achieving stable hover—wishing you the best of luck! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions