1 / 8

AODD Heartbeat

AODD Heartbeat. Sent 1/second Starts after AODD has initialized all hardware and is ready to accept commands Other components (specifically AOCA and the GUI) will subscribe to the heartbeat In conjunction with a timer, allows subscriber to determine if AODD is alive or dead. AODD Heartbeat.

ceana
Download Presentation

AODD Heartbeat

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AODD Heartbeat • Sent 1/second • Starts after AODD has initialized all hardware and is ready to accept commands • Other components (specifically AOCA and the GUI) will subscribe to the heartbeat • In conjunction with a timer, allows subscriber to determine if AODD is alive or dead

  2. AODD Heartbeat • AOCA will be able to automatically cancel an automation if AODD fails (see Dave’s presentation for details) • The GUI will be able to display AODD’s health and inform the user if AODD fails • Precise GUI implementation TBD

  3. Error Reporting • Each AODD component has a “state” field and an “error” field • Normally, the state field displays the state of the component (motor moving or stopped, ACAM on or off, etc.) • Error field is “SUCCESS” • If AODD encounters an error, the state field is set to “ERROR”, and the error field contains a specific error code

  4. Error Reporting • The error codes will be standard POSIX codes whenever there is one that is appropriate to the error condition • There will also be P3K-specific codes to describe condition which are not representable by the standard POSIX error codes

  5. Error Reporting Example • Suppose a command is given to move a motor • Initially, we will have • State: MOVING • Error: SUCCESS • Additionally, we will have • Position: Current position • Residual: Commanded position – current position • In position flag: 0

  6. Error Reporting Example • When the move completes, we will have • State: STOPPED • Error: SUCCESS • Additionally, we will have • Position: Current position (= commanded position) • Residual: 0 (within motor accuracy) • In position flag: 1

  7. Error Reporting Example • Now suppose a command is given to move a motor past its limit • Initially, we will have • State: MOVING • Error: SUCCESS • Additionally, we will have • Position: Current position • Residual: Command position – current position • In position flag: 0

  8. Error Reporting Example • When the motor hits the limit, we will have • State: MOTOR_ERROR • Error: MOTOR_HIT_LIMIT • Additionally, we will have • Position: Current position (= limit position, not commanded position) • Residual: Commanded position – limit position • In position flag: 0

More Related