|
From: | Gautier Hattenberger |
Subject: | Re: [Paparazzi-devel] Use of State Variables in Flight Plan Exceptions |
Date: | Thu, 03 Sep 2015 22:00:42 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 |
Hi, The easiest trick is to do this in the header section at the beginning of the flight plan: <header> #define GroundSpeed() (*stateGetHorizontalSpeedNorm_f()) </header> and the use GroundSpeed() in the blocks. On the long term, we already discussed I think that all state interface functions should finally return structures or simple types and not pointers, especially for RTOS integration where mutex would be used. Gautier Le 03/09/2015 10:50, Felix Ruess a
écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |