forked from f1xpl/openauto
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Bluetooth fixes @presslab-us Added local GPS device support @presslab-us
- Loading branch information
Showing
28 changed files
with
665 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# | ||
# This file is part of openauto project. | ||
# Copyright (C) 2018 f1x.studio (Michal Szwaj) | ||
# | ||
# openauto is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
|
||
# openauto is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with openauto. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
if (GPS_LIBRARIES AND GPS_INCLUDE_DIRS) | ||
# in cache already | ||
set(GPS_FOUND TRUE) | ||
else (GPS_LIBRARIES AND GPS_INCLUDE_DIRS) | ||
find_path(GPS_INCLUDE_DIR | ||
NAMES | ||
gps.h | ||
PATHS | ||
/usr/include | ||
/usr/local/include | ||
/opt/local/include | ||
/sw/include | ||
PATH_SUFFIXES | ||
gps | ||
) | ||
|
||
find_library(GPS_LIBRARY | ||
NAMES | ||
gps | ||
PATHS | ||
/usr/lib | ||
/usr/local/lib | ||
/opt/local/lib | ||
/sw/lib | ||
) | ||
|
||
set(GPS_INCLUDE_DIRS | ||
${GPS_INCLUDE_DIR} | ||
) | ||
set(GPS_LIBRARIES | ||
${GPS_LIBRARY} | ||
) | ||
|
||
if (GPS_INCLUDE_DIRS AND GPS_LIBRARIES) | ||
set(GPS_FOUND TRUE) | ||
endif (GPS_INCLUDE_DIRS AND GPS_LIBRARIES) | ||
|
||
if (GPS_FOUND) | ||
if (NOT gps_FIND_QUIETLY) | ||
message(STATUS "Found gps:") | ||
message(STATUS " - Includes: ${GPS_INCLUDE_DIRS}") | ||
message(STATUS " - Libraries: ${GPS_LIBRARIES}") | ||
endif (NOT gps_FIND_QUIETLY) | ||
else (GPS_FOUND) | ||
if (gps_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find gps") | ||
endif (gps_FIND_REQUIRED) | ||
endif (GPS_FOUND) | ||
|
||
mark_as_advanced(GPS_INCLUDE_DIRS GPS_LIBRARIES) | ||
|
||
endif (GPS_LIBRARIES AND GPS_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* This file is part of openauto project. | ||
* Copyright (C) 2018 f1x.studio (Michal Szwaj) | ||
* | ||
* openauto is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* openauto is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with openauto. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <f1x/openauto/autoapp/Configuration/IConfiguration.hpp> | ||
#include <f1x/openauto/autoapp/Service/IService.hpp> | ||
#include <boost/asio/io_service.hpp> | ||
#include <f1x/aasdk/Messenger/IMessenger.hpp> | ||
|
||
namespace f1x | ||
{ | ||
namespace openauto | ||
{ | ||
namespace autoapp | ||
{ | ||
namespace service | ||
{ | ||
|
||
class WifiService: public IService, public std::enable_shared_from_this<WifiService> | ||
{ | ||
public: | ||
typedef std::shared_ptr<WifiService> Pointer; | ||
|
||
WifiService(configuration::IConfiguration::Pointer configuration); | ||
|
||
void start() override; | ||
void stop() override; | ||
void pause() override; | ||
void resume() override; | ||
void fillFeatures(aasdk::proto::messages::ServiceDiscoveryResponse& response) override; | ||
|
||
private: | ||
using std::enable_shared_from_this<WifiService>::shared_from_this; | ||
configuration::IConfiguration::Pointer configuration_; | ||
}; | ||
|
||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.