From d6dcd67768b4822a04fe85969e98e78d72f4d385 Mon Sep 17 00:00:00 2001 From: beuchatp <beuchatp@control.ee.ethz.ch> Date: Tue, 21 Nov 2017 12:20:01 +0100 Subject: [PATCH] Fixed typos in FAQ --- pps_wiki/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pps_wiki/faq.md b/pps_wiki/faq.md index a5db9777..b939e248 100644 --- a/pps_wiki/faq.md +++ b/pps_wiki/faq.md @@ -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. -- GitLab