NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sonar_unittest.cc File Reference
#include <stdint.h>
#include <math.h>
#include "build_config.h"
#include "drivers/sonar_hcsr04.h"
#include "sensors/sonar.h"
#include "unittest_macros.h"
#include "gtest/gtest.h"
Include dependency graph for sonar_unittest.cc:

Macros

#define DECIDEGREES_TO_RADIANS(angle)   (((angle) / 10.0f) * 0.0174532925f)
 

Functions

void sonarInit (const struct sonar_hardware *sonarHardware)
 
void sensorsSet (uint32_t mask)
 

Variables

int32_t measurement
 
int16_t sonarMaxTiltDeciDegrees
 

Macro Definition Documentation

#define DECIDEGREES_TO_RADIANS (   angle)    (((angle) / 10.0f) * 0.0174532925f)

Function Documentation

void sensorsSet ( uint32_t  mask)
void sonarInit ( const struct sonar_hardware *  sonarHardware)

Variable Documentation

int32_t measurement
int16_t sonarMaxTiltDeciDegrees