Fix desync between web UI and NT (#778)

Actually calls VisionModule::setPipeline when changing pipelines (needed to change video modes)
This commit is contained in:
Matt
2023-01-29 23:30:34 -05:00
committed by GitHub
parent 88ed2ebf51
commit f6e3c9b3ee
6 changed files with 16 additions and 15 deletions

View File

@@ -168,7 +168,6 @@ class PhotonCamera {
std::shared_ptr<nt::NetworkTable> mainTable;
std::shared_ptr<nt::NetworkTable> rootTable;
nt::RawSubscriber rawBytesEntry;
nt::BooleanPublisher driverModeEntry;
nt::IntegerPublisher inputSaveImgEntry;
nt::IntegerSubscriber inputSaveImgSubscriber;
nt::IntegerPublisher outputSaveImgEntry;
@@ -178,6 +177,7 @@ class PhotonCamera {
nt::StringSubscriber versionEntry;
nt::BooleanSubscriber driverModeSubscriber;
nt::BooleanPublisher driverModePublisher;
nt::IntegerSubscriber pipelineIndexSubscriber;
nt::IntegerSubscriber ledModeSubscriber;