Added 2016-2017 rover code, and a ROB assignment

This commit is contained in:
2017-11-29 12:46:14 -08:00
parent 4566d98b5f
commit cb3ce5dafc
1414 changed files with 5874 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
"""
This file contains the map page sub-class
"""
#####################################
# Imports
#####################################
# Python native imports
from PyQt5 import QtCore, QtWidgets, QtGui, QtWebEngine
from PyQt5.QtCore import QUrl
import logging
#####################################
# About Class Definition
#####################################
class Map(QtCore.QObject):
def __init__(self, main_window):
super(Map, self).__init__()
# ########## Reference to top level window ##########
self.main_window = main_window # type: QtWidgets.QMainWindow
# ########## Get the settings instance ##########
self.settings = QtCore.QSettings()
# ########## Get the Pick And Plate instance of the logger ##########
self.logger = logging.getLogger("RoverBaseStation")
# ########## References to GUI Elements ##########
self.maps_view = self.main_window.map_label # type: QtWidgets.QLabel
# ########## Class Variables ##########
# self.map_view_pixmap = QtGui.QPixmap("Resources/Maps/mars_testing_site.png")
#
# self.maps_view.setPixmap(self.map_view_pixmap)
QtWebEngine.QtWebEngine.initialize()
self.map_view = self.main_window.leaflet_map # type: QtWidgets.QQuickView
self.map_view.setSource(QUrl("Resources/UI/map_view.qml"))
# ########## Set defaults on GUI Elements ##########
self.__load_settings()
def __load_settings(self):
self.logger.info("Map Interface Configured")