Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

why hcsr04 senser distance sometimes -1? #15

@tobecrazy

Description

@tobecrazy

I use the same code as simple code ,I didn't change the distance of the sensor.
get below logs :
019-12-19 20:17:24.972 300-462/system_process D/WificondControl: Scan result ready event
2019-12-19 20:17:26.985 2233-2233/cn.dbyl.study I/CarSys: sensor changed: [-1.000000]
2019-12-19 20:17:28.996 2233-2233/cn.dbyl.study I/CarSys: sensor changed: [12.862785]
2019-12-19 20:17:31.009 2233-2233/cn.dbyl.study I/CarSys: sensor changed: [-1.000000]
2019-12-19 20:17:33.023 2233-2233/cn.dbyl.study I/CarSys: sensor changed: [11.111112]
2019-12-19 20:17:35.033 2233-2233/cn.dbyl.study I/CarSys: sensor changed: [75.510902]
2019-12-19 20:17:35.035 2233-2233/cn.dbyl.study I/CarSys: sensor changed: [74.051178]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions