Skip to content

Fix usage reporting. #1964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@

/** Represents a camera that is connected to PhotonVision. */
public class PhotonCamera implements AutoCloseable {
private static int InstanceCount = 0;
private static int InstanceCount = 1;
public static final String kTableName = "photonvision";
private static final String PHOTON_ALERT_GROUP = "PhotonAlerts";

Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
* below. Example usage can be found in our apriltagExample example project.
*/
public class PhotonPoseEstimator {
private static int InstanceCount = 0;
private static int InstanceCount = 1;

/** Position estimation strategies that can be used by the {@link PhotonPoseEstimator} class. */
public enum PoseStrategy {
2 changes: 1 addition & 1 deletion photon-lib/src/main/native/include/photon/PhotonCamera.h
Original file line number Diff line number Diff line change
@@ -225,7 +225,7 @@ class PhotonCamera {
private:
units::second_t lastVersionCheckTime = 0_s;
static bool VERSION_CHECK_ENABLED;
inline static int InstanceCount = 0;
inline static int InstanceCount = 1;

units::second_t prevTimeSyncWarnTime = 0_s;

Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ class PhotonPoseEstimator {

units::second_t poseCacheTimestamp;

inline static int InstanceCount = 0;
inline static int InstanceCount = 1;

inline void InvalidatePoseCache() { poseCacheTimestamp = -1_s; }


Unchanged files with check annotations Beta

import math
import typing
import cscore as cs

Check failure on line 4 in photon-lib/py/photonlibpy/simulation/photonCameraSim.py

GitHub Actions / buildAndDeploy

Skipping analyzing "cscore": module is installed, but missing library stubs or py.typed marker
import cv2 as cv
import numpy as np
import wpilib