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

Fix Pointing Update Command Glitches

Modification Request #2 (C02 2008)



1. Introduction

The antenna manager periodically receives dynamic (i.e. non-repeatable) corrections from a thermal model implemented in the antenna characterization manager. These updates have the potential to place a 'step' in position if the new value is incorporated immediately. This MR describes the changes to add code to integrate new dynamic correction values smoothly over a period of time.

2. Background

The antenna pointing model uses data provided by the antenna characterization manager. The values are correction offset values in az1 (azimuth), az2 (cross-elevation) and elevation. These three values must be merged into the command stream incrementally, so that velocity spikes are minimized. Note that the antenna characterization manager also provides Y-axis focus corrections, however, this value can be integrated into the command stream as soon as it is received.

It should be noted that the quantities vary rather slowly, however updating the az/el values in a smooth fashion is critical to producing smooth trajectories.

3. Requirements

3.1 Incremental Update

Upon receiving a new azimuth, cross-elevation or elevation correction, the values shall be incrementally integrated into the command stream over a period of N-seconds.

3.2 Update Interval

The update interval 'N' shall be a configurable value. A value of zero shall effectively disable the merging mechanism. The maximum allowed merge interval should be less than the update interval of the AntennaCharacterization manager.

4. Design

The algorithm used to transition from one correction value to the next is:
 f(x) = \frac{1-\tanh(x)}{2}*oldvalue + \frac{1+\tanh(x)}{2}*newvalue
Where:

The keyword PointingProcessor.dynamic_merge_interval in the antenna.conf file specifies the transition interval (i.e. N in paragraph 3.1)

5. Add Any More Sections That Are Appropriate

6. Deployment Checklist

What has to get done to integrate this completely into the system. This checklist must be completed before Cycle Integration Testing begins.

7. Test Plan

Most if not all testing can be performed using the antenna simulator, using the Antenna AntennaManager azElCommands monitor stream to evaluate performance.

7.1 Internal Testing

Using the simulator, follow these steps to acquire the test data:
  1. Using taskmaster, stop the antenna characterization process. (ignore messages from cleo about corrections not updating)
  2. Confirm the antenna.conf file has the following keyword-value:
  3. Disable az/el axes and put the antenna in the 'Off' state.
  4. Put the antenna into the 'On' state
  5. Using the antenna cleo control screen, turn on dynamic pointing updates
  6. Set operation mode to 'GetControl' on antenna cleo control screen and issue a prepare
  7. Set operation mode to 'DoScan', click 'Update' button, and enable axes
  8. Start a logger:
  9. setup a python environment by sourcing the appropriate files
  10. cd to /home/gbt/apps/AntennaCharacterization (or add that directory to your PYTHONPATH environment variable)
  11. Start the attached script:
  12. Let run for about 60 seconds, then kill the python script and sampler2log programs.
  13. Repeat steps 2-11 using dynamic_merge_interval values of 4.0 and 9.0
  14. Restart the antenna characterization program using taskmaster
  15. Using the antenna cleo control screen, turn off dynamic pointing updates.

7.1.1 Internal Testing Results

The simulator was used to re-create the problem, and demonstrate the revised system performance. Figures 1-4 below shows the velocity profile when an az1 correction of 1.0 arc-seconds was applied and removed. Figures 3 and 4 illustrates the improved velocity profile (note scale difference). The spikes have been transformed into smooth curves which are much wider, and about 50 times smaller in magnitude. Figure 5 illustrates the relative amplitudes of the spikes shown in figures 2,3 and 4.

Figure 1. Original velocity spikes during 1 arc-second az1 updates. Figure 2. Profile during a 1 arc-second on/off update with the interval set to zero seconds.

Figure 3. Improved profile during a 1 arc-second update with the interval set to 4 seconds. Figure 4. Improved profile during a 1 arc-second update with the interval set to 9 seconds.

7.2 Sponsor Testing

Repeat tests in section 7.1 to verify proper operation. Repeat tests using the real antenna. Verify proper operation.

7.2.1 Test Results from 4/29/2008:

7.3 Integration/Regression Tests

Repeat tests in section 7.1 to record data files for later confirmation by module author.


Signatures

APPROVED: I acknowledge that to the best of my knowledge, my request is fully contained in this MR.

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 - 26 Feb 2008
Checked DONE - MelindaMello - 29 Feb 2008
Approved by Sponsor DONE - JohnFord - 04 Mar 2008
Approved by CCC DONE - RonMaddalena - 26 Mar 2008
Accepted/Delivered by Sponsor DONE - JohnFord - 01 May 2008

Symbols:


CCC Discussion Area

-- JoeBrandt - 21 Feb 2008

Attachment: sort Action: Size: Date: Who: Comment:
nomerge.png action 5362 22 Feb 2008 - 21:43 JoeBrandt  
mergedbetter.png action 6833 22 Feb 2008 - 21:43 JoeBrandt  
zerosecupdate.png action 5186 26 Feb 2008 - 21:22 JoeBrandt  
foursecupdate.png action 6022 26 Feb 2008 - 21:22 JoeBrandt  
ninesecupdate.png action 7253 26 Feb 2008 - 21:22 JoeBrandt  
test_dyn_merging.py action 670 26 Feb 2008 - 21:44 JoeBrandt  
dyn_0.gif action 12144 29 Apr 2008 - 12:55 JoeBrandt  
dyn_4.gif action 11034 29 Apr 2008 - 13:20 JoeBrandt  
dyn_8.gif action 11465 29 Apr 2008 - 13:20 JoeBrandt  

Topic ModificationRequest3C208 . { Edit | Attach | Ref-By | Printable | Diffs | r1.14 | > | r1.13 | > | r1.12 | More }
Revision r1.14 - 01 May 2008 - 16:20 GMT - JohnFord
Parents: PlanOfRecordC22008
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.