FOOT POD support detection

I have one more question today :-) I REALLY appreciate your wisdom and support!!

I can detect a device's support for various sensors. But I can't seem to locate a similar way to see if a device supports a FOOT POD. Any ideas?

  • Simple answer is you really can't when using standard sensors.  If there's no footpod, it gets cadence from the watch.  If the device has OHR, it uses that for HR unless an external HRM is available.  Temperature, on devices other than an edge, you only see that in Sensors if there's a TEMPE.  On the edge it shows the internal temperature value and you can't pair a tempe..

    Sensor.setEnabledSensors() allows you to see what sensors are available and paired (by way if it's return value), so that really doesn't show what can be paired, only what is paired.

  • Ok - thanks again. I'd love to know if a device grabs altitude from a barometer or GPS, but can't tell that either I suspect. 

  • Actually, in Sensor.Info, if there's pressure, there's a baro altimeter, or on devices with SensorHistory, if getPressureHistory, there's a baro. (some watches have this).  SensorHistory is also used for getTemperatureHisory on watches, which also indicates a baro (it's the internal temperature sensor value)

  • how to you invoke sysSensors

    i do the same with info whats the difference

    var info = Activity.getActivityInfo(); 

        if (info has :currentPower) {

    i want to detect speed sensor this way

  • 		
    		//This enables HR, the Tempe and the footpod
    		Sensor.setEnabledSensors([Sensor.SENSOR_HEARTRATE,Sensor.SENSOR_TEMPERATURE,Sensor.SENSOR_FOOTPOD]);
    		//this will set up a callback (about every second) for the sensor data
    		Sensor.enableSensorEvents(method(:sensorEvents));

  • thanks i seems uses a lot of memory