How to get the temperature, light intensity, altitude height, proximity, rotation_matrix and vector of rotation?

Can get acceleration, azimuth, pitch, roll, and gps information.But,Could not get temperature, light intensity, altitude height, proximity, rotation_matrix, and rotation vector.

Can you help me to figure out that it is supposed to work or not?Whenever tried to get these values, always show "zero".My code is at below. Does something wrong or just these valuses do not support in the Native SDK 2.0 beta 3?

if (sensor_is_supported(SENSOR_TYPE_TEMPERATURE)) {        /*         * If the device does not support accelerometer then notify the user,         * clean up and exit         */        sensor_set_rate(SENSOR_TYPE_TEMPERATURE, SENSOR_RATE);        sensor_request_events(SENSOR_TYPE_TEMPERATURE);

    }temperature= sensor_event_get_temperature(event);fprintf(f,"%7.3f\n", temperature);fprintf(f,"%ld%d, %7.3f

Thank your attention.
sensor_event_get_rotation_vector

sensor_event_get_illuminance
sensor_event_get_rotation_matrix

sensor_event_get_proximity
sensor_event_get_altitude

SENSOR_TYPE_MAGNETOMETER = 1
      SENSOR_TYPE_GYROSCOPE = 2
      SENSOR_TYPE_ALTIMETER = 4
      SENSOR_TYPE_TEMPERATURE = 5
      SENSOR_TYPE_PROXIMITY = 6
      SENSOR_TYPE_LIGHT = 7
      SENSOR_TYPE_GRAVITY = 8
      SENSOR_TYPE_LINEAR_ACCEL = 9
      SENSOR_TYPE_ROTATION_VECTOR = 10
      SENSOR_TYPE_ROTATION_MATRIX = 11

There's no proximity sensor, and I suspect that the light sensor is not exposed through this API to our applications immediately, similar to what you see probably with the temperature probe. There is also no separate altitude sensor. GPS provides elevation information. Some devices (Xoom?) use something like air pressure to measure altitude but the PlayBook is not that.

Tags: BlackBerry Developers

Similar Questions

  • M30X-118: how to get the temperature of the processor?

    Hello

    I would like to ask how can I get a cpu temperature in Windows XP.
    I tried some utilities like MotherBoard Monitor and MobileMeter, but they show nothing. In MobileMeter, I have only the cpu frequency and HDD temp.

    Any ideas?

    Thanks in advance

    Hi it tries to download this software CPUCOOL 7.3.6 from the web site: WWW.CLICK-NOW.COM(free dowload) and then tell me the result...

  • To get the temperature of the CPU

    Hello

    How to get the temperature of the CPU by using the vSphere API?

    Thanks and greetings

    Louis had mame fatim

    Try as a starting point: VMware VI (vSphere) Java API and blog doublecloud.org

    In additional, generating code for vsphere Java API was declared recently announcing the Code generator for vSphere Java API

  • LaserJet 1102W Pro - can't get the blue light at all

    I do the initial installation of a Pro LaserJet 1102W.  I created another without difficulty.  After a reset to the default values and an update of the firmware, I can not even a flashing blue light indicating the necessary wireless configuration.  Tried with and without USB cable.  I get the status lights will blink for 10 seconds and then back to solid green light.  I tell myself that I need the blue light blinks then I can connect via Wi - Fi to set up.

    I believe on this model if you press the wireless to the printer and the (protected web configuration) WPS button our router that they should connect automatically. Then, you can use the installation package and the type of connection appropreiate for the printer on the computer.

    Is there anything else that could help you?

    Happy holidays!

  • How to get the Base name of the executable process

    Hi all
    I have a problem for the creation of SQL AnyWhere Plugin (Database Plugin). In this regard, ServerDetector class long pids [] = getPids ("State.Name.eq =?"). Instead of question mark that I place. And how to get the name of this executable process.

    Thanks and greetings
    Florent K Reddy

    Take a look at the doc following if you have not already:

    http://support.Hyperic.com/Confluence/display/Sigar/PTQL

    State.Name is the name of the base of the executable of the process, such as "dbsrv9.

    On 16 May 2007, at 23:24, fredo Reddy wrote:

    Hi all
    I have a problem for the creation of SQL AnyWhere Plugin (Database Plugin). In this regard, ServerDetector class long pids [] = getPids ("State.Name.eq =?"). Instead of question mark that I place. And how to get the name of this executable process.

    Thank you & best regards
    Florent K Reddy

  • How to get the files to and from the host

    Is there something that I can read which explains how to get the (ftp, memory stick or other) files to and from the host?

    Sorry if this is a noob question, I looked but could not find something specific...

    There are many ways of doing so:

    1 activate not supported ssh and scp use

    2. use VI Client access to your storage space on configuration files and server transfer

    3 configure the iSCSI or NAS to deal directly

  • How to get the name of the particular index table option.

    Hello

    Can any body tell how to get the name of the item to a particular array.i have a table within array.i must compare the name of Francesca in particular key.here is the table.

    myArray= Array (@43b1e09)
    [0] = object (@42b33f9)
    Testing_1 = Array (@4428821)
    [0] = object (@43adc19)
    choice_id = '0 '.
    delete = "N".
    DownloadURL = "xyz".
    selected = 'Y '.
    translation = "2_486."
    length = 1
    length = "N".
    Editable = 'Y '.
    field_id = '388 '.
    LanguageLink = 'Y '.
    linked_definition_id = null
    multiple values = "N".
    name = "Photo".
    otheroption = "N".
    photovitlink = object (@43ad0d9)
    required = "N".
    step = '1 '.
    translation = "Photo".
    visible = 'Y '.
    [1] = object (@43ad5d9)
    [2] = object (@4490089)

    Here is the structure of the table I get server side.i give table name of result as table myArray.This have several child as an object of object.each having .i table (Testing_1 in the first case) must get the name of this Testing_1 table and compare with my sort key that I perform an operation. But I am unable to get the name of this Testing_1 array(Since_it_is_dynamic_so_this_name_changes_some_times).can a body guide me how to get the name of this table.



    Thanks and greetings

    Vineet Sharma

    Hi Vineet Osho,

    You can browse your object using the loop and you can get the name of the table... as below...

    for each (var obj:Object in myArray)
    {
    for (var str:String in obj)
    {
    If (obj [str] is array)
    {
    var arrayName:String = str;
    }
    }
    }

    Thank you

    Jean Claude

  • I got the photography for 9.99 per month plan and it says tha ti get the ambient light and Photoshop, but when I open Photoshop it is a trial version and when I opened the room light is the full version. How doe I get my fill of Photoshop version?

    I got the photography for 9.99 per month plan and it says tha ti get the ambient light and Photoshop, but when I open Photoshop it is a trial version and when I opened the room light is the full version. How doe I get my fill of Photoshop version?

    Please take a look at the suggestions found here:

    FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

  • My airport express base station works but the yellow light flashes constantly how can I get the green light?

    Yellow light blinking on my airport express and I can not get the green light flashes. Internet still works well.

    When the amber light is flashing, open AirPort Utility

    • Click on the AirPort router
    • Look for the Status parameter in the small window that appears
    • Click on the little orange dot here and another window will open to explain what might be the 'question '.
  • During the import of my camera or a file in Lightroom 5 my pictures are too exposed by 1-2 stops, while they are well exposed on the screen of the device. How to get the "right-exposed images on the screen?

    During the import of my camera or a file in Lightroom 5 my pictures are too exposed by 1-2 stops, while they are well exposed on the screen of the device. How to get the "right-exposed images on the screen?

    There is an option in your Lightroom preferences, under the general tab, "treat JPEG files next to raw in form of images". If you have this option is checked, then Lightroom will import and view your first two and JPEG files. You use the active D-lighting on your camera? If you are, you must disable this feature.

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

  • How to get the podcast of the website on the phone

    I was told to put that feed into the PODCASTING app on your iOS device.

    The site in question is https://randirhodes.com/how-to-get-the-podcast/

    I paid for a premium podcast, now how o I get this podcast to appear on my iphone 6 s more in the podcast app?

    Podcasts > select my Podcasts > press the '+' > Add Podcast > paste the URL that you got on the site.

  • How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be.

    How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be. I started with the last update that I rebooted.

    Hello
    to change the homepage when opening firefox-press 'Alt' and click on tools-> Options.

    Main menu, you can change the URL.

    If the problem persists, you can follow these simple steps:

    Enter about: config in the address bar and press ENTER. Accept the message of 'dragons' to see the Advanced preferences screen. Use the above search box to enter the below pref.

    You can assign an empty string to stop your Firefox to retrieve "extracts" and brandLogo changes the browser.aboutHomeSnippets.updateUrl pref. Right-click this pref and select Edit then clear the value as pref in the box that appears, and then click OK. Who will also disable "snippets" that appear under the container of the research on the default home page.

    Then you must open the folder of your profile, via help > Troubleshooting Information > profile folder > > button view folder. Then close Firefox. Your profile file open with Firefox closed (Firefox '3-bar' menu key > exit/Quit), wait or two minutes, then remove the storage\moz-safe-about + home folder in the Firefox profile folder to remove the brandLogo and stored in IndexedDB code snippets to make Firefox use the default brandLogo and a defined default code snippet.

    If you later change your mind about these changes, you can reset the pref browser.aboutHomeSnippets.updateUrl via the context menu and Reset allows to retrieve the default value using the storage\moz-chest-fort-about + home folder again.

  • where and how to get the new Firefox add - one of who is spying on us. Please mail to...

    Heard speak adds the new on Fire Fox. Where and how to get the new Firefox add - one of who is spying on us. Please mail to maheshubhayakar at rediffmail.com

    edited by email address - moderator

    It is helpful if you provide a link to the article you were reading.

  • How can I get the tabs to go on a single line and a menu of Firefox?

    Firefox allows to have 2 lines above - Firefox menu with tabs and more and another line of the navigation toolbar. during the installation of some programs online, Firefox now have 3 lines at the top, with the Firefox menu on an entire line, the 2nd line of tabs and 3rd line of navigation toolbar. How can I get the tabs to go on a single line and a menu of Firefox?

    With the current versions of Firefox, you can choose to use the menu of Firefox (orange in windows; gray Linux) button at the left end of the Windows title bar or bar menus familiar as in earlier versions. The Firefox button is displayed by default only in Windows Vista and Windows 7, but you can turn on or off or switch between the two or temporarily show the menu bar when the Firefox button is displayed.

    If you chose to use the Firefox button and you use the default tabs on top, the tab bar will move to the title bar with the Firefox button only when you are to maximize window (the ' square' the middle button in the upper right corner of the Windows standard application window). Other selected toolbars will be displayed below that (bar Navigation, Bookmarks Toolbar and the toolbars you add via Add - ons).

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

Maybe you are looking for