/Modules/Sensors/ALTIMET01A/SW/Python/ALTIMET01A_test.py
File deleted
Property changes:
Deleted: svn:executable
-*
\ No newline at end of property
/Modules/Sensors/ALTIMET01A/SW/Python/ALTIMET_test.ipynb
1,6 → 1,6
{
"metadata": {
"name": ""
"name": "ALTIMET_test"
},
"nbformat": 3,
"nbformat_minor": 0,
35,12 → 35,15
"output_type": "stream",
"stream": "stdout",
"text": [
"i2c-5\ti2c \ti2c-tiny-usb at bus 002 device 008\tI2C adapter\r\n",
"i2c-0\ti2c \tintel drm CRTDDC_A \tI2C adapter\r\n",
"i2c-1\ti2c \tintel drm LVDSBLC_B \tI2C adapter\r\n",
"i2c-2\ti2c \tintel drm LVDSDDC_C \tI2C adapter\r\n",
"i2c-3\ti2c \tintel drm HDMIB \tI2C adapter\r\n",
"i2c-4\ti2c \tDPDDC-B \tI2C adapter\r\n"
"i2c-0\ti2c \ti915 gmbus ssc \tI2C adapter\r\n",
"i2c-1\ti2c \ti915 gmbus vga \tI2C adapter\r\n",
"i2c-2\ti2c \ti915 gmbus panel \tI2C adapter\r\n",
"i2c-3\ti2c \ti915 gmbus dpc \tI2C adapter\r\n",
"i2c-4\ti2c \ti915 gmbus dpb \tI2C adapter\r\n",
"i2c-5\ti2c \ti915 gmbus dpd \tI2C adapter\r\n",
"i2c-6\ti2c \tDPDDC-C \tI2C adapter\r\n",
"i2c-7\ti2c \tDPDDC-D \tI2C adapter\r\n",
"i2c-8\ti2c \ti2c-tiny-usb at bus 001 device 006\tI2C adapter\r\n"
]
}
],
73,7 → 76,7
"cell_type": "code",
"collapsed": false,
"input": [
"port = 5"
"port = 8"
],
"language": "python",
"metadata": {},
116,7 → 119,9
"collapsed": false,
"input": [
"cfg = config.Config(\n",
" port = port,\n",
" i2c = {\n",
" \"port\": port,\n",
" },\n",
" bus = [\n",
" {\n",
" \"type\": \"i2chub\",\n",
181,8 → 186,8
"output_type": "stream",
"stream": "stdout",
"text": [
"(0, 22.0, 96976.25)\n",
"(1, 22.0, 96978.0)"
"(0, 21.3125, 98476.75)\n",
"(1, 21.3125, 98476.75)"
]
},
{
190,7 → 195,7
"stream": "stdout",
"text": [
"\n",
"(2, 22.0, 96978.0)"
"(2, 21.3125, 98476.75)"
]
},
{
198,7 → 203,7
"stream": "stdout",
"text": [
"\n",
"(3, 22.0, 96976.75)"
"(3, 21.3125, 98480.25)"
]
},
{
206,7 → 211,7
"stream": "stdout",
"text": [
"\n",
"(4, 22.0, 96976.75)"
"(4, 21.3125, 98480.25)"
]
},
{
214,7 → 219,7
"stream": "stdout",
"text": [
"\n",
"(5, 22.0, 96978.5)"
"(5, 21.3125, 98480.25)"
]
},
{
222,7 → 227,7
"stream": "stdout",
"text": [
"\n",
"(6, 22.0, 96978.5)"
"(6, 21.3125, 98480.25)"
]
},
{
230,7 → 235,7
"stream": "stdout",
"text": [
"\n",
"(7, 22.0, 96976.25)"
"(7, 21.3125, 98476.75)"
]
},
{
238,7 → 243,7
"stream": "stdout",
"text": [
"\n",
"(8, 22.0, 96976.25)"
"(8, 21.3125, 98476.75)"
]
},
{
246,7 → 251,7
"stream": "stdout",
"text": [
"\n",
"(9, 22.0, 96982.25)"
"(9, 21.3125, 98480.5)"
]
},
{
254,7 → 259,7
"stream": "stdout",
"text": [
"\n",
"(10, 22.0, 96982.25)"
"(10, 21.3125, 98480.5)"
]
},
{
262,7 → 267,7
"stream": "stdout",
"text": [
"\n",
"(11, 22.0, 96978.0)"
"(11, 21.3125, 98482.0)"
]
},
{
270,7 → 275,7
"stream": "stdout",
"text": [
"\n",
"(12, 22.0, 96978.0)"
"(12, 21.3125, 98482.0)"
]
},
{
278,7 → 283,7
"stream": "stdout",
"text": [
"\n",
"(13, 22.0, 96976.75)"
"(13, 21.3125, 98484.5)"
]
},
{
286,7 → 291,7
"stream": "stdout",
"text": [
"\n",
"(14, 22.0, 96976.75)"
"(14, 21.3125, 98480.5)"
]
},
{
294,7 → 299,7
"stream": "stdout",
"text": [
"\n",
"(15, 22.0, 96976.0)"
"(15, 21.3125, 98476.5)"
]
},
{
302,7 → 307,7
"stream": "stdout",
"text": [
"\n",
"(16, 22.0, 96976.0)"
"(16, 21.3125, 98480.5)"
]
},
{
310,7 → 315,7
"stream": "stdout",
"text": [
"\n",
"(17, 22.0, 96982.0)"
"(17, 21.3125, 98480.5)"
]
},
{
318,7 → 323,7
"stream": "stdout",
"text": [
"\n",
"(18, 22.0, 96982.0)"
"(18, 21.3125, 98482.25)"
]
},
{
326,7 → 331,7
"stream": "stdout",
"text": [
"\n",
"(19, 22.0, 96972.75)"
"(19, 21.3125, 98482.25)"
]
},
{
334,7 → 339,7
"stream": "stdout",
"text": [
"\n",
"(20, 22.0, 96972.75)"
"(20, 21.3125, 98482.25)"
]
},
{
342,7 → 347,7
"stream": "stdout",
"text": [
"\n",
"(21, 22.0, 96982.0)"
"(21, 21.3125, 98482.25)"
]
},
{
350,7 → 355,7
"stream": "stdout",
"text": [
"\n",
"(22, 22.0, 96982.0)"
"(22, 21.3125, 98482.75)"
]
},
{
358,7 → 363,7
"stream": "stdout",
"text": [
"\n",
"(23, 22.0, 96976.75)"
"(23, 21.3125, 98482.75)"
]
},
{
366,7 → 371,7
"stream": "stdout",
"text": [
"\n",
"(24, 22.0, 96976.75)"
"(24, 21.3125, 98478.5)"
]
},
{
374,7 → 379,7
"stream": "stdout",
"text": [
"\n",
"(25, 22.0, 96978.75)"
"(25, 21.3125, 98478.5)"
]
},
{
382,7 → 387,7
"stream": "stdout",
"text": [
"\n",
"(26, 22.0, 96978.75)"
"(26, 21.3125, 98482.5)"
]
},
{
390,7 → 395,7
"stream": "stdout",
"text": [
"\n",
"(27, 22.0, 96978.5)"
"(27, 21.3125, 98482.5)"
]
},
{
398,7 → 403,7
"stream": "stdout",
"text": [
"\n",
"(28, 22.0, 96978.5)"
"(28, 21.3125, 98486.75)"
]
},
{
406,7 → 411,7
"stream": "stdout",
"text": [
"\n",
"(29, 22.0, 96978.75)"
"(29, 21.3125, 98482.75)"
]
},
{
414,7 → 419,7
"stream": "stdout",
"text": [
"\n",
"(30, 22.0, 96976.75)"
"(30, 21.3125, 98482.75)"
]
},
{
422,7 → 427,7
"stream": "stdout",
"text": [
"\n",
"(31, 22.0, 96976.75)"
"(31, 21.3125, 98480.25)"
]
},
{
430,7 → 435,7
"stream": "stdout",
"text": [
"\n",
"(32, 22.0, 96972.75)"
"(32, 21.3125, 98480.25)"
]
},
{
438,7 → 443,7
"stream": "stdout",
"text": [
"\n",
"(33, 22.0, 96976.75)"
"(33, 21.3125, 98478.25)"
]
},
{
446,7 → 451,7
"stream": "stdout",
"text": [
"\n",
"(34, 22.0, 96978.5)"
"(34, 21.3125, 98478.25)"
]
},
{
454,7 → 459,7
"stream": "stdout",
"text": [
"\n",
"(35, 22.0, 96978.5)"
"(35, 21.3125, 98478.25)"
]
},
{
462,7 → 467,7
"stream": "stdout",
"text": [
"\n",
"(36, 22.0, 96978.25)"
"(36, 21.3125, 98478.25)"
]
},
{
470,7 → 475,7
"stream": "stdout",
"text": [
"\n",
"(37, 22.0, 96978.25)"
"(37, 21.3125, 98478.25)"
]
},
{
478,7 → 483,7
"stream": "stdout",
"text": [
"\n",
"(38, 22.0, 96976.5)"
"(38, 21.3125, 98478.25)"
]
},
{
486,7 → 491,7
"stream": "stdout",
"text": [
"\n",
"(39, 22.0, 96976.5)"
"(39, 21.3125, 98480.75)"
]
},
{
494,7 → 499,7
"stream": "stdout",
"text": [
"\n",
"(40, 22.0, 96976.75)"
"(40, 21.3125, 98480.75)"
]
},
{
502,7 → 507,7
"stream": "stdout",
"text": [
"\n",
"(41, 22.0, 96976.75)"
"(41, 21.3125, 98482.25)"
]
},
{
510,7 → 515,7
"stream": "stdout",
"text": [
"\n",
"(42, 22.0, 96980.75)"
"(42, 21.3125, 98482.25)"
]
},
{
518,7 → 523,7
"stream": "stdout",
"text": [
"\n",
"(43, 22.0, 96980.75)"
"(43, 21.3125, 98478.25)"
]
},
{
526,7 → 531,7
"stream": "stdout",
"text": [
"\n",
"(44, 22.0, 96976.25)"
"(44, 21.3125, 98478.25)"
]
},
{
534,7 → 539,7
"stream": "stdout",
"text": [
"\n",
"(45, 22.0, 96976.25)"
"(45, 21.3125, 98478.25)"
]
},
{
542,7 → 547,7
"stream": "stdout",
"text": [
"\n",
"(46, 22.0, 96974.25)"
"(46, 21.3125, 98482.0)"
]
},
{
550,7 → 555,7
"stream": "stdout",
"text": [
"\n",
"(47, 22.0, 96974.25)"
"(47, 21.3125, 98482.0)"
]
},
{
558,7 → 563,7
"stream": "stdout",
"text": [
"\n",
"(48, 22.0, 96972.25)"
"(48, 21.3125, 98484.5)"
]
},
{
566,7 → 571,7
"stream": "stdout",
"text": [
"\n",
"(49, 22.0, 96972.25)"
"(49, 21.3125, 98484.5)"
]
},
{
574,7 → 579,7
"stream": "stdout",
"text": [
"\n",
"(50, 22.0, 96978.25)"
"(50, 21.3125, 98476.5)"
]
},
{
582,7 → 587,7
"stream": "stdout",
"text": [
"\n",
"(51, 22.0, 96978.25)"
"(51, 21.3125, 98476.5)"
]
},
{
590,7 → 595,7
"stream": "stdout",
"text": [
"\n",
"(52, 22.0, 96976.25)"
"(52, 21.3125, 98478.75)"
]
},
{
598,7 → 603,7
"stream": "stdout",
"text": [
"\n",
"(53, 22.0, 96976.25)"
"(53, 21.3125, 98478.75)"
]
},
{
606,7 → 611,7
"stream": "stdout",
"text": [
"\n",
"(54, 22.0, 96978.5)"
"(54, 21.3125, 98480.25)"
]
},
{
614,7 → 619,7
"stream": "stdout",
"text": [
"\n",
"(55, 22.0, 96978.5)"
"(55, 21.3125, 98480.25)"
]
},
{
622,7 → 627,7
"stream": "stdout",
"text": [
"\n",
"(56, 22.0, 96978.5)"
"(56, 21.3125, 98480.0)"
]
},
{
630,7 → 635,7
"stream": "stdout",
"text": [
"\n",
"(57, 22.0, 96978.5)"
"(57, 21.3125, 98480.0)"
]
},
{
638,7 → 643,7
"stream": "stdout",
"text": [
"\n",
"(58, 22.0, 96978.0)"
"(58, 21.3125, 98482.0)"
]
},
{
646,7 → 651,7
"stream": "stdout",
"text": [
"\n",
"(59, 22.0, 96978.0)"
"(59, 21.3125, 98482.0)"
]
},
{
654,7 → 659,7
"stream": "stdout",
"text": [
"\n",
"(60, 22.0, 96978.0)"
"(60, 21.3125, 98482.0)"
]
},
{
662,7 → 667,7
"stream": "stdout",
"text": [
"\n",
"(61, 22.0, 96978.25)"
"(61, 21.3125, 98476.25)"
]
},
{
670,7 → 675,7
"stream": "stdout",
"text": [
"\n",
"(62, 22.0, 96978.25)"
"(62, 21.3125, 98476.25)"
]
},
{
678,7 → 683,7
"stream": "stdout",
"text": [
"\n",
"(63, 22.0, 96976.0)"
"(63, 21.3125, 98480.75)"
]
},
{
686,7 → 691,7
"stream": "stdout",
"text": [
"\n",
"(64, 22.0, 96980.0)"
"(64, 21.3125, 98480.75)"
]
},
{
694,7 → 699,7
"stream": "stdout",
"text": [
"\n",
"(65, 22.0, 96976.0)"
"(65, 21.3125, 98480.5)"
]
},
{
702,7 → 707,7
"stream": "stdout",
"text": [
"\n",
"(66, 22.0, 96976.0)"
"(66, 21.3125, 98480.5)"
]
},
{
710,7 → 715,7
"stream": "stdout",
"text": [
"\n",
"(67, 22.0, 96976.0)"
"(67, 21.3125, 98482.0)"
]
},
{
718,7 → 723,7
"stream": "stdout",
"text": [
"\n",
"(68, 22.0, 96976.0)"
"(68, 21.3125, 98482.0)"
]
},
{
726,7 → 731,7
"stream": "stdout",
"text": [
"\n",
"(69, 22.0, 96976.5)"
"(69, 21.3125, 98482.25)"
]
},
{
734,7 → 739,7
"stream": "stdout",
"text": [
"\n",
"(70, 22.0, 96976.5)"
"(70, 21.3125, 98482.25)"
]
},
{
742,7 → 747,7
"stream": "stdout",
"text": [
"\n",
"(71, 22.0, 96976.75)"
"(71, 21.375, 98482.75)"
]
},
{
750,7 → 755,7
"stream": "stdout",
"text": [
"\n",
"(72, 22.0, 96976.75)"
"(72, 21.375, 98486.75)"
]
},
{
758,7 → 763,7
"stream": "stdout",
"text": [
"\n",
"(73, 22.0, 96978.75)"
"(73, 21.3125, 98484.25)"
]
},
{
766,7 → 771,7
"stream": "stdout",
"text": [
"\n",
"(74, 22.0, 96978.75)"
"(74, 21.3125, 98480.25)"
]
},
{
774,7 → 779,7
"stream": "stdout",
"text": [
"\n",
"(75, 22.0, 96980.75)"
"(75, 21.3125, 98480.25)"
]
},
{
782,7 → 787,7
"stream": "stdout",
"text": [
"\n",
"(76, 22.0, 96980.75)"
"(76, 21.3125, 98480.5)"
]
},
{
790,7 → 795,7
"stream": "stdout",
"text": [
"\n",
"(77, 22.0, 96976.25)"
"(77, 21.3125, 98480.5)"
]
},
{
798,7 → 803,7
"stream": "stdout",
"text": [
"\n",
"(78, 22.0, 96976.25)"
"(78, 21.3125, 98482.5)"
]
},
{
806,7 → 811,7
"stream": "stdout",
"text": [
"\n",
"(79, 22.0, 96976.75)"
"(79, 21.3125, 98482.5)"
]
},
{
814,7 → 819,7
"stream": "stdout",
"text": [
"\n",
"(80, 22.0, 96976.75)"
"(80, 21.3125, 98482.0)"
]
},
{
822,7 → 827,7
"stream": "stdout",
"text": [
"\n",
"(81, 22.0, 96980.25)"
"(81, 21.3125, 98482.0)"
]
},
{
830,7 → 835,7
"stream": "stdout",
"text": [
"\n",
"(82, 22.0, 96980.25)"
"(82, 21.375, 98480.0)"
]
},
{
838,7 → 843,7
"stream": "stdout",
"text": [
"\n",
"(83, 22.0, 96978.25)"
"(83, 21.375, 98480.0)"
]
},
{
846,7 → 851,7
"stream": "stdout",
"text": [
"\n",
"(84, 22.0, 96978.25)"
"(84, 21.3125, 98476.0)"
]
},
{
854,7 → 859,7
"stream": "stdout",
"text": [
"\n",
"(85, 22.0, 96978.75)"
"(85, 21.3125, 98476.0)"
]
},
{
862,7 → 867,7
"stream": "stdout",
"text": [
"\n",
"(86, 22.0, 96978.75)"
"(86, 21.3125, 98478.5)"
]
},
{
870,7 → 875,7
"stream": "stdout",
"text": [
"\n",
"(87, 22.0, 96982.0)"
"(87, 21.3125, 98478.5)"
]
},
{
878,7 → 883,7
"stream": "stdout",
"text": [
"\n",
"(88, 22.0, 96982.0)"
"(88, 21.3125, 98478.5)"
]
},
{
886,7 → 891,7
"stream": "stdout",
"text": [
"\n",
"(89, 22.0, 96982.75)"
"(89, 21.3125, 98478.0)"
]
},
{
894,7 → 899,7
"stream": "stdout",
"text": [
"\n",
"(90, 22.0, 96976.0)"
"(90, 21.375, 98478.0)"
]
},
{
902,7 → 907,7
"stream": "stdout",
"text": [
"\n",
"(91, 22.0, 96976.0)"
"(91, 21.375, 98484.0)"
]
},
{
910,7 → 915,7
"stream": "stdout",
"text": [
"\n",
"(92, 22.0, 96980.75)"
"(92, 21.3125, 98484.0)"
]
},
{
918,7 → 923,7
"stream": "stdout",
"text": [
"\n",
"(93, 22.0, 96976.75)"
"(93, 21.3125, 98480.0)"
]
},
{
926,7 → 931,7
"stream": "stdout",
"text": [
"\n",
"(94, 22.0, 96974.25)"
"(94, 21.3125, 98480.0)"
]
},
{
934,7 → 939,7
"stream": "stdout",
"text": [
"\n",
"(95, 22.0, 96978.25)"
"(95, 21.3125, 98478.5)"
]
},
{
942,7 → 947,7
"stream": "stdout",
"text": [
"\n",
"(96, 22.0, 96976.5)"
"(96, 21.3125, 98478.5)"
]
},
{
950,7 → 955,7
"stream": "stdout",
"text": [
"\n",
"(97, 22.0, 96976.5)"
"(97, 21.3125, 98476.75)"
]
},
{
958,7 → 963,7
"stream": "stdout",
"text": [
"\n",
"(98, 21.9375, 96972.5)"
"(98, 21.3125, 98476.75)"
]
},
{
966,7 → 971,7
"stream": "stdout",
"text": [
"\n",
"(99, 21.9375, 96972.5)"
"(99, 21.3125, 98482.75)"
]
},
{
/Modules/Sensors/ALTIMET01A/SW/Python/data_logger.py
1,6 → 1,6
#!/usr/bin/python
 
# Python driver for MLAB ALTIMET01A module with HMC5888L Magnetometer sensor wrapper class
# Python example utility for MLAB ALTIMET01A testing bed with DPI145.
 
import time
import datetime