mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
UsbCamera: Allow silencing of Connecting message (#1231)
This commit is contained in:
@@ -26,6 +26,15 @@ class UsbCameraProperty : public PropertyImpl {
|
||||
UsbCameraProperty() = default;
|
||||
explicit UsbCameraProperty(wpi::StringRef name_) : PropertyImpl{name_} {}
|
||||
|
||||
// Software property constructor
|
||||
UsbCameraProperty(wpi::StringRef name_, unsigned id_, CS_PropertyKind kind_,
|
||||
int minimum_, int maximum_, int step_, int defaultValue_,
|
||||
int value_)
|
||||
: PropertyImpl(name_, kind_, minimum_, maximum_, step_, defaultValue_,
|
||||
value_),
|
||||
device{false},
|
||||
id{id_} {}
|
||||
|
||||
// Normalized property constructor
|
||||
UsbCameraProperty(wpi::StringRef name_, int rawIndex_,
|
||||
const UsbCameraProperty& rawProp, int defaultValue_,
|
||||
@@ -55,6 +64,9 @@ class UsbCameraProperty : public PropertyImpl {
|
||||
wpi::StringRef newValueStr) const;
|
||||
#endif
|
||||
|
||||
// If this is a device (rather than software) property
|
||||
bool device{true};
|
||||
|
||||
// If this is a percentage (rather than raw) property
|
||||
bool percentage{false};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user