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

Add speed #30

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
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.hypercubesoft.HCKalmanFilter;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -420,7 +420,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.hypercubesoft.HCKalmanFilter;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>HCKalmanFilter Sample.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
"filename" : "[email protected]",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
},
{
"size" : "60x60",
"idiom" : "car",
Expand Down Expand Up @@ -190,6 +195,20 @@
"role" : "appLauncher",
"subtype" : "38mm"
},
{
"size" : "44x44",
"idiom" : "watch",
"scale" : "2x",
"role" : "appLauncher",
"subtype" : "40mm"
},
{
"size" : "50x50",
"idiom" : "watch",
"scale" : "2x",
"role" : "appLauncher",
"subtype" : "44mm"
},
{
"size" : "86x86",
"idiom" : "watch",
Expand All @@ -203,6 +222,18 @@
"scale" : "2x",
"role" : "quickLook",
"subtype" : "42mm"
},
{
"size" : "108x108",
"idiom" : "watch",
"scale" : "2x",
"role" : "quickLook",
"subtype" : "44mm"
},
{
"idiom" : "watch-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
4 changes: 2 additions & 2 deletions HCKalmanFilter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|

s.platform = :ios
s.name = "HCKalmanFilter"
s.version = "1.2.2"
s.version = "1.2.3"
s.summary = "HCKalmanFilter is Swift implementation of Kalman filter algorithm intended to solve problem with GPS tracking"

s.description = <<-DESC
Expand All @@ -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.0'

end
4 changes: 2 additions & 2 deletions HCKalmanFilter/HCKalmanAlgorithm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ open class HCKalmanAlgorithm
let lon = xk1.matrix[2,0]
let altitude = xk1.matrix[4,0]

let kalmanCLLocation = CLLocation(coordinate: CLLocationCoordinate2D(latitude: lat,longitude: lon), altitude: altitude, horizontalAccuracy: self.previousLocation.horizontalAccuracy, verticalAccuracy: self.previousLocation.verticalAccuracy, timestamp: previousMeasureTime)
let kalmanCLLocation = CLLocation(coordinate: CLLocationCoordinate2D(latitude: lat,longitude: lon), altitude: altitude, horizontalAccuracy: self.previousLocation.horizontalAccuracy, verticalAccuracy: self.previousLocation.verticalAccuracy, course:self.previousLocation.course, speed:self.previousLocation.speed, timestamp: previousMeasureTime)

return kalmanCLLocation
}
}
5 changes: 2 additions & 3 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,12 +214,11 @@ 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

return result
}
}