Questions tagged [cmaltimeter]

CMAltimeter is a class added in iOS 8 that delivers altitude-related data from devices that support the feature (starting with the iPhone 6).

Use a CMAltimeter object to initiate the delivery of altitude-related data to your app. Altitude events reflect the change in the current altitude, not the absolute altitude. So a hiking app might use this object to track the user’s elevation gain over the course of a hike. Added in iOS 8.

14 questions
6
votes
0 answers

Changing Updating Frequency of CMAltimeter

I am working on an app that uses the CMAltimeter class. I would like to retrieve altitude values quicker than the default value (default seems to be about once every second). How can I change the frequency? Will I need to use NSTimers/Multiple…
user3647894
  • 559
  • 1
  • 4
  • 28
5
votes
3 answers

How to use barometer of iPhone6 with new APIs available in iOS 8?

I am looking for, how to use barometer apis which are available in iOS 8 for iPhone6. I have used following code if([CMAltimeter isRelativeAltitudeAvailable]){ CMAltimeter *altimeter = [[CMAltimeter alloc] init]; [altimeter…
abhishekkharwar
  • 3,529
  • 2
  • 18
  • 31
4
votes
0 answers

CMAltimeter in the background

The background has been ask million here but it is still my problem. In my app I want to track user altitude and pressure in the background by CMAltimeter. I want to to use Location Update but the change Apple reject my app very high.
DzungPV
  • 1,561
  • 3
  • 18
  • 24
3
votes
2 answers

CMAltimeter callback never fires

Using my 6+ I've been trying to read the relative altitude and pressure using CoreMotion's new CMAltimeter. However the callback is never firing. I have a very similar setup which instead uses the accelerometers, gyros, and magnetometers. They all…
VaporwareWolf
  • 10,143
  • 10
  • 54
  • 80
2
votes
0 answers

How can I access raw data from the altimeter sensor on apple watch?

I am trying to get the data from the barometric altimeter sensor on apple watch. I tried using the apple documentation (it worked for accelerometer and gyroscope) but when I tried to use the methods documented in the CMAltimeter class, it did not…
Joy
  • 19
  • 1
1
vote
1 answer

iOS Barometer SeaLevel Height

Im Making an iOS App for Mountain Climbers to get the Height from SeaLevel , Currently Im stuck here. Im using iOS Barometer to get the details , but it only gives Pressure,Relative altitude and timestamp . is there a calculation to get the height…
Nan
  • 35
  • 6
0
votes
1 answer

CMAltimeter detect take off and landing

I would like to know how I can create a notification when the altitude is increasing and a notification when the altitude decreasing. I already tried this code but I've no idea what to do next. - (CMAltimeter *)altimeter { if (!_altimeter) { …
pilou
  • 75
  • 1
  • 7
0
votes
1 answer

Issue retrieving relative Altitude Information on Apple Watch 3

I would like to log relative altitude changes on apple watch 3 using the CMAltimeter class. On simulator the isRelativeAltitudeAvailable() function returns false, so I tested on real device. Here I noticed, that information is provided, but by far…
gori
  • 41
  • 1
  • 7
0
votes
2 answers

how to use altimeter ? (increase & decreases method)

I am a pilot and ios developer. I would like to know if it is possible to create two methods that can send notifications when the altitude increases and another when the altitude decreases (takeoff and landing). I have already created a code that…
user7275929
0
votes
1 answer

Measure iPhone altitude whilst running in background

I am using Swift to write an iPhone App which tracks an aircraft taking off and landing (as indicated by a change in air pressure). For this I need to measure the iPhone's air pressure whilst it is running in the background. I need to measure the…
0
votes
1 answer

CMAltimeter and [CMAltimeter isRelativeAltitudeAvailable] not work on Ipad iOS 10

I have and app access barometer on iPhone and Ipad, when Apple release iOS 10 some iPad user report that app stop working. I tested on my iPhone 6s iOS 10 and it still work fine. Search Apple Dev, no API change. In the app i use below code to get…
DzungPV
  • 1,561
  • 3
  • 18
  • 24
0
votes
1 answer

Writing iPhone 6 altimeter readings to an array class property inside queue block?

New iOS developer here. I've been searching for an answer to this in documentation on blocks and the altimeter, but I'm coming up short. I assume there's some simple thing I'm missing, but can't figure it out. I have a custom class called…
surrix
  • 11
  • 2
0
votes
3 answers

CMAltimeter odd data

I have an application recording data from the CMAltimeter startRelativeAltitudeUpdatesToQueue: block. Recording is fine but some data are odd. Here is the very simple snippet i use for recording. NSOperationQueue *queue = [[NSOperationQueue alloc]…
Appsido
  • 89
  • 10
-2
votes
1 answer

I want to calculate stair steps count using pressure sensor and pedometer

guys i want to make wearable device which have provision of stairs steps count. i have LPS25HB (pressure sensor), LSM6DS3 (accelerometer) pressure sensor give the altimeter and accelerometer give the steps count. but my pressure sensor is one type…
Kalarav Parmar
  • 304
  • 1
  • 11