#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 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/>. ! -----------------------------------------------------------------------------** !
Definition at line 36 of file compass.c.
Referenced by main().
void exif_init_compass_meta | ( | struct meta_CompassInfo_t * | meta | ) |
Definition at line 41 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().
Definition at line 53 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(), fd_exif, stderr, and write.