26 for(int16_t i = 0; i < 300; i++ ) {
29 const float new_value = sinf((
float)i * 2 *
M_PI * 5 / 50.0
f);
38 hal.
console->
printf(
"\toutput: %6.4f\n", (
double)filtered_value);
AP_HAL::UARTDriver * console
virtual void delay(uint16_t ms)=0
virtual void printf(const char *,...) FMT_PRINTF(2
A class to implement a second order low pass filter.
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
static LowPassFilter2pFloat low_pass_filter(800, 30)
AP_HAL::Scheduler * scheduler