/* 
 * File:   CalibrationConstants.h
 * Author: hamilton
 *
 * Created on April 14, 2015, 5:19 PM
 */

#ifndef CALIBRATIONCONSTANTS_H
#define	CALIBRATIONCONSTANTS_H
#include "types.h"

extern const int RPMs_cnt[2];  //Fractional counts since this doesn't relate to an ADC channel
extern const  float RPMs_eng[2];

extern int Torque_cnt[2];  //Fractional counts since this doesn't relate to an ADC channel
extern float Torque_eng[2];

extern int LD_Current_cnt[2];
extern float LD_Current_eng[2];

void LoadCalibration();
void ComputeScaling(void);
void PrintScaling(void);
int LoadDumpCalibration(int DC);
void PrintCalibration(CalibrationConstants C);
float GetFloat(char *msg);

#endif	/* CALIBRATIONCONSTANTS_H */