NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gyro.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <platform.h>
#include "common/axis.h"
#include "common/maths.h"
#include "common/filter.h"
#include "config/config.h"
#include "drivers/sensor.h"
#include "drivers/accgyro.h"
#include "drivers/gyro_sync.h"
#include "boardalignment.h"
#include "gyro.h"
Include dependency graph for gyro.c:

Macros

#define CALIBRATING_GYRO_CYCLES   1000
 

Functions

void ins_gyro_init (struct ins_gyro *self, const struct gyro_config *config)
 
void ins_gyro_process_sample (struct ins_gyro *self, int32_t x, int32_t y, int32_t z)
 
void ins_gyro_set_filter_hz (struct ins_gyro *self, uint16_t hz)
 
void ins_gyro_calibrate (struct ins_gyro *self)
 
bool ins_gyro_is_calibrated (struct ins_gyro *self)
 

Macro Definition Documentation

#define CALIBRATING_GYRO_CYCLES   1000

Function Documentation

void ins_gyro_calibrate ( struct ins_gyro self)

Here is the call graph for this function:

void ins_gyro_init ( struct ins_gyro self,
const struct gyro_config config 
)

Here is the call graph for this function:

bool ins_gyro_is_calibrated ( struct ins_gyro self)
void ins_gyro_process_sample ( struct ins_gyro self,
int32_t  x,
int32_t  y,
int32_t  z 
)

Here is the call graph for this function:

void ins_gyro_set_filter_hz ( struct ins_gyro self,
uint16_t  hz 
)

Here is the call graph for this function: