NinjaFlight
|
#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"
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) |
#define CALIBRATING_GYRO_CYCLES 1000 |
void ins_gyro_calibrate | ( | struct ins_gyro * | self | ) |
void ins_gyro_init | ( | struct ins_gyro * | self, |
const struct gyro_config * | config | ||
) |
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 | ||
) |
void ins_gyro_set_filter_hz | ( | struct ins_gyro * | self, |
uint16_t | hz | ||
) |