i2c working with old hk

Dependencies:   mbed-rtos mbed

Fork of BAE_vr2_1_1 by green rosh

Committer:
raizel_varun
Date:
Tue Dec 16 11:07:33 2014 +0000
Revision:
12:ba2556c6b990
Parent:
7:f06840d848e3
Child:
13:1b37d98840d3
hk data sent using string

Who changed what in which revision?

UserRevisionLine numberNew contents of line
greenroshks 0:8b0d43fe6c05 1 #include "mbed.h"
greenroshks 0:8b0d43fe6c05 2 #define tstart -40
greenroshks 0:8b0d43fe6c05 3 #define tstep 8
greenroshks 0:8b0d43fe6c05 4 #define vstart 3.3
greenroshks 0:8b0d43fe6c05 5 #define vstep 0.84667
greenroshks 0:8b0d43fe6c05 6 #define cstart 0.0691
greenroshks 0:8b0d43fe6c05 7 #define cstep 0.09133
greenroshks 0:8b0d43fe6c05 8 #define rsens 0.095
raizel_varun 6:e65b1ab79f36 9
raizel_varun 6:e65b1ab79f36 10
greenroshks 0:8b0d43fe6c05 11
greenroshks 0:8b0d43fe6c05 12
greenroshks 0:8b0d43fe6c05 13 struct SensorData {
greenroshks 0:8b0d43fe6c05 14 char Voltage[10];
greenroshks 0:8b0d43fe6c05 15 char Current[10];
greenroshks 0:8b0d43fe6c05 16 char Temperature[10];
raizel_varun 7:f06840d848e3 17 char faultpoll;
raizel_varun 7:f06840d848e3 18 char faultir;
sakthipriya 5:255b43e8e21a 19 char power_mode;
greenroshks 0:8b0d43fe6c05 20 //float Battery[2];
greenroshks 0:8b0d43fe6c05 21 };
raizel_varun 12:ba2556c6b990 22
greenroshks 0:8b0d43fe6c05 23
greenroshks 0:8b0d43fe6c05 24 typedef struct ShortBeacon {
greenroshks 0:8b0d43fe6c05 25 char Voltage[1];
greenroshks 0:8b0d43fe6c05 26 char AngularSpeed[2];
greenroshks 0:8b0d43fe6c05 27 char SubsystemStatus[1];
greenroshks 0:8b0d43fe6c05 28 char Temp[3];
greenroshks 0:8b0d43fe6c05 29 char ErrorFlag[1];
greenroshks 0:8b0d43fe6c05 30 }ShortBeacy;
greenroshks 0:8b0d43fe6c05 31
greenroshks 0:8b0d43fe6c05 32
greenroshks 0:8b0d43fe6c05 33 void FUNC_HK_MAIN();
greenroshks 0:8b0d43fe6c05 34
greenroshks 0:8b0d43fe6c05 35 int quantiz(float start,float step,float x);
greenroshks 0:8b0d43fe6c05 36
greenroshks 0:8b0d43fe6c05 37