- Call flightController.setStateCallback to register a callback of flightControllerState.
- Call flightControllerState.isUltrasonicBeingUsed to get whether the aircraft is using ultrasonic modules.
- Call flightControllerState.getUltrasonicHeightInMeters to get the ultrasonic readings in height, valid for 5m.
Note: Some aircraft is using infra-red module instead of ultrasonic module, you can call the same methods.
Comments
0 comments
Please sign in to leave a comment.