···334334 auto nano = std::chrono::duration_cast<std::chrono::duration<int64_t, std::nano>>(duration);
335335 uint64_t timestamp_ns = nano.count();
336336337337- // Sanity check.
338337 if (num >= ARRAY_SIZE(depthai->sink)) {
339338 DEPTHAI_ERROR(depthai, "Instance number too large! (%u)", num);
340339 return;
+2-2
src/xrt/drivers/hdk/hdk_device.cpp
···155155156156 // HDMI status only valid in reports version 3.
157157 // Expecting either version 1 (100Hz) or 3 (400Hz):
158158- // https://github.com/OSVR/OSVR-HDK-MCU-Firmware/blob/master/Source%20code/Embedded/src/DeviceDrivers/BNO070_using_hostif.c#L511
158158+ // https://github.com/OSVR/OSVR-HDK-MCU-Firmware/blob/main/Source%20code/Embedded/src/DeviceDrivers/BNO070_using_hostif.c#L511
159159160160 // Next byte is sequence number, ignore
161161 buf++;
···191191192192 // This is in the "world" coordinate system.
193193194194- // Note that we must "rotate" this velocity by the first transform above
194194+ // Note that we must "rotate" this velocity by the first transform from earlier
195195 // (90 about x), hence putting it in a pure quat.
196196 struct xrt_quat ang_vel_quat;
197197 ang_vel_quat.x = fromFixedPoint<6, 9>(hdk_get_le_int16(buf));
+2-2
src/xrt/drivers/hydra/hydra_driver.c
···376376377377 os_hid_set_feature(hs->command_hid, HYDRA_REPORT_START_MOTION, sizeof(HYDRA_REPORT_START_MOTION));
378378379379- // Doing a dummy get-feature now.
379379+ // Doing a throwaway get-feature now.
380380 uint8_t buf[91] = {0};
381381 os_hid_get_feature(hs->command_hid, 0, buf, sizeof(buf));
382382···594594 struct hydra_system *hs = U_TYPED_CALLOC(struct hydra_system);
595595 hs->base.type = XRT_TRACKING_TYPE_HYDRA;
596596 snprintf(hs->base.name, XRT_TRACKING_NAME_LEN, "%s", "Razer Hydra magnetic tracking");
597597- // Dummy transform from local space to base.
597597+ // Arbitrary static transform from local space to base.
598598 hs->base.offset.position.y = 1.0f;
599599 hs->base.offset.position.z = -0.25f;
600600 hs->base.offset.orientation.w = 1.0f;
+1-1
src/xrt/drivers/illixr/illixr_component.cpp
···19192020using namespace ILLIXR;
21212222-/// Dummy plugin class for an instance during phonebook registration
2222+/// Simulated plugin class for an instance during phonebook registration
2323class illixr_plugin : public plugin
2424{
2525public:
···182182 Vector3 rayDir;
183183184184 // we can do all three calls below to RenderUVToDisplayUV at the
185185- // same time via SIMD or better yet we can vectorize across all
185185+ // same time using SIMD or better yet we can vectorize across all
186186 // the uvs if we have a list of them
187187 curDisplayUV = RenderUVToDisplayUV(curCameraUV);
188188 Vector2 displayUVGradX =
···256256 * vector before subtracting from the gyro 80rpm measures, I get a
257257 * better calibration.
258258 *
259259- * So in order to get the accurate 80rpm measures:
259259+ * So to get the accurate 80rpm measures:
260260 * GyroMeasure80rpm-(GyroBias1*UnknownVector2) or
261261 * GyroMeasure80rpm-(GyroBias2*UnknownVector2)
262262 */
···408408 //! Accelerometer and gyro scope samples (ZCM2).
409409 struct psmv_parsed_sample sample;
410410411411- //! Copy of above (ZCM2).
411411+ //! Copy of preceding (ZCM2).
412412 struct psmv_parsed_sample sample_copy;
413413 };
414414 };
···10051005 return 0;
10061006 }
1007100710081008- // Sanity check for device type.
10081008+ // Validate device type.
10091009 switch (devices[index]->product_id) {
10101010 case PSMV_PID_ZCM1: break;
10111011 case PSMV_PID_ZCM2: break;
+1-1
src/xrt/drivers/realsense/rs_ddev.c
···414142424343/*!
4444- * Stupid convenience macro to print out a pose, only used for debugging
4444+ * Convenience macro to print out a pose, only used for debugging
4545 */
4646#define print_pose(msg, pose) \
4747 U_LOG_E(msg " %f %f %f %f %f %f %f", pose.position.x, pose.position.y, pose.position.z, pose.orientation.x, \
+1-1
src/xrt/drivers/sample/sample_hmd.c
···55 * @brief Sample HMD device, use as a starting point to make your own device driver.
66 *
77 *
88- * Based largely on dummy_hmd.c
88+ * Based largely on simulated_hmd.c
99 *
1010 * @author Jakob Bornecrantz <jakob@collabora.com>
1111 * @author Ryan Pavlik <ryan.pavlik@collabora.com>
+3-2
src/xrt/drivers/survive/survive_driver.c
···13571357 }
1358135813591359#ifdef XRT_BUILD_DRIVER_HANDTRACKING
13601360- // We want to hit this codepath when we find a HMD but no controllers.
13601360+ // We want to enter this codepath when we find a HMD but no controllers.
13611361 if ((ss->hmd != NULL) && !found_controllers) {
13621362 struct t_stereo_camera_calibration *cal = NULL;
13631363···13761376 out_xdevs[out_idx++] = two_hands[0];
13771377 out_xdevs[out_idx++] = two_hands[1];
13781378 }
13791379- // Don't need it anymore. And it's not even created unless we hit this codepath, which is somewhat hard.
13791379+ // Don't need it anymore. And it's not even created unless we enter this codepath, which is somewhat
13801380+ // hard.
13801381 t_stereo_camera_calibration_reference(&cal, NULL);
13811382 }
13821383#endif
+2-2
src/xrt/drivers/ultraleap_v2/ulv2_driver.cpp
···183183 ulv2_process_joint(nextJ(ld), fb(ld).basis(), fb(ld).width(), hi, xrtj(LITTLE_TIP));
184184 break;
185185 // I hear that Sagittarius has a better api, in C even, so hopefully
186186- // there'll be less weird boilerplate whenever we get access to that
186186+ // there'll be less weird boilerplate whenever we get that
187187 }
188188 }
189189}
···220220 "connected to Leap Motion "
221221 "controller. Retrying (%i / %i)",
222222 i, num_tries);
223223- // This codepath should very rarely get hit as nowadays this gets probed by VID/PID, so you'd
223223+ // This codepath should very rarely be enter as nowadays this gets probed by VID/PID, so you'd
224224 // have to be pretty fast to unplug after it gets probed and before this check.
225225 } else {
226226 ULV2_INFO(ulv2d,
+1-1
src/xrt/drivers/v4l2/v4l2_interface.h
···5050 /*!
5151 * Offset from start off frame to start of pixels.
5252 *
5353- * Aka crop_scanline_bytes_start.
5353+ * Also known as crop_scanline_bytes_start.
5454 *
5555 * Special case for ps4 camera
5656 */
+1-1
src/xrt/drivers/vive/vive_lighthouse.c
···435435 }
436436437437 if (frame->sweep_ids & (1 << id)) {
438438- LH_WARN("%s: sensor %u hit twice per frame, assuming reflection", watchman->name, id);
438438+ LH_WARN("%s: sensor %u triggered twice per frame, assuming reflection", watchman->name, id);
439439 return;
440440 }
441441
+2-1
src/xrt/drivers/vive/vive_prober.c
···286286 out_xdevs[out_idx++] = two_hands[0];
287287 out_xdevs[out_idx++] = two_hands[1];
288288 }
289289- // Don't need it anymore. And it's not even created unless we hit this codepath, which is somewhat hard.
289289+ // Don't need it anymore. And it's not even created unless we enter this codepath, which is somewhat
290290+ // hard.
290291 t_stereo_camera_calibration_reference(&cal, NULL);
291292 }
292293#endif
+1-1
src/xrt/drivers/vive/vive_protocol.h
···276276{
277277 uint8_t id;
278278 struct vive_headset_lighthouse_v2_pulse pulse[4];
279279- /* Seen to be all values in range [0 - 53], related to hit sensor (and
279279+ /* Seen to be all values in range [0 - 53], related to triggered sensor (and
280280 * imu?). */
281281 uint8_t unknown1;
282282 /* Always 0 */