/*
 * gram_motor_control.c
 *
 *  Created on: 28. 4. 2014
 *      Author: tomas
 */

#include "arm_math.h"
#include "arm_neon.h"

static uint16_t MotorRotationSpeedSet = 0;
static uint16_t MotorRotationSpeedMeasured = 0;

//exponencial avarage?

inline uint16_t MotorGetSpeedActual(void){

}

inline uint16_t MotorGetSpeedSet(void){

}

inline void MotorSetSpeed(uint16_t new_speed){

}

inline void MotorStop(uint8_t use_brake){

}

void Motor_PID_Task(uint8_t measured_speed){

}

void AnalyzeMotorCurrent(void){

}
