From bc781ec7097f50aa2ec876f6f370f0df674e91b4 Mon Sep 17 00:00:00 2001 From: Amaury DAVID Date: Fri, 15 Jul 2022 10:00:24 +0200 Subject: [PATCH 1/2] Updated to Surge 2.3.2. --- HCKalmanFilter.podspec | 4 ++-- HCKalmanFilter/HCMatrixObject.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HCKalmanFilter.podspec b/HCKalmanFilter.podspec index 017765f..84dbca5 100644 --- a/HCKalmanFilter.podspec +++ b/HCKalmanFilter.podspec @@ -17,6 +17,6 @@ s.source = { :git => "https://github.com/Hypercubesoft/HCKalmanFilter. s.ios.deployment_target = "9.0" s.source_files = "HCKalmanFilter/*" -s.dependency 'Surge', '~> 2.0.0' +s.dependency 'Surge', '~> 2.3.2' -end \ No newline at end of file +end diff --git a/HCKalmanFilter/HCMatrixObject.swift b/HCKalmanFilter/HCMatrixObject.swift index d99d301..2f74e92 100644 --- a/HCKalmanFilter/HCMatrixObject.swift +++ b/HCKalmanFilter/HCMatrixObject.swift @@ -173,7 +173,7 @@ class HCMatrixObject { let result = HCMatrixObject(rows: left.rows, columns: left.columns) - result.matrix = Surge.add(left.matrix, y: right.matrix) + result.matrix = Surge.add(left.matrix, right.matrix) return result } @@ -214,7 +214,7 @@ class HCMatrixObject /// - returns: result HCMatrixObject object of multiplication operation static func *(left:HCMatrixObject, right:HCMatrixObject) -> HCMatrixObject? { - let resultMatrix = Surge.mul(left.matrix, y: right.matrix) + let resultMatrix = Surge.mul(left.matrix, right.matrix) let result = HCMatrixObject(rows: resultMatrix.rows,columns: resultMatrix.columns) result.matrix = resultMatrix From 6f79f8e9d1cc69d81eab316d484d3e7215b2e5bc Mon Sep 17 00:00:00 2001 From: Amaury DAVID Date: Fri, 15 Jul 2022 10:00:40 +0200 Subject: [PATCH 2/2] Added support for watchOS in podspec. --- HCKalmanFilter.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HCKalmanFilter.podspec b/HCKalmanFilter.podspec index 84dbca5..c0c676f 100644 --- a/HCKalmanFilter.podspec +++ b/HCKalmanFilter.podspec @@ -1,6 +1,5 @@ Pod::Spec.new do |s| -s.platform = :ios s.name = "HCKalmanFilter" s.version = "1.2.2" s.summary = "HCKalmanFilter is Swift implementation of Kalman filter algorithm intended to solve problem with GPS tracking" @@ -15,6 +14,8 @@ s.author = { "Hypercubesoft" => "office@hypercubesoft.com" } s.source = { :git => "https://github.com/Hypercubesoft/HCKalmanFilter.git", :tag => "#{s.version}"} s.ios.deployment_target = "9.0" +s.watchos.deployment_target = '3.0' + s.source_files = "HCKalmanFilter/*" s.dependency 'Surge', '~> 2.3.2'