Class SqlConfigProvider
java.lang.Object
org.photonvision.common.configuration.ConfigProvider
org.photonvision.common.configuration.SqlConfigProvider
Saves settings in a SQLite database file (called photon.sqlite).
Within this database we have a cameras database, which has one row per camera, and holds: unique_name, config_json, drivermode_json, pipeline_jsons.
Global has one row per global config file (like hardware settings and network settings)
-
Field Summary
Fields inherited from class org.photonvision.common.configuration.ConfigProvider
config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
load()
boolean
boolean
saveUploadedAprilTagFieldLayout
(Path uploadPath) boolean
saveUploadedHardwareConfig
(Path uploadPath) boolean
saveUploadedHardwareSettings
(Path uploadPath) boolean
saveUploadedNetworkConfig
(Path uploadPath) void
setConfig
(PhotonConfiguration config) Methods inherited from class org.photonvision.common.configuration.ConfigProvider
clearConfig
-
Constructor Details
-
SqlConfigProvider
-
-
Method Details
-
getConfig
-
getUserVersion
public int getUserVersion() -
saveToDisk
public boolean saveToDisk() -
load
public void load() -
saveUploadedHardwareConfig
- Specified by:
saveUploadedHardwareConfig
in classConfigProvider
-
saveUploadedHardwareSettings
- Specified by:
saveUploadedHardwareSettings
in classConfigProvider
-
saveUploadedNetworkConfig
- Specified by:
saveUploadedNetworkConfig
in classConfigProvider
-
saveUploadedAprilTagFieldLayout
- Specified by:
saveUploadedAprilTagFieldLayout
in classConfigProvider
-
setConfig
-