Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch os compatibility #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions HCKalmanFilter.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -15,8 +14,10 @@ s.author = { "Hypercubesoft" => "[email protected]" }
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.0.0'
s.dependency 'Surge', '~> 2.3.2'

end
end
4 changes: 2 additions & 2 deletions HCKalmanFilter/HCMatrixObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down