NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
acceleration.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <platform.h>
#include "build_config.h"
#include "common/axis.h"
#include "config/config.h"
#include "drivers/sensor.h"
#include "drivers/accgyro.h"
#include "sensors/battery.h"
#include "sensors/boardalignment.h"
#include "config/feature.h"
#include "acceleration.h"
#include "system_calls.h"
Include dependency graph for acceleration.c:

Macros

#define CALIBRATING_ACC_CYCLES   400
 

Functions

void ins_acc_init (struct ins_acc *self, const struct sensor_trims_config *trims, const struct accelerometer_config *config)
 
void ins_acc_process_sample (struct ins_acc *self, int32_t x, int32_t y, int32_t z)
 
void ins_acc_calibrate (struct ins_acc *self)
 
bool ins_acc_is_calibrated (struct ins_acc *self)
 

Macro Definition Documentation

#define CALIBRATING_ACC_CYCLES   400

Function Documentation

void ins_acc_calibrate ( struct ins_acc self)
void ins_acc_init ( struct ins_acc self,
const struct sensor_trims_config trims,
const struct accelerometer_config config 
)
bool ins_acc_is_calibrated ( struct ins_acc self)
void ins_acc_process_sample ( struct ins_acc self,
int32_t  x,
int32_t  y,
int32_t  z 
)