107 const auto temp = convert<MultiSenseStatus::TemperatureStatus>(status);
109 ASSERT_FLOAT_EQ(temp.cpu_temperature, status.temperature0);
110 ASSERT_FLOAT_EQ(temp.fpga_temperature, status.temperature1);
111 ASSERT_FLOAT_EQ(temp.left_imager_temperature, status.temperature2);
112 ASSERT_FLOAT_EQ(temp.right_imager_temperature, status.temperature3);
149 const auto ptp = convert(status);
151 ASSERT_EQ(ptp.grandmaster_present, status.gm_present == 1);
153 for (uint8_t i = 0 ; i < ptp.grandmaster_id.size() ; ++i)
155 ASSERT_EQ(status.gm_id[i], ptp.grandmaster_id[i]);
158 ASSERT_EQ(ptp.grandmaster_offset.count(), status.gm_offset);
159 ASSERT_EQ(ptp.path_delay.count(), status.path_delay);
160 ASSERT_EQ(ptp.steps_from_local_to_grandmaster, status.steps_removed);