NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
system_calls_range Struct Reference

#include <system_calls.h>

Data Fields

int(* read_range )(const struct system_calls_range *self, uint16_t deg, uint16_t *range)
 

Detailed Description

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.

Field Documentation

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.


The documentation for this struct was generated from the following file: