Program Output
The following is the output when the sample C program is executed. Information for an activity-chart in the ACCM project is extracted.
activity short description: Speed Controller Activities==============================
string SC_ACTIVITIES at 5.000000,14.208320 in color 7line from 4.625000,4.541660 to 19.958320,4.541660 in color 8 line from 19.958320,4.541660 to 19.958320,14.791700 in color 8string CONTROL_SC at 10.583320,13.041700 in color 13 line from 9.958330,13.791700 to 9.958330,12.791700 in color 3 line from 9.958330,12.791700 to 14.666700,12.791700 in color 3 line from 14.666700,12.791700 to 14.666700,13.791700 in color 3 line from 14.666700,13.791700 to 9.958330,13.791700 in color 3The activity reads the current speed and records it in the data-store that stores the desired cruising speed.The activity counts and updates the number of drive shaft rotations in a measured mile for different tire sizes.string CALIBRATE at 15.291700,10.583320 in color 7 line from 14.791655,11.354160 to 14.791655,10.312480 in color 8 line from 14.791655,10.312480 to 19.124985,10.312480 in color 8 line from 19.124985,10.312480 to 19.124985,11.354160 in color 8 line from 19.124985,11.354160 to 14.791655,11.354160 in color 8string SET_CRS_SPEED at 5.625000,10.666700 in color 7 line from 5.333330,11.500000 to 5.333330,10.458320 in color 8 line from 5.333330,10.458320 to 9.666660,10.458320 in color 8 line from 9.666660,10.458320 to 9.666660,11.500000 in color 8 line from 9.666660,11.500000 to 5.333330,11.500000 in color 8The activity measures the distance traveled in a brief time interval, and calculates the average speed over this time. It adds the distance to the total mileage and updates the mileage store.line from 14.875035,7.229170 to 14.875035,6.187490 in color 8 line from 14.875035,6.187490 to 19.208365,6.187490 in color 8 line from 19.208365,6.187490 to 19.208365,7.229170 in color 8 line from 19.208365,7.229170 to 14.875035,7.229170 in color 8This activity compares the current speed to the desired speed and controls the throttle accordingly.string MAINTAIN_SPEED at 5.916660,6.875000 in color 7 line from 5.374995,7.645840 to 5.374995,6.604160 in color 8 line from 5.374995,6.604160 to 9.708325,6.604160 in color 8 line from 9.708325,6.604160 to 9.708325,7.645840 in color 8 line from 9.708325,7.645840 to 5.374995,7.645840 in color 8This activity controls the speed according to the accelerator pedal position which is determined by the driver.line from 7.249995,5.937500 to 7.249995,4.895820 in color 8 line from 7.249995,4.895820 to 11.583325,4.895820 in color 8 line from 11.583325,4.895820 to 11.583325,5.937500 in color 8