View my account

Unable to get ASIC and Project temperature for D435i cameras

Comments

1 comment

  • MartyG

    Hi Manish Kochhal

    I examined your code carefully.  I would recommend moving your Else statement to the line directly above the Catch code, so that the Else activates if sensor.supports is found to be false.

     

    if (sensor.supports(RS2_OPTION_ASIC_TEMPERATURE)) {
    try
    {
    double asic_temperature = sensor.get_option(RS2_OPTION_ASIC_TEMPERATURE);
    INFO << rs_serial_nbr << ": ASIC temperature " << asic_temperature;
    // D435i's official operating temperature is 0-35 degrees C
    if(asic_temperature > 35) {
    WARNING << rs_serial_nbr << ": High ASIC temperature " << asic_temperature;
    }
    }}

     

    else {

    WARNING << rs_serial_nbr << ": sensor does not support ASIC temperature option";
    }

     

    catch(const std::exception& e)
    {
    WARNING << rs_serial_nbr << ": Failed checking for ASIC temperature." << e.what();
    }

     

    You may also have one too many closing brackets at your Else statement, so I suggest trying else { for that line instead of } else {

    0
    Comment actions Permalink

Please sign in to leave a comment.