mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 15:51:53 +08:00
Initial revision
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# COPYRIGHT (c) 1996-1997.
|
||||
# On-Line Applications Research Corporation (OAR).
|
||||
# All rights reserved.
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
CC=gcc
|
||||
#CFLAGS=-O4 -fomit-frame-pointer
|
||||
CFLAGS=-g
|
||||
|
||||
PROJECT=afcc
|
||||
TEXINPUTS=/home/gnu/work/binutils-2.6/texinfo:.
|
||||
BASE=Drive
|
||||
FILES=afcc.texi $(BASE).txt
|
||||
PROG=pdl2texi
|
||||
|
||||
all: $(PROG)
|
||||
|
||||
$(BASE).texi: $(BASE).d ./$(PROG)
|
||||
./$(PROG) $(BASE).d
|
||||
|
||||
$(PROG): main.o chain.o
|
||||
gcc -static main.o chain.o -o $(PROG)
|
||||
|
||||
drive: Drive
|
||||
Drive: $(BASE).txt
|
||||
/usr1/home/joel/tmp/makeinfo $(PROJECT).texi
|
||||
|
||||
main.o: main.c base.h
|
||||
|
||||
chain.o: chain.c
|
||||
|
||||
dvi: $(PROJECT).dvi
|
||||
ps: $(PROJECT).ps
|
||||
info: Drive
|
||||
html: $(PROJECT).texi $(BASE).txt
|
||||
../textools/texi2html $(PROJECT).texi
|
||||
|
||||
$(BASE).txt: $(BASE).d
|
||||
./$(PROG) -v -p "Turret Subsystem" -u "Turret Subsystem" $(BASE).d
|
||||
|
||||
$(PROJECT).ps: $(PROJECT).dvi
|
||||
dvips -o $(PROJECT).ps $(PROJECT).dvi
|
||||
|
||||
$(PROJECT).dvi: $(FILES)
|
||||
texi2dvi $(PROJECT).texi
|
||||
|
||||
view:
|
||||
test -r $(PROJECT).ps && ghostview $(PROJECT).ps
|
||||
|
||||
tests: test test1
|
||||
|
||||
test: $(PROG)
|
||||
rm -f $(BASE).texi
|
||||
./$(PROG) -v -p "Turret Subsystem" -u "Turret Subsystem" $(BASE).d
|
||||
|
||||
test1:
|
||||
rm -f t1.txt
|
||||
./$(PROG) -v t1.d
|
||||
|
||||
clean:
|
||||
rm -f *.o $(PROG) *.txt core *.html $(PROJECT) Drive.texi
|
||||
rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
@setfilename afcc
|
||||
@settitle AFCC Internals Guide
|
||||
@paragraphindent 0
|
||||
@c %**end of header
|
||||
|
||||
@c
|
||||
@c COPYRIGHT (c) 1996-1997.
|
||||
@c On-Line Applications Research Corporation (OAR).
|
||||
@c All rights reserved.
|
||||
@c
|
||||
|
||||
@c This prevents a black box from being printed on "overflow" lines.
|
||||
@c The alternative is to rework a sentence to avoid this problem.
|
||||
@finalout
|
||||
|
||||
@tex
|
||||
\global\parindent 0in
|
||||
\global\chapheadingskip = 15pt plus 4pt minus 2pt
|
||||
\global\secheadingskip = 12pt plus 4pt minus 2pt
|
||||
\global\subsecheadingskip = 9pt plus 4pt minus 2pt
|
||||
|
||||
@ifclear smallbook
|
||||
\global\parskip 6pt plus 1pt
|
||||
@end ifclear
|
||||
@end tex
|
||||
|
||||
@ifinfo
|
||||
@format
|
||||
START-INFO-DIR-ENTRY
|
||||
* AFCC: . AFCC Objects
|
||||
END-INFO-DIR-ENTRY
|
||||
@end format
|
||||
@end ifinfo
|
||||
|
||||
|
||||
@c Joel's Questions
|
||||
@c
|
||||
@c 1. Why does paragraphindent only impact makeinfo?
|
||||
@c
|
||||
|
||||
@setchapternewpage odd
|
||||
|
||||
@c
|
||||
@c Master file for the C User's Guide
|
||||
@c
|
||||
@include Drive.texi
|
||||
@ifinfo
|
||||
|
||||
@node Top, Turret Subsystem, Gunner Station Subsystem, (dir)
|
||||
@top afcc
|
||||
|
||||
This is the info version of the object documentation for the AFCC.
|
||||
|
||||
The following subsystems are in the AFCC:
|
||||
|
||||
@menu
|
||||
* Turret Subsystem::
|
||||
* Vehicle Subsystem::
|
||||
* Gunner Station Subsystem::
|
||||
@end menu
|
||||
|
||||
@node Turret Subsystem, , Top, Top
|
||||
|
||||
The following objects are in the Turret Subsystem:
|
||||
|
||||
@menu
|
||||
* Drive Object:: Drive Object
|
||||
@end menu
|
||||
|
||||
@node Vehicle Subsystem, Gunner Station Subsystem, , Top
|
||||
|
||||
@menu
|
||||
The following objects are in the Turret Subsystem:
|
||||
|
||||
* ::
|
||||
@end menu
|
||||
|
||||
@node Gunner Station Subsystem, Top, Vehicle Subsystem, Top
|
||||
@menu
|
||||
|
||||
The following objects are in the Gunner Station Subsystem:
|
||||
|
||||
* ::
|
||||
@end menu
|
||||
|
||||
|
||||
@end ifinfo
|
||||
@c
|
||||
@c
|
||||
@c Need to copy the emacs stuff and "trailer stuff" (index, toc) into here
|
||||
@c
|
||||
@bye
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1997.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
* All rights reserved.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __PDL2AMI_h
|
||||
#define __PDL2AMI_h
|
||||
|
||||
#include "system.h"
|
||||
#include "chain.h"
|
||||
|
||||
#ifndef EXTERN
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Paragraph size should be kept down because it is allocated for each
|
||||
* Line_Control. If this number is large, the memory requirements for
|
||||
* the program increase significantly.
|
||||
*/
|
||||
|
||||
#define BUFFER_SIZE (2 * 1024)
|
||||
#define PARAGRAPH_SIZE (2 * 1024)
|
||||
|
||||
#define NUMBER_ELEMENTS( _x ) (sizeof(_x) / sizeof _x[0])
|
||||
|
||||
void exit_application(
|
||||
int status
|
||||
);
|
||||
|
||||
void ProcessFile(
|
||||
char *inname,
|
||||
char *outname
|
||||
);
|
||||
|
||||
void strtolower(
|
||||
char *dest,
|
||||
char *src
|
||||
);
|
||||
|
||||
void strtoInitialCaps(
|
||||
char *dest,
|
||||
char *src
|
||||
);
|
||||
|
||||
void StripBlanks( void );
|
||||
|
||||
void MergeParagraphs( void );
|
||||
|
||||
int CheckForIncomplete( void );
|
||||
|
||||
int CheckOutline( void );
|
||||
|
||||
int CheckSections( void );
|
||||
|
||||
void GenerateLists( void );
|
||||
|
||||
void GenerateAList(
|
||||
char *section,
|
||||
Chain_Control *the_list
|
||||
);
|
||||
|
||||
void LookForInternalInconsistencies( void );
|
||||
|
||||
int Match_Argument(
|
||||
char **array,
|
||||
int entries,
|
||||
char *users
|
||||
);
|
||||
|
||||
void usage( void );
|
||||
|
||||
void ReadFileIntoChain(
|
||||
char *inname
|
||||
);
|
||||
|
||||
int MergeText( void );
|
||||
|
||||
int CheckForBadWhiteSpace();
|
||||
|
||||
void RemoveCopyright();
|
||||
|
||||
void RemovePagebreaks();
|
||||
|
||||
int RemoveExtraBlankLines();
|
||||
|
||||
void FormatToTexinfo( void );
|
||||
|
||||
void PrintFile(
|
||||
char *out
|
||||
);
|
||||
|
||||
void DumpList(
|
||||
Chain_Control *the_list
|
||||
);
|
||||
|
||||
void ReleaseFile();
|
||||
|
||||
EXTERN boolean Verbose; /* status/debug msgs */
|
||||
EXTERN boolean Statistics; /* statistics msgs */
|
||||
EXTERN boolean IncompletesAreErrors;
|
||||
EXTERN boolean InsertTBDs;
|
||||
EXTERN Chain_Control Lines;
|
||||
|
||||
EXTERN int NumberOfAttributes;
|
||||
EXTERN int NumberOfAssociations;
|
||||
EXTERN int NumberOfAbstractTypes;
|
||||
EXTERN int NumberOfDataItems;
|
||||
EXTERN int NumberOfMethods;
|
||||
EXTERN int NumberOfTasks;
|
||||
|
||||
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,52 @@
|
||||
OBJECT: Drive
|
||||
DESCRIPTION:
|
||||
This object provides an interface to the elevation/azimuth
|
||||
drive system(ECA).
|
||||
THEORY OF OPERATION:
|
||||
This object encapsulates the turret drive. The object provides
|
||||
an interface to control the turret drive. A method is provided
|
||||
to set the azimuth and elevation rate of the drive. Methods are
|
||||
provided to request the drive to run in stabilized or power mode
|
||||
and set the drive speed to high or low. A method is also provided
|
||||
to allow for drift adjust.
|
||||
|
||||
This object also tracks drive system on hours. It gets the hours
|
||||
from the EEPROM data, allows the hours to be set, updates the
|
||||
hours via the activation and deactivation of the drive, and
|
||||
provides access to the hours.
|
||||
|
||||
The object also provides methods to access azimuth and elevation
|
||||
displacement, and methods to process changes in the hardware
|
||||
discretes drive on, stabilized mode, thermal fault and fault.
|
||||
|
||||
The object also provides methods to enable and disable
|
||||
both the remote and turret power interlocks which determine if
|
||||
the drive can be driven by the remote or turret handstation
|
||||
respectively.
|
||||
|
||||
ATTRIBUTE DESCRIPTIONS:
|
||||
|
||||
|
||||
ATTRIBUTE: Azimuth_displacement
|
||||
DESCRIPTION:
|
||||
This attribute represents the current azimuth displacement
|
||||
of the turret.
|
||||
TYPE: float constant
|
||||
RANGE: 0-0
|
||||
UNITS: degrees
|
||||
REQUIREMENTS:
|
||||
AFS 8.2.11 Receive Azimuth Displacement and Elevation Displacement
|
||||
AIS 5.2.6 Azimuth Displacement analog
|
||||
|
||||
|
||||
ASSOCIATION DESCRIPTIONS: none
|
||||
|
||||
ABSTRACT TYPE DESCRIPTIONS: none
|
||||
|
||||
DATA ITEM DESCRIPTIONS: none
|
||||
|
||||
METHOD DESCRIPTIONS: none
|
||||
|
||||
TASK DESCRIPTIONS: none
|
||||
|
||||
END OBJECT: Drive
|
||||
Reference in New Issue
Block a user