mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 19:43:34 +08:00
POSIX: Added PX4_ROOTFSDIR to file paths
Set a default path relative to current dir for the posix target. Running make posixrun will create the required directoroes and then run mainapp from its build location. PX4_ROOTFSDIR is set to nothing for nuttx. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -49,8 +49,9 @@
|
||||
#include <controllib/blocks.hpp>
|
||||
#include <controllib/block/BlockParam.hpp>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <px4_defines.h>
|
||||
|
||||
#define GEOFENCE_FILENAME "/fs/microsd/etc/geofence.txt"
|
||||
#define GEOFENCE_FILENAME PX4_ROOTFSDIR"/fs/microsd/etc/geofence.txt"
|
||||
|
||||
class Geofence : public control::SuperBlock
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user