then scale the result by multiplying it by 11.0.
Example:
pwr_v_in = 910
(raw value)
(910 * 5.0) / 4096 = 1.111
1.111 * 11.0 = 12.219 V
10.2.3.4 Get Snapshot
Downloads sensor snapshot data to an HDL file. This has the same effect as clicking on the Download Snapshot button
under the Configuration tab.
Command:
curl http://192.168.1.201/cgi/snapshot.hdl > snapshot.hdl
10.2.3.5 Get Sensor Status
Returns sensor state data, such as: GPS PPS is present, GPS position, motor status, phase, and laser states.
Command:
curl http://192.168.1.201/cgi/status.json
Example Response:
{
"gps":{
"pps_state":"Absent",
"position":""
},
"motor":{
"state":"On",
"rpm":600,
"lock":"Off",
"phase":0
},
"laser":{
"state":"On"
}
}
10.2.3.6 Set Motor RPM
Sets the RPM of the motor. Valid integer values range from 300 to 1200, in increments of 60. (If the RPM setting is not
evenly divisible by 60, neither motor speed control nor phase lock functions will function properly.) For values 1
through 299, the sensor defaults back to 300 RPM. If a value of 0 or less is entered, the sensor motor powers down and
the lasers are turned off, as leaving them on with the motor stopped would be an unsafe eye state. This has the same
effect as setting the value for the Motor RPM in the Web Interface.
Command:
curl --data “rpm=[integer]” http://192.168.1.201/cgi/setting
Example:
curl --data “rpm=600” http://192.168.1.201/cgi/setting
82
VLP-16 User Manual