/Modules/Sensors/ALTIMET01A/SW/MPL115A1/PIC/PIC16F887/MPL115A1.c
55,6 → 55,8
// translate to floating point number
printf("%d %d %d %d %d %d %d %d ",a0_MSB, a0_LSB,b1_MSB, b1_LSB, b2_MSB, b2_LSB, c12_MSB, c12_LSB);
a0 = ((unsigned int16) a0_MSB << 5) + (a0_LSB >> 3) + (a0_LSB & 0x07)/8.0;
b1 = ((((b1_MSB & 0x1F) * 0x100) + b1_LSB) / 8192.0) - 3;
b2 = ((((unsigned int16) (b2_MSB - 0x80) << 8) + b2_LSB)/ 16384.0) - 2;
/Modules/Sensors/ALTIMET01A/SW/MPL115A1/PIC/PIC16F887/main.hex
1,4 → 1,4
:1000000007308A001C2F0000533A613974100D0527
:1000000008308A00F5280000533A613974100D0554
:10001000000083168613831286130830F800102818
:100020000000F8172128F813C60C03188617031CC4
:100030008613781721287813F80B14281F2800003E
12,240 → 12,246
:1000B0000D080313B20003170F080313B300310830
:1000C000C6000920320803178D00031333080317F5
:1000D0008F008D0A03198F0A03132B2803170313AC
:1000E0008A110A12402F3B30840083130008031941
:1000E0008A150A121A293B30840083130008031969
:1000F00086280230F800F701F70B7C28F80B7B28E4
:100100009730F700F70B8228800B792808008E3093
:10011000F7004208F8004108F900FA01F808031D49
:100120009B287908F800F9010830F702F808031D48
:100130009B28F701A3280310F81BA228F90DF80D3E
:10014000F7039B28F81308003E0803196929CA0021
:10015000420803196929CA02031CB3287F30CA0761
:1001600003186929B9288130CA02031C69290319B7
:1001700069294A08F700F801F901FA01C9013F08A5
:10018000C800C8174008C7004108C6001930CA0097
:100190004508C6020318DC280130C7020318DC2812
:1001A000C8020318DC28C9020318DC28C90AC80AD7
:1001B000C70A4508C6070E294408C7020318F728CE
:1001C0000130C8020318F728C9020318F728C90A22
:1001D000C80A4408C7074508C607031C0E29C70AF2
:1001E000031D0E29C80A031D0E29C90A0E2943083A
:1001F0008038C80203180D290130C90203180D29DF
:10020000C90A43088038C8074408C707031CEB28FD
:10021000C80A031DEB28C90AEB287A14CA0B112956
:100220001C290310C60DC70DC80DC90D0310FA0D0A
:10023000F90DF80DCB0DC8284B1C24290310F80C20
:10024000F90CFA0CCB0C2729F70303196929CB1BEE
:1002500050290310C60DC70DC80DC90D4508C602AB
:1002600003183C290130C70203183C29C8020318AF
:100270003C29C902031C5F294408C7020318472907
:100280000130C80203184729C902031C5F2943082B
:100290008038C802031850290130C902031C5F29A5
:1002A000FA0A031D5F29F90A031D5F29F80A031DD5
:1002B0005F29F70A03196929F80CF90CFA0C3F08B1
:1002C000CA004308CA06CA1F6729F8176D29F81320
:1002D0006D29F701F801F901FA010800803083184F
:1002E000C606CB01CC014208CA004608CA0641082E
:1002F00003195E2AC900F70045080319672AC902D5
:100300000319032A031CC1294608CF00CF17470849
:10031000CE004808CD00CC010310CF0CCE0CCD0C84
:10032000CC0CC90B8B29CA1F98294B147B2A4B1064
:1003300049104B16443084008313902A4B12CA1B79
:10034000AB29491CB629CF0CCE0CCD0CCC0CF70A2E
:100350000319762AB629CF1BB9290310CC0DCD0D70
:10036000CE0DCF0DF7030319762AAB294B17232A9D
:100370004B134208CA00CA1FBF29CF176F2ACF13D9
:100380006F2A4508C900F7004108C9024208CF009A
:10039000CF174308CE004408CD00CC010310CF0C8A
:1003A000CE0CCD0CCC0CC90BCD29CA1FDA29CB142D
:1003B0007B2ACB104910CB16483084008313902A37
:1003C000CB12CA1BED29491CF829CF0CCE0CCD0C41
:1003D000CC0CF70A0319762AF829CF1BFB29031046
:1003E000CC0DCD0DCE0DCF0DF7030319762AED29D7
:1003F000CB17232ACB134608CA00CA1F012ACF17DE
:100400006F2ACF136F2A4608CF00CF174708CE00B8
:100410004808CD00CA1F102ACF134B157B2A4B1159
:10042000CC014910443084008313902ACA1B392A16
:100430004208CA00491C232ACF0CCE0CCD0CCC0C90
:10044000F70A0319762ACC1F342ACD0A031D342A51
:10045000CE0A031D342ACF0A031D342ACF0CCE0C3A
:10046000CD0CF70A0319762A4B1BB829CB1BFA29A6
:10047000582A8030CF06CF1F412A7B2A4608CA005F
:100480004E2A4208CA00CF08031D4E2ACE08031D7B
:100490004E2ACD08031D4E2AF7016F2ACF1B582A7A
:1004A0000310CC0DCD0DCE0DCF0DF70B4E2A762AB5
:1004B000CA1F5C2ACF176F2ACF136F2A4508F7008F
:1004C0004608CF004708CE004808CD006F2A4108F3
:1004D000F7004208CF004308CE004408CD004F0883
:1004E000F8004E08F9004D08FA00AE2AF701F801AD
:1004F000F901FA01AE2ACC01CD09CE09CF09CC0908
:10050000CC0A031D892ACD0A031D892ACE0A0319A4
:10051000CF0A4B189729CB18D9294B190F2A3E2AF5
:100520000008CD07031C9A2ACE0A031D9A2ACF0A77
:100530000319491484030008CE07031CA22ACF0A1A
:100540000319491484030008801F803ACF07031859
:1005500049144B1A9E29CB1AE029162A080030119B
:100560003008831687008312071113088830930020
:100570008316140C031CB92A8312130893018316E3
:10058000140C031CC02A83121308B10013088A300C
:1005900093008316140C031CCA2A831213089301B8
:1005A0008316140C031CD12A83121308B2001308FB
:1005B0008C3093008316140C031CDB2A831213085F
:1005C00093018316140C031CE22A83121308B30050
:1005D00013088E3093008316140C031CEC2A83122C
:1005E000130893018316140C031CF32A83121308B7
:1005F000B4001308903093008316140C031CFD2ADA
:100600008312130893018316140C031C042B83120A
:100610001308B5001308923093008316140C031CC2
:100620000E2B8312130893018316140C031C152B35
:1006300083121308B6001308943093008316140C29
:10064000031C1F2B8312130893018316140C031C25
:10065000262B83121308B7001308963093008316D5
:10066000140C031C302B8312130893018316140CF3
:10067000031C372B83121308B80013089301831649
:10068000140C031C402B8312301130088316870092
:1006900083120715BA013108B900B90DBA0DB90DA9
:1006A000BA0DB90DBA0DB90DBA0DB90DBA0DE030CC
:1006B000B905320CF700F70CF70C1F30F705770877
:1006C000B9070318BA0A32080739C201C1008720E6
:1006D0007A08C1007908C0007808BF007708BE001A
:1006E000C501C401C3018230C200A4207708BD0047
:1006F0007808BE007908BF007A08C0003A08C20036
:100700003908C100872083107A08C4007908C30023
:100710007808C2007708C1004008C8003F08C70039
:100720003E08C6003D08C5006E217A08A30079087E
:10073000A2007808A1007708A00033081F39FA0149
:10074000BA00B9013408B9070318BA0A3A08C20056
:100750003908C10087207A08C1007908C0007808EC
:10076000BF007708BE00C501C401C3018C30C200C0
:10077000A4207708B9007808BA007908BB007A0885
:10078000BC0083147A08C4007908C3007808C2004A
:100790007708C100C801C7014030C6008030C500DD
:1007A0006E217A08A7007908A6007808A5007708C6
:1007B000A40080303502BA01B900BA00B901360888
:1007C000B9070318BA0A3A08C2003908C1008720DD
:1007D0007A08C1007908C0007808BF007708BE0019
:1007E000C501C401C3018D30C200A4207708B9003F
:1007F0007808BA007908BB007A08BC0083147A082C
:10080000C4007908C3007808C2007708C100C80195
:10081000C701C6018030C5006E217A08AB00790897
:10082000AA007808A9007708A800FA013708BA00DA
:10083000B9013808B9070318BA0A3A08C2003908DA
:10084000C10087207A08C1007908C0007808BF007D
:100850007708BE00C501C401C3019730C200A420BF
:100860007A08AF007908AE007808AD007708AC00D0
:100870008A110A12602F46080319AB2CCE004A08D1
:100880000319AB2CCE0703184C2C7F30CE02031C6F
:10089000AB2C0319AB2C502C8130CE070318AB2C9A
:1008A0004E08F700F801F901FA014708D200D21703
:1008B0004808D1004908D0001830CE00CF01501CA4
:1008C000792C4D08FA07031C6B2CF90A031D6B2CBD
:1008D000F80A0319CF174C08F907031C722CF80A01
:1008E0000319CF174B08C800C8174808F8070318A2
:1008F000CF17CF0DF80CF90CFA0CD20CD10CD00C90
:100900000310CE0B5E2C0130F7070318AB2CF81B3D
:10091000902CD20DFA0DF90DF80DF7030319AB2C3D
:10092000D21FA12CFA0A031DA12CF90A031DA12C28
:10093000F80A031DA12CF80CF90CFA0CF70A03199C
:10094000AB2C4708CF004B08CF06CF1FA92CF817B8
:10095000AF2CF813AF2CF701F801F901FA010800E8
:1009600030113008831687008312071113082430D2
:1009700093008316140C031CBA2C831213089301E2
:100980008316140C031CC12C8312301130088316FB
:100990008700831207150A30BB007320301130081E
:1009A0008316870083120711130880309300831683
:1009B000140C031CD82C8312130893018316140CF7
:1009C000031CDF2C83121308B2001308823093003B
:1009D0008316140C031CE92C83121308930183164D
:1009E000140C031CF02C83121308B10030113008D2
:1009F0008316870083120715BC013208BB00BC00B8
:100A0000BB013108BB070318BC0A3C0CB4003B0C0B
:100A1000B300B40CB30CB40CB30CB40CB30CB40CE6
:100A2000B30CB40CB30C0330B4053011300883168A
:100A30008700831207111308843093008316140C67
:100A4000031C1F2D8312130893018316140C031C1F
:100A5000262D83121308B2001308863093008316E4
:100A6000140C031C302D8312130893018316140CED
:100A7000031C372D83121308B1001308930183164A
:100A8000140C031C402D831230113008831687008C
:100A900083120715BC013208BB00BC00BB01310842
:100AA000BB070318BC0A3C0CB6003B0CB500B60CE7
:100AB000B50CB60CB50CB60CB50CB60CB50CB60C2A
:100AC000B50C0330B6053608C2003508C1008720D2
:100AD0002F08C9002E08C8002D08C7002C08C60022
:100AE0007A08CD007908CC007808CB007708CA00D6
:100AF0003B2483102708C4002608C3002508C20031
:100B00002408C1007A08C8007908C7007808C60020
:100B10007708C5006E217708BB007808BC0079080B
:100B2000BD007A08BE003408C2003308C100872027
:100B30003E08C9003D08C8003C08C7003B08C60085
:100B40007A08CD007908CC007808CB007708CA0075
:100B50003B2483102308C4002208C3002108C200DC
:100B60002008C1007A08C8007908C7007808C600C4
:100B70007708C5006E217708BB007808BC007908AB
:100B8000BD007A08BE003608C2003508C1008720C3
:100B90002B08C9002A08C8002908C7002808C60071
:100BA0007A08CD007908CC007808CB007708CA0015
:100BB0003B2483103E08C4003D08C3003C08C2002B
:100BC0003B08C1007A08C8007908C7007808C60049
:100BD0007708C5006E217A08BA007908B90078084C
:100BE000B8007708B7003A08C9003908C8003808C3
:100BF000C7003708C6008830CD002030CC00023056
:100C0000CB007B30CA003B247708BB007808BC00CF
:100C10007908BD007A08BE0083107A08C4007908FC
:100C2000C3007808C2007708C100C801C701483076
:100C3000C6008430C5006E218A110A12612F30115E
:100C4000300883168700831207111308223093009F
:100C50008316140C031C292E831213089301831688
:100C6000140C031C302E83123011300883168700B9
:100C7000831207150A30BB00732030113008831629
:100C80008700831207111308843093008316140C15
:100C9000031C472E8312130893018316140C031CA4
:100CA0004E2E83121308B600130886309300831665
:100CB000140C031C582E8312130893018316140C72
:100CC000031C5F2E83121308B500130893018316CB
:100CD000140C031C682E8312301130088316870011
:100CE00083120715BA013608B900BA00B9013508F0
:100CF000B9070318BA0A3A0CB800390CB700B80C97
:100D0000B70CB80CB70CB80CB70CB80CB70CB80CC7
:100D1000B70C0330B8053808C2003708C100872077
:100D20007708B9007808BA007908BB007A08BC00D7
:100D300083147A08C4007908C3007808C2007708D1
:100D4000C100C801C7017930C6008730C5006E21D7
:100D50007708B9007808BA007908BB007A08BC00A7
:100D6000C1007908C0007808BF007708BE003330A2
:100D7000C500C400AB30C3008130C200A420770896
:100D8000B9007808BA007908BB007A08BC00831063
:100D90007A08C4007908C3007808C2007708C10047
:100DA000C801C7014830C6008330C5006E218A11D2
:100DB0000A126A2FF701F801F901FA01CE01CF01F9
:100DC000D001D1014D084C044B044A040319182FDB
:100DD0002030D2000310C60DC70DC80DC90DCE0DB1
:100DE000CF0DD00DD10D4D085102031D012F4C0820
:100DF0005002031D012F4B084F02031D012F4A080B
:100E00004E02031C122F4A08CE024B08031C4B0F44
:100E1000CF024C08031C4C0FD0024D08031C4D0F91
:100E2000D1020314F70DF80DF90DFA0DD20BEA2ECD
:100E30004E30840083130800840183131F30830520
:100E4000713083168F000F0886138312861783165E
:100E500003170908C039890003131F129F120030BD
:100E6000031788008312870188018901FF3003136B
:100E7000B000043003178D0000308F0003132B28BF
:100E80009412B0123008831687008312301630088F
:100E9000831687008312B011300883168700223032
:100EA000831294004030831694008312301130086E
:100EB00083168700831207156430BB007320AF2AA6
:100EC000B02C7708B1007808B2007908B3007A082E
:100ED000B4001F2E7708B5007808B6007908B7006F
:100EE0007A08B800893084003408BC003308BB009D
:100EF0003208BA003108B9000230BD008A1500205E
:100F00008A112030C6000920893084003808BC00CE
:100F10003708BB003608BA003508B9000230BD00FA
:100F20008A1500208A112030C60009200D30C60025
:100F300009200A30C60009200230B100FA30BB0097
:0A0F40007320B10B9E2F602F630099
:100100009730F700F70B8228800B79280800400809
:10011000F8013F0203188F283F08F7009B28F701DA
:100120000830C100BF0DF70D400877020318F70033
:10013000F80DC10B9228080020303A1E3030BB0069
:100140003908F700B91FAB28F709F70A7708B90093
:100150002D30BB00BA173908BF006430C0008720BB
:100160007708B90030307807BC003908BF000A3082
:10017000C000872030307707BE0030307807BD00E0
:100180003B08F700BA1DC628BA1F3A113A1AD328FD
:10019000BA1FEE283A19EE287708BC00BA18EE28E4
:1001A0007708BD00EE2830303C02031DEE287708AA
:1001B000BC002030BB00BA1DE1283A11BA14BA1FA6
:1001C000BA1030303D02031DEE287708BD00203004
:1001D000BC00BA1DE128BA10BA1F3A103A1DF32824
:1001E0003B08C6000920BA1CF8283C08C6000920B4
:1001F0003A1CFD283D08C60009203E08C60009201B
:1002000008008E30F7004208F8004108F900FA01B2
:10021000F808031D15297908F800F9010830F702DC
:10022000F808031D1529F7011D290310F81B1C29C7
:10023000F90DF80DF7031529F81308003E08031906
:10024000E329CA0042080319E329CA02031C2D2925
:100250007F30CA070318E32933298130CA02031CFF
:10026000E3290319E3294A08F700F801F901FA0123
:10027000C9013F08C800C8174008C7004108C600A8
:100280001930CA004508C602031856290130C702B2
:1002900003185629C80203185629C90203185629FB
:1002A000C90AC80AC70A4508C60788294408C702F8
:1002B000031871290130C80203187129C9020318F3
:1002C0007129C90AC80A4408C7074508C607031C9C
:1002D0008829C70A031D8829C80A031D8829C90A55
:1002E000882943088038C802031887290130C902C9
:1002F00003188729C90A43088038C8074408C70774
:10030000031C6529C80A031D6529C90A65297A14D1
:10031000CA0B8B2996290310C60DC70DC80DC90D30
:100320000310FA0DF90DF80DCB0D42294B1C9E2937
:100330000310F80CF90CFA0CCB0CA129F7030319E4
:10034000E329CB1BCA290310C60DC70DC80DC90D63
:100350004508C6020318B6290130C7020318B6299A
:10036000C8020318B629C902031CD9294408C702C8
:100370000318C1290130C8020318C129C902031C8E
:10038000D92943088038C8020318CA290130C90294
:10039000031CD929FA0A031DD929F90A031DD929F1
:1003A000F80A031DD929F70A0319E329F80CF90CF7
:1003B000FA0C3F08CA004308CA06CA1FE129F81709
:1003C000E729F813E729F701F801F901FA01080014
:1003D00080308318C606CB01CC014208CA0046080B
:1003E000CA0641080319D82AC900F70045080319AD
:1003F000E12AC90203197D2A031C3B2A4608CF00C3
:10040000CF174708CE004808CD00CC010310CF0C11
:10041000CE0CCD0CCC0CC90B052ACA1F122A4B14CA
:10042000F52A4B1049104B164430840083130A2BD5
:100430004B12CA1B252A491C302ACF0CCE0CCD0CDE
:10044000CC0CF70A0319F02A302ACF1B332A0310E9
:10045000CC0DCD0DCE0DCF0DF7030319F02A252AB3
:100460004B179D2A4B134208CA00CA1F392ACF17BF
:10047000E92ACF13E92A4508C900F7004108C90253
:100480004208CF00CF174308CE004408CD00CC016E
:100490000310CF0CCE0CCD0CCC0CC90B472ACA1FB5
:1004A000542ACB14F52ACB104910CB1648308400BF
:1004B00083130A2BCB12CA1B672A491C722ACF0C42
:1004C000CE0CCD0CCC0CF70A0319F02A722ACF1BE4
:1004D000752A0310CC0DCD0DCE0DCF0DF7030319EA
:1004E000F02A672ACB179D2ACB134608CA00CA1FD9
:1004F0007B2ACF17E92ACF13E92A4608CF00CF1766
:100500004708CE004808CD00CA1F8A2ACF134B15D2
:10051000F52A4B11CC0149104430840083130A2B77
:10052000CA1BB32A4208CA00491C9D2ACF0CCE0C14
:10053000CD0CCC0CF70A0319F02ACC1FAE2ACD0A39
:10054000031DAE2ACE0A031DAE2ACF0A031DAE2A12
:10055000CF0CCE0CCD0CF70A0319F02A4B1B322A14
:10056000CB1B742AD22A8030CF06CF1FBB2AF52A94
:100570004608CA00C82A4208CA00CF08031DC82A74
:10058000CE08031DC82ACD08031DC82AF701E92A91
:10059000CF1BD22A0310CC0DCD0DCE0DCF0DF70BF6
:1005A000C82AF02ACA1FD62ACF17E92ACF13E92A68
:1005B0004508F7004608CF004708CE004808CD00A0
:1005C000E92A4108F7004208CF004308CE0044085A
:1005D000CD004F08F8004E08F9004D08FA00282B0E
:1005E000F701F801F901FA01282BCC01CD09CE0958
:1005F000CF09CC09CC0A031D032BCD0A031D032B05
:10060000CE0A0319CF0A4B18112ACB18532A4B19BB
:10061000892AB82A0008CD07031C142BCE0A031D13
:10062000142BCF0A0319491484030008CE07031CB6
:100630001C2BCF0A0319491484030008801F803A39
:10064000CF07031849144B1A182ACB1A5A2A902A92
:100650000800301130088316870083120711130831
:10066000883093008316140C031C332B8312130859
:1006700093018316140C031C3A2B83121308B10048
:1006800013088A3093008316140C031C442B831226
:10069000130893018316140C031C4B2B83121308AD
:1006A000B20013088C3093008316140C031C552BD6
:1006B0008312130893018316140C031C5C2B831202
:1006C0001308B30013088E3093008316140C031C18
:1006D000662B8312130893018316140C031C6D2BD5
:1006E00083121308B4001308903093008316140C7F
:1006F000031C772B8312130893018316140C031C1D
:100700007E2B83121308B5001308923093008316D2
:10071000140C031C882B8312130893018316140CEA
:10072000031C8F2B83121308B60013089430930018
:100730008316140C031C992B831213089301831640
:10074000140C031CA02B83121308B7001308963057
:1007500093008316140C031CAA2B83121308930115
:100760008316140C031CB12B83121308B800130852
:1007700093018316140C031CBA2B8312301130081A
:1007800083168700831207153108B9001F30BA009D
:100790009C202030C60009203208B9001F30BA0062
:1007A0009C202030C60009203308B9001F30BA0051
:1007B0009C202030C60009203408B9001F30BA0040
:1007C0009C202030C60009203508B9001F30BA002F
:1007D0009C202030C60009203608B9001F30BA001E
:1007E0009C202030C60009203708B9001F30BA000D
:1007F0009C202030C60009203808B9001F30BA00FC
:100800009C202030C6000920BA013108B900B90D7A
:10081000BA0DB90DBA0DB90DBA0DB90DBA0DB90DA4
:10082000BA0DE030B905320CF700F70CF70C1F30A9
:10083000F7057708B9070318BA0A32080739C20161
:10084000C10001217A08C1007908C0007808BF0002
:100850007708BE00C501C401C3018230C2001E2159
:100860007708BD007808BE007908BF007A08C0008C
:100870003A08C2003908C100012183107A08C40077
:100880007908C3007808C2007708C1004008C80092
:100890003F08C7003E08C6003D08C500E8217A08A9
:1008A000A3007908A2007808A1007708A000330807
:1008B0001F39FA01BA00B9013408B9070318BA0A96
:1008C0003A08C2003908C10001217A08C10079083C
:1008D000C0007808BF007708BE00C501C401C3018D
:1008E0008C30C2001E217708B9007808BA00790858
:1008F000BB007A08BC0083147A08C4007908C300DE
:100900007808C2007708C100C801C7014030C6009E
:100910008030C500E8217A08A7007908A600780889
:10092000A5007708A40080303502BA01B900BA00EA
:10093000B9013608B9070318BA0A3A08C2003908DB
:10094000C10001217A08C1007908C0007808BF0001
:100950007708BE00C501C401C3018D30C2001E214D
:100960007708B9007808BA007908BB007A08BC009B
:1009700083147A08C4007908C3007808C200770895
:10098000C100C801C701C6018030C500E8217A084E
:10099000AB007908AA007808A9007708A800FA0136
:1009A0003708BA00B9013808B9070318BA0A3A0873
:1009B000C2003908C10001217A08C1007908C000CD
:1009C0007808BF007708BE00C501C401C301973095
:1009D000C2001E217A08AF007908AE007808AD0089
:1009E0007708AC008A150A123E2946080319652DBE
:1009F000CE004A080319652DCE070318062D7F3057
:100A0000CE02031C652D0319652D0A2D8130CE07FA
:100A10000318652D4E08F700F801F901FA0147089F
:100A2000D200D2174808D1004908D0001830CE00B3
:100A3000CF01501C332D4D08FA07031C252DF90A50
:100A4000031D252DF80A0319CF174C08F907031CBD
:100A50002C2DF80A0319CF174B08C800C8174808EF
:100A6000F8070318CF17CF0DF80CF90CFA0CD20CBD
:100A7000D10CD00C0310CE0B182D0130F707031842
:100A8000652DF81B4A2DD20DFA0DF90DF80DF7035F
:100A90000319652DD21F5B2DFA0A031D5B2DF90A80
:100AA000031D5B2DF80A031D5B2DF80CF90CFA0CE5
:100AB000F70A0319652D4708CF004B08CF06CF1F53
:100AC000632DF817692DF813692DF701F801F90165
:100AD000FA010800301130088316870083120711CD
:100AE0001308243093008316140C031C742D8312F6
:100AF000130893018316140C031C7B2D83123011F1
:100B0000300883168700831207150A30BB00732054
:100B100030113008831687008312071113088030C4
:100B200093008316140C031C922D83121308930157
:100B30008316140C031C992D83121308B20013089A
:100B4000823093008316140C031CA32D8312130808
:100B500093018316140C031CAA2D83121308B100F1
:100B6000301130088316870083120715BC01320844
:100B7000BB00BC00BB013108BB070318BC0A3C0C1E
:100B8000B4003B0CB300B40CB30CB40CB30CB40CF9
:100B9000B30CB40CB30CB40CB30C0330B40530116B
:100BA00030088316870083120711130884309300DE
:100BB0008316140C031CD92D83121308930183167A
:100BC000140C031CE02D83121308B20013088630A6
:100BD00093008316140C031CEA2D8312130893014F
:100BE0008316140C031CF12D83121308B100130893
:100BF00093018316140C031CFA2D83123011300854
:100C00008316870083120715BC013208BB00BC00A5
:100C1000BB013108BB070318BC0A3C0CB6003B0CF7
:100C2000B500B60CB50CB60CB50CB60CB50CB60CC4
:100C3000B50CB60CB50C0330B6053608C200350845
:100C4000C10001212F08C9002E08C8002D08C700C7
:100C50002C08C6007A08CD007908CC007808CB00B3
:100C60007708CA00F52483102708C4002608C300AB
:100C70002508C2002408C1007A08C8007908C70006
:100C80007808C6007708C500E8217708BB00780817
:100C9000BC007908BD007A08BE003408C2003308E1
:100CA000C10001213E08C9003D08C8003C08C7003A
:100CB0003B08C6007A08CD007908CC007808CB0044
:100CC0007708CA00F52483102308C4002208C30053
:100CD0002108C2002008C1007A08C8007908C700AE
:100CE0007808C6007708C500E8217708BB007808B7
:100CF000BC007908BD007A08BE003608C20035087D
:100D0000C10001212B08C9002A08C8002908C70012
:100D10002808C6007A08CD007908CC007808CB00F6
:100D20007708CA00F52483103E08C4003D08C300BC
:100D30003C08C2003B08C1007A08C8007908C70017
:100D40007808C6007708C500E8217A08BA00790853
:100D5000B9007808B8007708B7003A08C900390820
:100D6000C8003808C7003708C6008830CD002030DA
:100D7000CC000230CB007B30CA00F5247708BB00E2
:100D80007808BC007908BD007A08BE0083107A0894
:100D9000C4007908C3007808C2007708C100C80100
:100DA000C7014830C6008430C500E8218A150A1200
:100DB0004129301130088316870083120711130868
:100DC000223093008316140C031CE32E83121308A5
:100DD00093018316140C031CEA2E83123011300881
:100DE00083168700831207150A30BB007320301169
:100DF000300883168700831207111308843093008C
:100E00008316140C031C012F8312130893018316FD
:100E1000140C031C082F83121308B6001308863025
:100E200093008316140C031C122F831213089301D2
:100E30008316140C031C192F83121308B500130812
:100E400093018316140C031C222F831230113008D7
:100E50008316870083120715BA013608B900BA0055
:100E6000B9013508B9070318BA0A3A0CB800390CA9
:100E7000B700B80CB70CB80CB70CB80CB70CB80C62
:100E8000B70CB80CB70C0330B8053808C2003708E7
:100E9000C10001217708B9007808BA007908BB00C1
:100EA0007A08BC0083147A08C4007908C300780863
:100EB000C2007708C100C801C7017930C600873079
:100EC000C500E8217708B9007808BA007908BB00A6
:100ED0007A08BC00C1007908C0007808BF00770814
:100EE000BE003330C500C400AB30C3008130C20047
:100EF0001E217708B9007808BA007908BB007A0883
:100F0000BC0083107A08C4007908C3007808C200C6
:100F10007708C100C801C7014830C6008330C5004A
:100F2000E8218A150A124C29F701F801F901FA01A2
:100F3000CE01CF01D001D1014D084C044B044A042D
:100F40000319D22F2030D2000310C60DC70DC80DD3
:100F5000C90DCE0DCF0DD00DD10D4D085102031D81
:100F6000BB2F4C085002031DBB2F4B084F02031D23
:100F7000BB2F4A084E02031CCC2F4A08CE024B0856
:100F8000031C4B0FCF024C08031C4C0FD0024D0822
:100F9000031C4D0FD1020314F70DF80DF90DFA0DD6
:0C0FA000D20BA42F4E30840083130800F5
:101000000408BE003D08C000031921283C08C9009F
:101010003B08C8003A08C7003908C600CD01CC011A
:101020002030CB008230CA008A113B248A157A080E
:101020002030CB008230CA008A11F5248A157A0854
:10103000BC007908BB007808BA007708B900C00B7B
:1010400006283C08C9003B08C8003A08C700390810
:10105000C6004608B63CC600FA014708CA00C717D2
258,7 → 264,7
:1010C0009A30C400CA30C300C2010A30C0003D08D3
:1010D0000319BE0A3C08C9003B08C8003A08C7000B
:1010E0003908C6004508CD004408CC004308CB00B1
:1010F0004208CA008A11DA268A150008B900840A53
:1010F0004208CA008A1194278A150008B900840A98
:101100000008BA00840A0008BB00840A0008BC007A
:10111000FD308407F708031DA0283D0A400203198B
:10112000A0283E080319A2280F39400203199A2863
272,9 → 278,28
:1011A0003E08F700BE013030F7077708C6008A1105
:1011B00009208A154508C9004408C8004308C7002B
:1011C0004208C600CD01CC01CB010A30CA008A1109
:1011D000DA268A157A08C5007908C4007808C300A1
:0A11E0007708C200C00B6A2808005F
:1011D00094278A157A08C5007908C4007808C300E6
:1011E0007708C200C00B6A280800840183131F30EF
:1011F0008305713083168F000F08861383128617BC
:10120000831603170908C039890003131F129F12A0
:101210000030031788008312870188018901FF309D
:101220000313B000043003178D0000308F008A11C3
:1012300003132B288A159412B012300883168700E6
:10124000831230163008831687008312B0113008DD
:101250008316870022308312940040308316940056
:10126000831230113008831687008312071564300B
:10127000BB008A1173208A158A11292B8A158A11BD
:101280006A2D8A157708B1007808B2007908B30092
:101290007A08B4008A11D92E8A157708B500780823
:1012A000B6007908B7007A08B8008930840034089D
:1012B000BC003308BB003208BA003108B900023064
:1012C000BD0000202030C6008A1109208A1589300F
:1012D00084003808BC003708BB003608BA0035085F
:1012E000B9000230BD0000202030C6008A1109205C
:1012F0008A150D30C6008A1109208A150A30C600E9
:101300008A1109208A150230B100FA30BB008A1117
:0C13100073208A15B10B85293F2963006A
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=77E3 CREATED="06-VI-13 00:23"
;CRC=D61B CREATED="28-XI-13 00:17"
/Modules/Sensors/ALTIMET01A/SW/MPL115A1/PIC/PIC16F887/main.pjt
18,7 → 18,7
[Opened Files]
1=main.c
2=main.h
3=C:\Program Files (x86)\PICC\devices\16F887.h
3=C:\Program Files\PICC\devices\16F887.h
4=MPL115A1.c
5=
6=..\1wire.c
/Modules/Sensors/ALTIMET01A/SW/Python/data_logger.py
11,35 → 11,39
 
#### Script Arguments ###############################################
 
if len(sys.argv) != 3:
if len(sys.argv) != 2:
sys.stderr.write("Invalid number of arguments.\n")
sys.stderr.write("Usage: %s PORT ADDRESS\n" % (sys.argv[0], ))
sys.exit(1)
 
port = eval(sys.argv[1])
address = eval(sys.argv[2])
 
 
#### Sensor Configuration ###########################################
 
cfg = config.Config(
port = 1,
bus = [
{
"type": "i2chub",
"address": 0x70,
# {
# "type": "i2chub",
# "address": 0x70,
#
# "children": [
# {
# "type": "i2chub",
# "address": 0x70,
# "channel": 1,
#
# },
# ],
# },
"children": [
{
"type": "i2chub",
"address": 0x70,
"channel": 1,
"name": "altimet",
"type": "altimet01",
},
},
 
],
},
],
)
cfg.initialize()
 
51,10 → 55,12
try:
with open("temperature.log", "a") as f:
while True:
sys.stdout.write("Start measurement now? [ENTER]")
sys.stdin.readline()
(t, p) = gauge.get_tp()
#sys.stdout.write(" Temperature: " + str(t) + " Preassure: " + str(p) + "\r\n")
sys.stdout.write(" Temperature: %.2f Pressure: %d\n" % (t, p, ))
f.write("%d\t%s\t%.2f\t%d\n" % (time.time(), datetime.datetime.now().isoformat(), t, p, ))
sys.stdout.write(" Temperature: %.2f Pressure: %d Note: " % (t, p, ))
note = sys.stdin.readline()
f.write("%d\t%s\t%.2f\t%d\t%s\n" % (time.time(), datetime.datetime.now().isoformat(), t, p, note, ))
sys.stdout.flush()
time.sleep(0.5)
except KeyboardInterrupt: