Go to the source code of this file.
Variables | |
$ser_port = "/dev/ttyUSB0" | |
$xml = new SimpleXMLElement("<?xml version='1.0'?><hpr/>") | |
$s = str_split($_SERVER["QUERY_STRING"]) | |
$sero = fopen($ser_port,"w") | |
$seri = fopen($ser_port,"r") | |
$n = fwrite($sero,chr(27).$s[0]."\n") | |
$response = fgets($seri) | |
$n = fwrite($sero,"$s1\n") | |
$response = "; ".fgets($seri) | |
$rslt = $xml->asXML() |
Definition at line 57 of file compass_os5000.php.
Definition at line 55 of file compass_os5000.php.
$response = "; ".fgets($seri) |
Definition at line 61 of file compass_os5000.php.
$response = fgets($seri) |
Definition at line 56 of file compass_os5000.php.
$rslt = $xml->asXML() |
Definition at line 69 of file compass_os5000.php.
Referenced by _returnXML(), gen_dynamic_xml(), gen_static_xml(), i2c_write256b(), parseGetNames(), showHistGamma(), and showJpegHeader().
$s = str_split($_SERVER["QUERY_STRING"]) |
Definition at line 44 of file compass_os5000.php.
Referenced by apply_triggers(), cat_interupts(), cat_sdram(), fpga(), getSerial(), ifconfig(), myval(), nicefloaty(), parse_seq(), seq_extract_channel(), and substitute_value().
$ser_port = "/dev/ttyUSB0" |
******************************************************************************* ! FILE NAME : compass.php ! DESCRIPTION: Reads Heading, Roll, Pitch from the Honeywell HMR3000 compass ! module attached to the serial port of the Elphel model 353 camera ! Requires 10349/10369 boards with extra connection to +5V ! (on 10369 can use 4-pin RJ45 sync out as power). ! Needs system to be configured with the debug port disabled. ! Copyright (C) 2008 Elphel, Inc ! -----------------------------------------------------------------------------** ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** ! !
Definition at line 40 of file compass_os5000.php.
$seri = fopen($ser_port,"r") |
Definition at line 53 of file compass_os5000.php.
$sero = fopen($ser_port,"w") |
Definition at line 52 of file compass_os5000.php.
$xml = new SimpleXMLElement("<?xml version='1.0'?><hpr/>") |
Definition at line 42 of file compass_os5000.php.
Referenced by _returnXML(), encodeConfig(), gen_dynamic_xml(), gen_static_xml(), i2c_ctl(), parseGetNames(), showHistGamma(), and showJpegHeader().