Skip to content

Commit

Permalink
Fix Compiling dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jgauchia committed Sep 1, 2024
1 parent ee7f85a commit 01a045c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
4 changes: 1 addition & 3 deletions lib/gui/src/mainScr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ lv_obj_t *satTrackTile;
lv_obj_t *btnFullScreen;
lv_obj_t *btnZoomIn;
lv_obj_t *btnZoomOut;
lv_obj_t *nameNav;
lv_obj_t *latNav;
lv_obj_t *lonNav;


/**
* @brief Update compass screen event
Expand Down
10 changes: 1 addition & 9 deletions lib/gui/src/mainScr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include "buttonBar.hpp"
#include "renderMaps.hpp"
#include "vectorMaps.hpp"
#include "navWpt.hpp"
#include "addWaypoint.hpp"
#include "navWpt.hpp"

static lv_timer_t *mainTimer; // Main Screen Timer
#define UPDATE_MAINSCR_PERIOD 30 // Main Screen update time
Expand Down Expand Up @@ -74,14 +74,6 @@ extern lv_obj_t *longitude;
extern lv_obj_t *altitude;
extern lv_obj_t *speedLabel;

/**
* @brief Navigation Tile screen objects
*
*/
extern lv_obj_t *nameNav;
extern lv_obj_t *latNav;
extern lv_obj_t *lonNav;

/**
* @brief Satellite Tracking Tile screen objects
*
Expand Down
4 changes: 4 additions & 0 deletions lib/navigation/src/navWpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

#include "navWpt.hpp"

lv_obj_t *nameNav;
lv_obj_t *latNav;
lv_obj_t *lonNav;

/**
* @brief Update navigation screen
*
Expand Down
26 changes: 13 additions & 13 deletions lib/navigation/src/navWpt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
#ifndef NAVWPT_HPP
#define NAVWPT_HPP

// #include "lvgl.h"
// #include "lvglFuncs.hpp"
// #include "tft.hpp"
// #include "gps."
// #include "globalGuiDef.h"
// #include "gpsMath.hpp"
// #include "mainScr.hpp"
#include "lvgl.h"
#include "addWaypoint.hpp"
#include "gpsMath.hpp"

#include <Arduino.h>
#include "tft.hpp"
#include "compass.hpp"
#include "settings.hpp"
#include "globalMapsDef.h"
#include "mapsDrawFunc.h"
char *latFormatString(double lat);
char *lonFormatString(double lon);

/**
* @brief Navigation Tile screen objects
*
*/
extern lv_obj_t *nameNav;
extern lv_obj_t *latNav;
extern lv_obj_t *lonNav;

void updateNavScreen();

Expand Down

0 comments on commit 01a045c

Please sign in to comment.