NinjaFlight
|
#include <system_calls.h>
Data Fields | |
int(* | read_range )(const struct system_calls_range *self, uint16_t deg, uint16_t *range) |
Interface to a lateral range sensor. If no range sensor is available then this function should return -1. If all directions are not covered then implementation can decide what to return for the directions that are not covered - either an error can be returned or a mix of surrounding points. For example if only four directions are available then read range may return value of the front sensor for a range of angles.
int(* system_calls_range::read_range)(const struct system_calls_range *self, uint16_t deg, uint16_t *range) |
Read range specified by an angle direction. 0 is forward, 90 is to the right etc.