Skip to content

Commit

Permalink
Changed and corrected M1M3's FCUTable.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubanek committed Aug 5, 2024
1 parent 153daf5 commit 9d5fd2d
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 98 deletions.
1 change: 1 addition & 0 deletions doc/news/interface_changes/DM-45598.mtm1m3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changed and corrected M1M3's FCUTable.
196 changes: 98 additions & 98 deletions python/lsst/ts/xml/tables/m1m3/fcu_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,108 +30,108 @@ class FCUData:
x_position: float
y_position: float
z_position: float
address: int
name: str


FCUTable = [
FCUData(0, 0.776782776, 0, 0, 1),
FCUData(1, 1.442567993, 0, 0, 2),
FCUData(2, 2.10837793, 0, 0, 3),
FCUData(3, 2.774187988, 0, 0, 4),
FCUData(4, 3.439998047, 0, 0, 5),
FCUData(5, 3.968012939, 0, 0, 6),
FCUData(6, 0.44386499, -0.57660498, 0, 7),
FCUData(7, 1.109675049, -0.57660498, 0, 8),
FCUData(8, 1.775484985, -0.57660498, 0, 9),
FCUData(9, 2.441295898, -0.57660498, 0, 10),
FCUData(10, 3.107080078, -0.57660498, 0, 11),
FCUData(11, 3.772891113, -0.57660498, 0, 12),
FCUData(12, 0, -1.153209961, 0, 13),
FCUData(13, 0.776782776, -1.153209961, 0, 14),
FCUData(14, 1.442567993, -1.153209961, 0, 15),
FCUData(15, 2.10837793, -1.153209961, 0, 16),
FCUData(16, 2.774187988, -1.153209961, 0, 17),
FCUData(17, 3.439998047, -1.153209961, 0, 18),
FCUData(18, 3.9005, -0.997687012, 0, 19),
FCUData(19, 0.44386499, -1.729819946, 0, 20),
FCUData(20, 1.109675049, -1.729819946, 0, 21),
FCUData(21, 1.775484985, -1.729819946, 0, 22),
FCUData(22, 2.44127002, -1.729819946, 0, 23),
FCUData(23, 3.107080078, -1.729819946, 0, 24),
FCUData(24, 3.724452881, -1.517949951, 0, 25),
FCUData(25, 0, -2.306419922, 0, 26),
FCUData(26, 0.776782776, -2.306419922, 0, 27),
FCUData(27, 1.442567993, -2.306419922, 0, 28),
FCUData(28, 2.10837793, -2.306419922, 0, 29),
FCUData(29, 2.774187988, -2.306419922, 0, 30),
FCUData(30, 3.387954102, -2.167409912, 0, 31),
FCUData(31, 0.44386499, -2.883030029, 0, 32),
FCUData(32, 1.109675049, -2.883030029, 0, 33),
FCUData(33, 1.775484985, -2.883030029, 0, 34),
FCUData(34, 2.44127002, -2.883030029, 0, 35),
FCUData(35, 2.939364014, -2.745179932, 0, 36),
FCUData(36, 0.221945206, -3.459629883, 0, 37),
FCUData(37, 0.88772998, -3.459629883, 0, 38),
FCUData(38, 1.553540039, -3.267429932, 0, 39),
FCUData(39, 2.089733887, -3.436389893, 0, 40),
FCUData(40, 0.365734589, -4.00525, 0, 41),
FCUData(41, 1.085088013, -3.87276001, 0, 42),
FCUData(42, 1.60401001, -3.692780029, 0, 43),
FCUData(43, -0.44386499, -0.57660498, 0, 44),
FCUData(44, -1.109680054, -0.57660498, 0, 45),
FCUData(45, -1.77548999, -0.57660498, 0, 46),
FCUData(46, -2.441300049, -0.57660498, 0, 47),
FCUData(47, -3.107080078, -0.57660498, 0, 48),
FCUData(48, -3.772889893, -0.57660498, 0, 49),
FCUData(49, -0.77678302, -1.153209961, 0, 50),
FCUData(50, -1.442569946, -1.153209961, 0, 51),
FCUData(51, -2.108379883, -1.153209961, 0, 52),
FCUData(52, -2.774189941, -1.153209961, 0, 53),
FCUData(53, -3.44, -1.153209961, 0, 54),
FCUData(54, -3.9005, -0.997687012, 0, 55),
FCUData(55, -0.44386499, -1.729819946, 0, 56),
FCUData(56, -1.109680054, -1.729819946, 0, 57),
FCUData(57, -1.77548999, -1.729819946, 0, 58),
FCUData(58, -2.44127002, -1.729819946, 0, 59),
FCUData(59, -3.107080078, -1.729819946, 0, 60),
FCUData(60, -3.724449951, -1.517949951, 0, 61),
FCUData(61, -0.77678302, -2.306419922, 0, 62),
FCUData(62, -1.442569946, -2.306419922, 0, 63),
FCUData(63, -2.108379883, -2.306419922, 0, 64),
FCUData(64, -2.774189941, -2.306419922, 0, 65),
FCUData(65, -3.387949951, -2.167409912, 0, 66),
FCUData(66, -0.44386499, -2.883030029, 0, 67),
FCUData(67, -1.109680054, -2.883030029, 0, 68),
FCUData(68, -1.77548999, -2.883030029, 0, 69),
FCUData(69, -2.44127002, -2.883030029, 0, 70),
FCUData(70, -2.939360107, -2.745179932, 0, 71),
FCUData(71, -0.221945007, -3.459629883, 0, 72),
FCUData(72, -0.88772998, -3.459629883, 0, 73),
FCUData(73, -1.553540039, -3.267429932, 0, 74),
FCUData(74, -2.08972998, -3.436389893, 0, 75),
FCUData(75, -0.365734985, -4.00525, 0, 76),
FCUData(76, -1.085089966, -3.87276001, 0, 77),
FCUData(77, -1.60401001, -3.692780029, 0, 78),
FCUData(78, -0.77678302, 0, 0, 79),
FCUData(79, -1.442569946, 0, 0, 80),
FCUData(80, -2.108379883, 0, 0, 81),
FCUData(81, -2.774189941, 0, 0, 82),
FCUData(82, -3.44, 0, 0, 83),
FCUData(83, -3.96801001, 0, 0, 84),
FCUData(84, -0.44386499, 0.576605408, 0, 85),
FCUData(85, -1.109680054, 0.576605408, 0, 86),
FCUData(86, -1.77548999, 0.576605408, 0, 87),
FCUData(87, -2.441300049, 0.576605408, 0, 88),
FCUData(88, -3.107080078, 0.576605408, 0, 89),
FCUData(89, -3.772889893, 0.576605408, 0, 90),
FCUData(90, 0, 1.15321106, 0, 91),
FCUData(91, -0.77678302, 1.15321106, 0, 92),
FCUData(92, -1.442569946, 1.15321106, 0, 93),
FCUData(93, -2.108379883, 1.15321106, 0, 94),
FCUData(94, -2.774189941, 1.15321106, 0, 95),
FCUData(95, -3.44, 1.15321106, 0, 96),
FCUData(0, 0.8160258, 3.8896036, 0, "F1"),
FCUData(1, 0.3860038, 3.7613082, 0, "F2"),
FCUData(2, -0.3860038, 3.7613082, 0, "F3"),
FCUData(3, -0.8160258, 3.8896036, 0, "F4"),
FCUData(4, 1.1067796, 3.2662622, 0, "F5"),
FCUData(5, 0.4409694, 3.2662622, 0, "F6"),
FCUData(6, -0.4409694, 3.2662622, 0, "F7"),
FCUData(7, -1.1067796, 3.2662622, 0, "F8"),
FCUData(8, 0.7767828, 2.6910538, 0, "F9"),
FCUData(9, -0.0536956, 2.5928066, 0, "F10"),
FCUData(10, -0.7767828, 2.6910538, 0, "F11"),
FCUData(11, 2.4383746, 2.1130514, 0, "F12"),
FCUData(12, 1.7725898, 2.1130514, 0, "F13"),
FCUData(13, 0.4409694, 2.1130514, 0, "F14"),
FCUData(14, -0.4409694, 2.1130514, 0, "F15"),
FCUData(15, -1.7725898, 2.1130514, 0, "F16"),
FCUData(16, -2.4383746, 2.1130514, 0, "F17"),
FCUData(17, 3.4399982, 1.537843, 0, "F18"),
FCUData(18, 2.774188, 1.537843, 0, "F19"),
FCUData(19, 2.1083778, 1.537843, 0, "F20"),
FCUData(20, 1.5527782, 1.5373858, 0, "F21"),
FCUData(21, 0.8893302, 1.5393162, 0, "F22"),
FCUData(22, 0.0573024, 1.6327374, 0, "F23"),
FCUData(23, -0.8893302, 1.5393162, 0, "F24"),
FCUData(24, -1.5527782, 1.5373858, 0, "F25"),
FCUData(25, -2.1083778, 1.537843, 0, "F26"),
FCUData(26, -2.774188, 1.537843, 0, "F27"),
FCUData(27, -3.4399982, 1.537843, 0, "F28"),
FCUData(28, 3.1091378, 1.149858, 0, "F29"),
FCUData(29, 2.4383746, 0.9598406, 0, "F30"),
FCUData(30, 1.7216374, 1.0602976, 0, "F31"),
FCUData(31, 1.1067542, 0.9598406, 0, "F32"),
FCUData(32, 0.4409694, 0.9598406, 0, "F33"),
FCUData(33, -0.4409694, 0.9598406, 0, "F34"),
FCUData(34, -1.1067796, 0.9598406, 0, "F35"),
FCUData(35, -1.7216374, 1.0602976, 0, "F36"),
FCUData(36, -2.4383746, 0.9598406, 0, "F37"),
FCUData(37, -3.1091378, 1.149858, 0, "F38"),
FCUData(38, 3.7607494, 0.2855976, 0, "F39"),
FCUData(39, 2.774188, 0.3846322, 0, "F40"),
FCUData(40, -2.1083778, 0.3846322, 0, "F41"),
FCUData(41, 0.891032, 0.3866134, 0, "F42"),
FCUData(42, -0.891032, 0.3866134, 0, "F43"),
FCUData(43, -2.1083778, 0.3846322, 0, "F44"),
FCUData(44, -2.774188, 0.3846322, 0, "F45"),
FCUData(45, -3.7607494, 0.2855976, 0, "F46"),
FCUData(46, 4.117086, -0.280162, 0, "F47"),
FCUData(47, 3.7608002, -0.2874772, 0, "F48"),
FCUData(48, 2.4383746, -0.1933702, 0, "F49"),
FCUData(49, 1.7725898, -0.1933702, 0, "F50"),
FCUData(50, -1.7725898, -0.1933702, 0, "F51"),
FCUData(51, -2.4383746, -0.1933702, 0, "F52"),
FCUData(52, -3.7588952, -0.2883154, 0, "F53"),
FCUData(53, -4.117086, -0.280162, 0, "F54"),
FCUData(54, 3.4399982, -0.7685786, 0, "F55"),
FCUData(55, 2.774188, -0.7685786, 0, "F56"),
FCUData(56, 2.1083778, -0.7685786, 0, "F57"),
FCUData(57, 1.4368272, -0.767842, 0, "F58"),
FCUData(58, 0.7767828, -0.7685786, 0, "F59"),
FCUData(59, 0.3932174, -0.8725154, 0, "F60"),
FCUData(60, -0.3932174, -0.8725154, 0, "F61"),
FCUData(61, -0.7767828, -0.7685786, 0, "F62"),
FCUData(62, -1.4368272, -0.767842, 0, "F63"),
FCUData(63, -2.1083778, -0.7685786, 0, "F64"),
FCUData(64, -2.774188, -0.7685786, 0, "F65"),
FCUData(65, -3.4399982, -0.7685786, 0, "F66"),
FCUData(66, 3.1041848, -1.346581, 0, "F67"),
FCUData(67, 1.7725898, -1.346581, 0, "F68"),
FCUData(68, 1.1096752, -1.3454126, 0, "F69"),
FCUData(69, -1.1096752, -1.3454126, 0, "F70"),
FCUData(70, -1.7725898, -1.346581, 0, "F71"),
FCUData(71, -3.1041848, -1.346581, 0, "F72"),
FCUData(72, 3.4810192, -1.919351, 0, "F73"),
FCUData(73, 2.1083778, -1.9217894, 0, "F74"),
FCUData(74, 1.442593, -1.9217894, 0, "F75"),
FCUData(75, 0.7390892, -1.9887946, 0, "F76"),
FCUData(76, -0.0544068, -1.8223738, 0, "F77"),
FCUData(77, -0.7390892, -1.9887946, 0, "F78"),
FCUData(78, -1.442593, -1.9217894, 0, "F79"),
FCUData(79, -2.1083778, -1.9217894, 0, "F80"),
FCUData(80, -3.4810192, -1.919351, 0, "F81"),
FCUData(81, 2.4383746, -2.4997918, 0, "F82"),
FCUData(82, 1.1067796, -2.4997918, 0, "F83"),
FCUData(83, 0.4409694, -2.4997918, 0, "F84"),
FCUData(84, -0.4409694, -2.4997918, 0, "F85"),
FCUData(85, -1.1067796, -2.4997918, 0, "F86"),
FCUData(86, -2.4383746, -2.4997918, 0, "F87"),
FCUData(87, 0.7765288, -2.882265, 0, "F88"),
FCUData(88, 0.222504, -3.0759654, 0, "F89"),
FCUData(89, -0.222504, -3.0759654, 0, "F90"),
FCUData(90, -0.7765288, -2.882265, 0, "F91"),
FCUData(91, 1.8135092, -3.5172904, 0, "F92"),
FCUData(92, 1.1067796, -3.6530026, 0, "F93"),
FCUData(93, 0.4445, -3.6434776, 0, "F94"),
FCUData(94, -0.4445, -3.6434776, 0, "F95"),
FCUData(95, -1.8135092, -3.5172904, 0, "F96"),
]


def fcu_from_address(address: int) -> FCUData:
return next(fcu for fcu in FCUTable if fcu.address == address)
return next(fcu for fcu in FCUTable if fcu.index == address - 1)

0 comments on commit 9d5fd2d

Please sign in to comment.