From 8332d652eac5b46d8b8b02b25d47aa5355ef31cd Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 3 Aug 2025 18:25:31 +0200 Subject: added schott json --- include/glass_data.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/glass_data.h') diff --git a/include/glass_data.h b/include/glass_data.h index a5eb3c6..277adfa 100644 --- a/include/glass_data.h +++ b/include/glass_data.h @@ -18,8 +18,8 @@ // Structure to represent an optical glass typedef struct { byte name[50]; - f32 abbeNumber; // X-axis - f32 refractiveIndex; // Y-axis + f32 abbeNumber; // X-axis (vd) + f32 refractiveIndex; // Y-axis (nd) } Glass; // Get number of glasses in the catalog @@ -37,4 +37,7 @@ void find_glass_data_range(f32 *minAbbe, f32 *maxAbbe, f32 *minRI, f32 *maxRI); // Initialize glass data - call at program start void initialize_glass_data(void); +// Load glasses from JSON file +b32 load_glasses_from_json(const byte* json_path, const byte* manufacturer_filter); + #endif /* GLASS_DATA_H */ -- cgit v1.2.3