Macros | Functions
app_nunchuk.c File Reference
#include "app.h"
#include "ch.h"
#include "hal.h"
#include "hw.h"
#include "mcpwm.h"
#include "commands.h"
#include "utils.h"
#include "timeout.h"
#include <string.h>
#include <math.h>
#include "led_external.h"
#include "datatypes.h"
#include "comm_can.h"

Macros

#define OUTPUT_ITERATION_TIME_MS   1
 
#define MAX_CURR_DIFFERENCE   5.0
 
#define MAX_CAN_AGE   0.1
 
#define RPM_FILTER_SAMPLES   8
 

Functions

void app_nunchuk_configure (chuk_config *conf)
 
void app_nunchuk_start (void)
 
float app_nunchuk_get_decoded_chuk (void)
 
void app_nunchuk_update_output (chuck_data *data)
 

Macro Definition Documentation

#define MAX_CAN_AGE   0.1
#define MAX_CURR_DIFFERENCE   5.0
#define OUTPUT_ITERATION_TIME_MS   1
#define RPM_FILTER_SAMPLES   8

Function Documentation

void app_nunchuk_configure ( chuk_config conf)
float app_nunchuk_get_decoded_chuk ( void  )
void app_nunchuk_start ( void  )
void app_nunchuk_update_output ( chuck_data data)