Allow file uploads of any size and better report active cameras in PhotonCamera error print (#1298)

Previously reported itself which was confusing. New print:

```
Error at org.photonvision.PhotonCamera.verifyVersion(PhotonCamera.java:378): Found the following PhotonVision cameras active on NetworkTables:
 ==> HD_Pro_Webcam_C920
 ==> Arducam_OV9281_USB_Camera
```
This commit is contained in:
Matt
2024-05-10 14:58:18 -04:00
committed by GitHub
parent 1708376df8
commit 713fad6f6b
6 changed files with 76 additions and 27 deletions

View File

@@ -26,6 +26,7 @@
#include <memory>
#include <string>
#include <vector>
#include <networktables/BooleanTopic.h>
#include <networktables/DoubleArrayTopic.h>
@@ -182,10 +183,10 @@ class PhotonCamera {
nt::BooleanPublisher driverModePublisher;
nt::IntegerSubscriber ledModeSubscriber;
nt::MultiSubscriber m_topicNameSubscriber;
nt::MultiSubscriber topicNameSubscriber;
std::string path;
std::string m_cameraName;
std::string cameraName;
mutable Packet packet;
@@ -195,6 +196,8 @@ class PhotonCamera {
inline static int InstanceCount = 0;
void VerifyVersion();
std::vector<std::string> tablesThatLookLikePhotonCameras();
};
} // namespace photon