-
Notifications
You must be signed in to change notification settings - Fork 848
Expand file tree
/
Copy pathconstants.dart
More file actions
258 lines (239 loc) · 12.2 KB
/
Copy pathconstants.dart
File metadata and controls
258 lines (239 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
import 'dart:core';
List<String> instrumentHeadings = [
'OSCILLOSCOPE',
'MULTIMETER',
'LOGIC ANALYZER',
'SENSORS',
'WAVE GENERATOR',
'POWER SOURCE',
'LUX METER',
'ACCELEROMETER',
'BAROMETER',
'COMPASS',
'GYROSCOPE',
'THERMOMETER',
'ROBOTIC ARM',
'GAS SENSOR',
'DUST SENSOR',
'SOUND METER'
];
List<String> instrumentDesc = [
'Allows observation of varying signal voltages',
'Measure voltage, current, resistance and capacitance',
'Captures and displays signals from digital systems',
'Allows logging of data returned by sensor connected',
'Generates arbitrary analog and digital waveforms',
'Generates programmable voltage and currents',
'Measures the ambient light intensity',
'Measures the Linear acceleration in XYZ directions',
'Measures the atmospheric pressure',
'Three axes magnetometer pointing to magnetic north',
'Measures rate of rotation about XYZ axis',
'To measure the ambient temperature',
'Controls servos of a robotic arm',
'Air quality sensor for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke and CO2',
'Dust sensor is used to measure air quality in terms of particles per square meter',
'To measure the loudness in the environment in decibel(dB)'
];
List<String> instrumentIcons = [
'assets/icons/tile_icon_oscilloscope.png',
'assets/icons/tile_icon_multimeter.png',
'assets/icons/tile_icon_logic_analyzer.png',
'assets/icons/tile_icon_sensors.png',
'assets/icons/tile_icon_wave_generator.png',
'assets/icons/tile_icon_power_source.png',
'assets/icons/tile_icon_lux_meter.png',
'assets/icons/tile_icon_accelerometer.png',
'assets/icons/tile_icon_barometer.png',
'assets/icons/tile_icon_compass.png',
'assets/icons/gyroscope_logo.png',
'assets/icons/thermometer_logo.png',
'assets/icons/robotic_arm.png',
'assets/icons/tile_icon_gas.png',
'assets/icons/tile_icon_gas.png',
'assets/icons/tile_icon_gas.png',
];
List<String> yAxisRanges = [
'+/-16V',
'+/-8V',
'+/-4V',
'+/-3V',
'+/-2V',
'+/-1.5V',
'+/-1V',
'+/-500mV',
'+/-160V',
];
List<String> rangeMenuEntries = [
'CH1',
'CH2',
'CH3',
'MIC',
'CAP',
'RES',
'VOL',
];
List<String> channelEntries = [
'CH1',
'CH2',
'CH3',
'MIC',
];
String connectDevice = 'Connect Device';
String deviceConnected = 'Device Connected Successfully';
String noDeviceFound = 'No USB Device Found';
List<String> stepsToConnect = [
'Steps to connect the PSLab Device',
'1. Connect a micro USB(Mini B) to PSLab',
'2. Connect the other end of the micro USB cable to a OTG',
'3. Connect the OTG to the phone'
];
String bluetoothWifiConnection = 'Connect using Bluetooth or Wi-Fi';
String bluetooth = 'BLUETOOTH';
String wifi = 'WIFI';
String whatisPslab = 'What is PSLab Device?';
String pslabUrl = 'https://pslab.io';
String settings = 'Settings';
String start = 'Auto Start';
String autoStartText = 'Auto start app when PSLab device is connected';
String export = 'Export Data Format';
String txtFormat = 'TXT Format';
String csvFormat = 'CSV Format';
String cancel = 'CANCEL';
String currentFormat = 'Current format is ';
String aboutUs = 'About Us';
String pslabDescription =
'The goal of PSLab is to create an Open Source hardware device (open on all layers) that can be used for experiments by teachers, students and citizen scientists. Our tiny pocket lab provides an array of sensors for doing science and engineering experiments. It provides functions of numerous measurement devices including an oscilloscope, a waveform generator, a frequency generator, a frequency counter, a programmable voltage, current source and as a data logger.';
String feedbackNBugs = 'Feedback & Bugs';
String feedbackForm = 'https://goo.gl/forms/sHlmRAPFmzcGQ27u2';
String website = 'https://pslab.io/';
String github = 'https://github.com/fossasia/';
String facebook = 'https://www.facebook.com/pslabio/';
String x = 'https://x.com/pslabio/';
String youtube = 'https://www.youtube.com/channel/UCQprMsG-raCIMlBudm20iLQ/';
String mail = 'pslab-fossasia@googlegroups.com';
String developers =
'https://github.com/fossasia/pslab-android/graphs/contributors';
List<String> connectWithUs = [
'Connect with us',
'Contact us',
'Visit our website',
'Fork us on GitHub',
'Like us on Facebook',
'Follow us on X',
'Watch us on Youtube',
'Developers'
];
String softwareLicenses = 'Software Licenses';
String tryDifferentSearchSuggestion = 'Try a different search term';
String noInstrumentsFoundMessage = 'No instruments found';
String searchInstrumentsHint = 'Search instruments...';
String instrumentsTitle = 'Instruments';
String faqTitle = 'FAQs';
String launchError = 'Could not launch';
String Q = 'Q:';
String A = 'A:';
class FAQConstants {
static const String whatIsPslab =
"What is Pocket Science Lab? What can I do with it?";
static const String whereToBuy = "Where can I buy a Pocket Science Lab?";
static const String downloadAndroidApp =
"Where can I download the Android App for Pocket Science Lab?";
static const String downloadDesktopApp =
"Where can I download the desktop app for Pocket Science Lab for Windows, Linux and Mac?";
static const String howToConnect =
"How can I connect to the device? What kind of USB cable do I need? What is an OTG USB cable?";
static const String reportBug =
"I found a bug in one of your apps or hardware. What to do? Where should I report it?";
static const String recordData =
"Can I record or save data in the apps and export or import it?";
static const String usePhoneSensors =
"My Android phone already has some sensors, can I use them with the PSLab app as well?";
static const String compatibleSensors =
"Which external sensors can I use with a PSLab device and the apps? Which ones are compatible?";
static const String whatIsPslabAnswer =
"Pocket Science Lab (PSLab) is a small USB powered hardware board that can be used for measurements and experiments. It works as an extension for Android phones or PCs. PSLab comes with a built-in Oscilloscope, Multimeter, Wave Generator, Logic Analyzer, Power Source, and many more instruments. It can also be used as a robotics control app. And, we are constantly adding more digital instruments. PSLab is many devices in one. Simply connect two wires to the relevant pins (description is on the back of the PSLab board) and start measuring. You can use our Open Source Android or desktop app to view and collect the data. You can also plug in hundreds of compatible I²C standard sensors to the PSLab pin slots. It works without the need for programming. So, what experiments you do is just limited to your imagination!";
static const String whereToBuyAnswer =
"There is an overview page for shops where you can buy a Pocket Science Lab device in different regions on the website at ";
static const String whereToBuyLinkText = "https://pslab.io/shop/";
static const String whereToBuyLinkUrl = "https://pslab.io/shop/";
static const String downloadAndroidAppAnswer =
"The app can be downloaded from F-Droid or Play Store. Simply click on the links to be directed over!";
static const String downloadAndroidAppLinkText = "Playstore";
static const String downloadAndroidAppLinkUrl =
"https://play.google.com/store/apps/details?id=io.pslab&hl=en_IN";
static const String downloadDesktopAppAnswer =
"We are developing a desktop app for Windows, Linux and Mac in our desktop Git repository. You can find it in the install branch of the project here. The app is still under development. We are using technologies like Electron and Python, that work on all platforms. However, to make the final installer work everywhere requires some tweaks and improvements here and there. So, please expect some glitches. You can use the tracker in the repository to submit issues, bugs and feature requests.";
static const String howToConnectAnswer =
"To connect to the device you need an OTG USB cable (OTG = On the go) which is a USB cable that allows connected devices to switch back and forth between the roles of host and device. USB cables that are not OTG compatible will NOT work. It is also possible to extend the PSLab with an ESP WiFi chip or a Bluetooth chip and communicate through these gateways using the Android app. You can refer to the hardware developer documentation and code on GitHub for more details here.";
static const String reportBugAnswer =
"We have issue trackers in all our projects. They are currently hosted on GitHub. In order to submit a bug or feature request you need to login to the service.";
static const String reportBugLinkText =
"A list of our PSLab repositories is here";
static const String reportBugLinkUrl = "https://github.com/fossasia";
static const String recordDataAnswer =
"Yes, we have implemented a record and play function or a way to save and open configurations in the instruments on the Android and desktop app. Data you record can be imported into the apps and viewed. This feature is still under heavy development, but works well in most places. You can find it in the top bar of the apps. There are buttons to record, play, save and open data.";
static const String usePhoneSensorsAnswer =
"Yes, absolutely. You can install the PSLab Android app (Play Store, Fdroid) on your phone and use it with devices such as Luxmeter or Compass. We are adding support for more built-in sensors step by step.";
static const String compatibleSensorsAnswer =
"In our apps we use the industry standard I²C (Wikipedia). You can get the data from sensors that are connected to the device through the USB port using an OTG USB cable (OTG = On the go) which is a USB cable that allows connected devices to switch back and forth between the roles of host and device. For the transfer we use UART (universal asynchronous receiver-transmitter, Wikipedia). Many sensors can be used with specific instruments, e.g. Barometer, Thermometer, Gyroscope etc. You can access the configuration for sensors in the instrument settings on the top right burger menu of each instrument. All sensors using the I²C standard are compatible with the device. There are connection pins for analogue and digital sensors. You find the description of the pins on the back of the device. Even if there is no specific instrument in one of our apps yet, you can still view and store the raw data using the Oscilloscope instrument component. There is a page with a list of recommended sensors on the website.";
}
String accelerometer = 'Accelerometer';
String xAxis = 'x';
String yAxis = 'y';
String zAxis = 'z';
String timeAxisLabel = 'Time(s)';
String accelerationAxisLabel = 'm/s²';
String minValue = 'Min: ';
String maxValue = 'Max: ';
String gyroscopeTitle = "Gyroscope";
String gyroscopeAxisLabel = 'rad/s';
String noData = 'No data available';
String degreeSymbol = '°';
String enterAngleRange = 'Enter angle (0 - 360)';
String errorCannotBeEmpty = 'Cannot be empty';
String servoValidNumberRange = 'Please enter a valid number between 0 and 360';
String ok = 'Ok';
String roboticArm = 'Robotic Arm';
String play = 'Play';
String pause = 'Pause';
String stop = 'Stop';
String controls = 'Controls';
String saveData = 'Save Data';
String showGuide = 'Show Guide';
String showLoggedDataKey = 'show_logged_data';
String showLoggedData = 'Show Logged Data';
String setAngle = 'Set angle for Servo';
String angleDialog = 'AngleDialog';
List<String> servoLabels = [
'Servo 1',
'Servo 2',
'Servo 3',
'Servo 4',
];
String xyPlot = 'XY Plot';
String enablePlot = 'Enable XY Plot';
String trigger = 'Trigger';
String timeBase = 'Timebase';
String timeBaseAndTrigger = 'Timebase & Trigger';
String offsets = 'Offsets';
String dataAnalysis = 'Data Analysis';
String fourierAnalysis = 'Fourier Analysis';
String channels = 'Channels';
String pslabMic = 'PSLab MIC';
String inBuiltMic = 'In-Built MIC';
String ch3Range = 'CH3 (+/- 3.3V)';
String rangeValue = '+/-16V';
String range = 'Range';
String ch2 = 'CH2';
String ch1 = 'CH1';
String luxMeterTitle = 'Lux Meter';
String builtIn = 'Built-In';
String lx = 'Lx';
String maxScaleError = 'Max Scale';
String lightSensorError = 'Light sensor error:';
String lightSensorInitialError = 'Failed to initialize light sensor:';
String soundMeterError = 'Sound sensor error:';
String soundMeterInitialError = 'Sound sensor initialization error:';
String db = 'dB';
String soundMeterTitle = 'Sound Meter';