Skip to content
Snippets Groups Projects
Commit d6dcd677 authored by beuchatp's avatar beuchatp
Browse files

Fixed typos in FAQ

parent 355c36ab
No related branches found
No related tags found
No related merge requests found
......@@ -106,5 +106,5 @@ The per motor command that your algorithm requests from the Crazyflie via settin
### Why does my crazyflie stop and ``Stuent GUI`` freeze when I enable my custom controller?
This is most likely caused by your code causing a segmentation fault, which is commonly caused due to a division by zero. This is often observed in relation to the calculation of sampling time from frequency. You need to think carefully about the order in which variables are instantiated, set to a value, and subsequently used in your code. Specifically, in the template controller code provided contains the ``control_frequency`` variable that is set to a value loaded from the ``.yaml`` parameter file. It is common to instantiate a new variable as ``t_s = 1.0 / control_frequency``. However, if ``ts`` is accidentally used before it is set to this value then it is possible that you are dividing by zero.
This is most likely caused by your code causing a segmentation fault, which is commonly caused due to a division by zero. This is often observed in relation to the calculation of sampling time from frequency. You need to think carefully about the order in which variables are instantiated, set to a value, and subsequently used in your code. Specifically, in the template controller code provided contains the ``control_frequency`` variable that is set to a value loaded from the ``.yaml`` parameter file. It is common to instantiate a new variable as ``t_s = 1.0 / control_frequency``. However, if the ``t_s`` variable is accidentally used before it is set to this value then it is possible that you are dividing by zero.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment