- Nov 10, 2018
-
-
Daniel Agar authored
-
- Aug 31, 2018
-
-
Beat Küng authored
Generally exit() should not be used on Posix, because it exits the whole program instead of only the task.
-
- Feb 01, 2017
-
-
Beat Küng authored
-
- Jan 15, 2017
-
-
Daniel Agar authored
-
- Jan 10, 2017
-
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
- Oct 29, 2016
-
-
Carlo Wood authored
Using cout drags in std::localeconv which isn't defined on QURT. While this file is also used for POSIX, it doesn't seem to harm much to use printf there as well.
-
Carlo Wood authored
See discussion at https://github.com/PX4/Firmware/issues/5756
-
- Oct 22, 2016
-
-
Carlo Wood authored
app.h, generated from app.h_in, has unnecessary code duplication and isn't a header file (it defines globals, static functions and doesn't have a header guard, moreover, it has a 'using namespace std;'). Because of this, a real headerfile that declares the stuff defined in apps.h was missing leading to even more code duplication: scattered forward declarations in .cpp files and an often repeated type of std::map<std::string, px4_main_t>. This patch moves cmake/qurt/apps.h_in to src/platforms/apps.cpp.in (with some changes) and removes cmake/posix/apps.h_in. Then src/platforms/apps.cpp.in is split into src/platforms/apps.cpp.in and src/platforms/apps.h.in, splitting declarations from definitions. A typedef is defined for the map (apps_map_type). The main difference between cmake/posix/apps.h_in and cmake/qurt/apps.h_in was that the first defined a global 'apps', while qurt stores the apps in QShell. I opted to get rid of the global variable (which are in general evil for various reasons) and used the API of cmake/qurt/apps.h_in where a provided 'apps' map is initialized with a call to init_app_map. Thus removing the existing code duplication.
-