Skip to content

Commit

Permalink
Merge branch 'linker' into 'main'
Browse files Browse the repository at this point in the history
Fixing linker issues in older versions of c++

See merge request bolderflight/software/ublox!15
  • Loading branch information
flybrianfly committed Jan 1, 2022
2 parents 09027e1 + dea32ad commit e6c86fe
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v4.0.1
- Fixing issue with linker in versions older than C++17

## v4.0.0
- Merging ublox and ublox-arduino
- Using mcu_support repo for CMake builds
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (DEFINED MCU)
set(CMAKE_TOOLCHAIN_FILE "${mcu_support_SOURCE_DIR}/cmake/cortex.cmake")
# Project information
project(Ublox
VERSION 4.0.0
VERSION 4.0.1
DESCRIPTION "uBlox UBX sensor driver"
LANGUAGES CXX
)
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name=Bolder Flight Systems UBLOX
version=4.0.0
version=4.0.1
author=Brian Taylor <[email protected]>
maintainer=Brian Taylor <[email protected]>
sentence=Library for communicating with uBlox GPS receivers.
paragraph=This library communicates with the uBlox receivers using the UBX protocol. This approach allows for very efficiently collecting GPS data that most users need.
category=Sensors
url=https://github.com/bolderflight/ublox
architectures=*
includes=ublox.h
includes=ubx.h
depends=Bolder Flight Systems Units, Bolder Flight Systems Eigen
20 changes: 20 additions & 0 deletions src/ubx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@

namespace bfs {

constexpr uint8_t Ubx::UBX_HEADER_[];
constexpr uint8_t UbxCfgCfg::cls;
constexpr uint8_t UbxCfgCfg::id;
constexpr uint16_t UbxCfgCfg::len;
constexpr uint8_t UbxCfgMsg::cls;
constexpr uint8_t UbxCfgMsg::id;
constexpr uint16_t UbxCfgMsg::len;
constexpr uint8_t UbxCfgPrtReq::cls;
constexpr uint8_t UbxCfgPrtReq::id;
constexpr uint16_t UbxCfgPrtReq::len;
constexpr uint8_t UbxCfgPrt::cls;
constexpr uint8_t UbxCfgPrt::id;
constexpr uint16_t UbxCfgPrt::len;
constexpr uint8_t UbxCfgRate::cls;
constexpr uint8_t UbxCfgRate::id;
constexpr uint16_t UbxCfgRate::len;
constexpr uint8_t UbxCfgNav5::cls;
constexpr uint8_t UbxCfgNav5::id;
constexpr uint16_t UbxCfgNav5::len;

bool Ubx::AutoBegin() {
/* Find the baud rate */
if (AutoBaud() < 0) {return false;}
Expand Down

0 comments on commit e6c86fe

Please sign in to comment.