apps/compass/compass.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <asm/elphel/exifa.h>
#include <asm/byteorder.h>

Include dependency graph for compass.c:

Go to the source code of this file.

Defines

#define EXIF_DEV   "/dev/exif_meta"
#define PROGRAM_SERIAL   0
#define D(x)

Functions

void exif_init_compass_meta (struct meta_CompassInfo_t *meta)
int main (int argc, char *argv[])


Define Documentation

#define D ( x   ) 

Definition at line 41 of file compass.c.

#define EXIF_DEV   "/dev/exif_meta"

*************************************************************************** ! FILE NAME : compass.c ! DESCRIPTION: converts output from the compass module (now OS5000) to Exif ! in Elphel cameras ! Copyright (C) 2002-2007 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/>. ! -----------------------------------------------------------------------------** !

Log
compass.c,v
! Revision 1.1.1.1 2008/11/27 20:04:01 elphel ! ! ! Revision 1.1 2008/04/07 09:16:31 elphel ! converting OS-5000 compass output to Exif !

Definition at line 39 of file compass.c.

Referenced by main().

#define PROGRAM_SERIAL   0

Definition at line 40 of file compass.c.


Function Documentation

void exif_init_compass_meta ( struct meta_CompassInfo_t meta  ) 

Definition at line 44 of file compass.c.

References meta_CompassInfo_t::CompassDirection_denom, meta_CompassInfo_t::CompassDirection_nom, meta_CompassInfo_t::CompassPitch_denom, meta_CompassInfo_t::CompassPitch_nom, meta_CompassInfo_t::CompassPitchRef, meta_CompassInfo_t::CompassRoll_denom, meta_CompassInfo_t::CompassRoll_nom, meta_CompassInfo_t::CompassRollRef, and EXIF_GPS_COMPASS_DENOM.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

*************************************************************************** ! FILE NAME : autoexposure.c ! DESCRIPTION: Daemon to adjust camera exposure and white balance ! 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/>. ! -----------------------------------------------------------------------------** ! !

Log
autoexposure.c,v
! Revision 1.1.1.1 2008/11/27 20:04:01 elphel ! ! ! Revision 1.16 2008/11/18 19:30:16 elphel ! Added initialization of the "next" frame - otherwise it wait _very_ long if the camera frame number is reset ! ! Revision 1.15 2008/11/15 23:08:24 elphel ! 8.0.alpha17 - split autoexposure source file ! ! Revision 1.14 2008/11/15 07:05:38 elphel ! implemented analog gain control (in addition to gammas) while while balancing ! ! Revision 1.13 2008/11/15 03:10:13 elphel ! Some parameters renamed, reassigned. ! ! Revision 1.12 2008/11/14 07:13:32 elphel ! Added gammaReverse() and gammaDirect() functions, TODO lists, bug fixes ! ! Revision 1.11 2008/11/14 01:01:59 elphel ! cleared debug output ! ! Revision 1.10 2008/11/13 05:40:45 elphel ! 8.0.alpha16 - modified histogram storage, profiling ! ! Revision 1.9 2008/11/08 05:52:21 elphel ! debug feature ! ! Revision 1.8 2008/11/04 17:40:34 elphel ! comment typos ! ! Revision 1.7 2008/11/02 00:32:35 elphel ! added TODO ! ! Revision 1.6 2008/10/31 18:26:32 elphel ! Adding support for constants like SENSOR_REGS32 (defined constant plus 32 to simplify referencing sensor registers from PHP ! ! Revision 1.5 2008/10/29 04:18:28 elphel ! v.8.0.alpha10 made a separate structure for global parameters (not related to particular frames in a frame queue) ! ! Revision 1.4 2008/10/28 07:05:12 elphel ! implemented white balance, HDR mode (1/1 and 2/2) ! ! Revision 1.3 2008/10/26 05:55:38 elphel ! snapshot ! ! Revision 1.2 2008/10/25 19:49:15 elphel ! 8.0.alpha8 - added autoexposure to the installation ! ! Revision 1.1 2008/10/24 00:34:12 elphel ! initial release !

will autodetect by the first measurement

verify NMEA $...*HH

Definition at line 56 of file compass.c.

References meta_CompassInfo_t::CompassDirection_nom, meta_CompassInfo_t::CompassPitch_nom, meta_CompassInfo_t::CompassPitchRef, meta_CompassInfo_t::CompassRoll_nom, meta_CompassInfo_t::CompassRollRef, D, EXIF_COMPASS_PITCH_ASCII, EXIF_COMPASS_ROLL_ASCII, EXIF_DEV, EXIF_GPS_COMPASS_DENOM, Exif_GPSInfo_CompassDirection, exif_init_compass_meta(), exit, fd_exif, SEEK_END, stderr, and write.


Generated on Fri Nov 28 00:07:01 2008 for elphel by  doxygen 1.5.1