NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Software > PlanOfRecordC42007 > ModificationRequest1C407
   Changes | Index | Contents | Search | Statistics | Go

Implement PFM-5 Pointing/Focusing Correction Model

Modification Request #1 Cycle 4, 2007



1. Introduction

This MR details the work to be done to incorporate a new pointing and focusing model in the antenna manager. The changes described here will be released for tests on or before August 1st, 2007.

2. Background

The current implementation of the pointing focus model version 4, is spread between the antenna coordinator and antenna manager, antenna characterization manager and active surface manager. The antenna manager implements the static geometric and gravitational models for pointing and focus tracking. The antenna coordinator coordinates with the scan-coordinator, reads the pfm database, and writes the antenna FITS files. The antenna characterization manager implements the (dynamic) thermal correction models for pointing and focusing, and passes the corrections to the antenna manager at regular intervals. As scans are run, the antenna manager uses the corrections to command the servos and then records the position data during the scan as well as all data associated with the pointing/focusing. A number of ancillary data items are recorded in the antenna FITS file by the antenna coordinator to document what corrections went into the model for a given scan. They are: the coefficients of the geometric/gravitational model; a time-tagged list of the net thermal corrections; the user specified offsets (LPC's); receiver feed offsets; and the average value of the lookup table corrections.

This MR details the changes to incrementally move to a new pointing and focusing model in preparation for the completion of track repairs on the GBT. Although it is understood that active surface and the focus model affects pointing, the current thrust is to update the track-related model. Hence the active surface and focus models are not detailed here. No modifications to the active surface or antenna characterization managers are outlined in this MR, however, since both either consume data calculated by the antenna manager or import antenna manager code libraries, there will be a very small effect on both systems. More background on specific details of the new/old models is given in the references below:

A number of items have changed in Model 5, which I will attempt to summarize below:

3. Requirements

The main goal is to update the antenna manager/antenna characterization manager to incorporate the new pointing model described in PTCS PN-53 and summarized above.

3.1 Parameter Set Changes

The antenna has a number of configurable items, referred to as 'Parameters'. These items are further divided into read-write (control-parameters), and read-only (feedback-parameters). The parameter-set constitutes a major portion of the external interface to the antenna device.

In order to implement the new model, the following parameter-related changes must be made:

The fields b02 and d02 are being added for experimental purposes, and will be normally set to zero.

Note that these control-parameters exist only in the antenna manager, and not in the antenna coordinator, so most interfaces will be unaffected by this MR. However, there will be an impact on the cleo-antenna interface, due to the addition of fields to the traditionalCoeff and pointing_model parameters. Astrid will remain unaffected by control/feedback parameter changes.

3.2 Antenna FITS File Changes

The new keywords have the following description:
Name Description
PNTAZB02 The coefficient of the sin(2*elevation) term
PNTAZD02 The coefficient of the cos(2*elevation) term
PNTAZH00 The coefficient that describes the magnitude of the azimuth hysteresis correction.
PNTAZH01 The coefficient to the velocity which constitutes the argument to the hyperbolic tangent function, and thus establishes the width of a smooth transition between the two states.
PNTAZR00 The coefficient to the rate-base hysteresis correction.
PNTELH00 The coefficient that describes the magnitude of the elevation hysteresis correction.
PNTELH01 The coefficient to the velocity which constitutes the argument to the hyperbolic tangent function, and thus establishes the width of a smooth transition between the two states.
PNTELR00 The coefficient to the rate-base hysteresis correction.

3.3 Specific Modifications to the Current Implementation

This section is only a quick summary of the changes, as the details are described in GBT Pointing Focus Model 5.

3.3.1 Addition of Hysteresis Correction

This correction shall introduce an offset based on the direction of commanded movement. The magnitude of correction shall be adjustable. The correction shall be combined as an azimuth (i.e. not cross-elevation) term.

3.3.2 Addition of a Rate-based Hysteresis Correction

A correction which is proportional to axis rate shall be added. A single coefficient shall control the amplitude of the correction.

3.3.2 Re-factoring of the Traditional Model

The traditional and local pointing correction models will be merged into a single pointing correction module. Where pointing terms are dependent upon azimuth or elevation, the mount az/el shall be used.

3.4 PFM Database Changes

The pointing and focus database already contains a mechanism for storing look-up tables for specific purposes. This will be expanded to include storage for tables which are of type "lambda1", "lambda2" and "lamda3". However there are a few other minor changes required:

The revised PFM schema is shown below:

The revised PFM database schema.

4. Design

The antenna module which performs the pointing corrections is called the PointingProcessor. This module will be refractored to merge the LocalCorrectionModel and TraditionalModel classes as shown in figures 1 (before) and figure 2 (after refactoring). The goal here is to combine the two models as a single calculation, instead of artificially keeping them separate. Note the changes in table names and addition of new terms.

Figure 1: Class diagram of current Model-4. Figure 2: Class diagram of Model-5, after refactoring.

5. Test Programs

As part of this MR, a test program will be produced to verify results on a canonical data set. This program directly links with the antenna manager code, providing a convenient testbed for numerical verification of results. This program will be used by PTCS staff to compare the model 5 implementation with test data produced by Kim and ToddHunter. This section documents the use of this program.

I've moved the documentation for the pointing test utility to its own manual page here. --JJB The program has the following options: (See manual page for more up-to-date information. The remainder of this section may be inaccurate.)

The input data file should consist of refracted az/el position pairs, followed by az/el velocities (i.e. four fields azpos, elpos, azvel, elvel per line, separated by whitespace). Comments are allowed by placing a '#' in column 1 of each comment line. The output data file will contain a comment block documenting the coefficients, LPC's and thermal corrections, followed by the transformed az/el position data and velocity data in the same format as the input data file.

Note: Position units are in degrees and velocity units are degrees/second.

Example input and output files are provided.

6. Deployment Checklist

What has to get done to integrate this completely into the system.

7. Test Plan

7.1 Internal Testing

Unit tests will be constructed to numerically test the changes. Additionally, a utility will be available, which allows the computation of canonical data sets using the exact code from the antenna system. ToddHunter will send data sets to both JoeBrandt and Kim. Each will run the model-5 and compare results.

7.2 Sponsor Testing

This section is for the sponsor. What do you need to do in order to ensure that the MR is complete and correct? These tests are the prerequisite for sign off for the "accepted/delivered by sponsor" item in the "signatures" section.

There will be significant testing to characterize the new track, and to derive new pointing model coefficients. The testing listed here are just some of the many tests which will be run to verify the new implementation.

7.2.1 Parameters checks

7.2.2 FITS checks

7.2.3 Model checks

The pointing modules are compiled into libraries and linked into the antenna manager, and into the test program described in section 5. This allows bench-testing of the pointing module. A portion of the verification of the new model implementation will be performed through the use the test program (documented in section 5) against a canonical test data set. The data shall be specified as a text file, with two values per line representing an azimuth and elevation value. The test program is able to compute both topocentric to mount and mount to topocentric. All az/el values shall be in degrees. (Refraction shall be disabled for the tests.)

7.3 Integration/Regression Tests


Signatures

APPROVED: I acknowledge that my request is fully contained in this MR, and if the SDD delivers exactly what I specified, I will be happy.

ACCEPTED: I acknowledge that I have validated the completed code according to the acceptance tests, and I am happy with the results.

Written DONE - JoeBrandt - 22 Jun 2007
Checked DONE - RonGrider - 25 Jun 2007
Approved by Sponsor DONE - ToddHunter - 23 Jul 2007
Approved by CCC DONE - RonMaddalena - 7 Aug 2007
Accepted/Delivered by Sponsor DONE - ToddHunter - 19 Sep 2007

Symbols:


CCC Discussion Area

-- JoeBrandt - 29 May 2007

Attachment: sort Action: Size: Date: Who: Comment:
PTCS_Model5.pdf action 103276 23 Aug 2007 - 14:05 JoeBrandt  
PTCS_Model4.pdf action 97155 21 Jun 2007 - 20:56 JoeBrandt  
ClassDiagModel4.png action 10294 22 Jun 2007 - 17:57 JoeBrandt  
ClassDiagModel5.png action 10657 16 Jul 2007 - 14:48 JoeBrandt  
AntennaPFMSchema.png action 55163 09 Jul 2007 - 17:51 JoeBrandt  
example_input.txt action 210 23 Jul 2007 - 16:29 JoeBrandt  
example_output.txt action 446 23 Jul 2007 - 16:30 JoeBrandt  
antenna_pfm.sql.gz action 60266 15 Aug 2007 - 13:43 JoeBrandt Dump of PFM4 database for posterity

Topic ModificationRequest1C407 . { Edit | Attach | Ref-By | Printable | Diffs | r1.31 | > | r1.30 | > | r1.29 | More }
Revision r1.31 - 18 Sep 2007 - 22:41 GMT - ToddHunter
Parents: PlanOfRecordC42007
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.