| Algorithm: The Algorithm for SSMA Calculation |
| //The data acquisition algorithm is used to extract all sensor data; Generate Date List, Status list; Get all the date points , and put them in the Date List; Get all the status values , and put them in the Status list; ; ; For j = 0 to Date List.num do Start the timer; Send to; If , wait until the time end and get back; end If; Update the ; End //The calculation for SSMA Generate Date List, Status list; Get all the date points , and put them in the Date List; Get the status value in , and put it in the Status list; Put the default status value in the Status list; If , decode the , and save it to the queue, save the initial data ; If , get to calculate the angel of movable arm, and save it to Date List; If , get to calculate the steering angel, and save it to Date List; If , get to calculate the swing angel, and save it to Date List; Get all them out including to calculate SSMA, and save it to Date List; End If Update the, Update SSMA; End. |