Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_main_telescope
-
Labels:
-
Story Points:3
-
Sprint:TSSW Sprint - May 11 - May 25
-
Team:Telescope and Site
-
Urgent?:No
Description
Put the hexapod PXI into the standby state after clearing the error. This task will need to update the Simulink model for the state machine transition. After this, I will need to generate the C/C++ code and put back to ts_hexapod_controller and test the new built. This task will need to learn and test and hexapod simulink model. This task will also try to understand the logic of look-up table (LUT) in code.
Attachments
Issue Links
- relates to
-
DM-23848 Put the Rotator into Standby State after the clearError Command
- Done
I realized the hard-coded file path in "hexapod_LUT_source_final/" is different from the files in "ts_hexapod_controller/src/smlnkModel". The proof is in the following.
Used the command of 'grep -nr "fileid = cfopen(" .' in ts_hexapod_controller repository and got the following:
--------------------------------------------------------------------------------------------------------------------------
./src/smlnkModel/extract_Azimuth_Data.c:50: fileid = cfopen("//nfsdemo//Azimuth_Data.csv.M2", "rb");
./src/smlnkModel/extract_Azimuth_Data.c:51: else fileid = cfopen("//nfsdemo//Azimuth_Data.csv.CAM", "rb");
./src/smlnkModel/lut/generate_LUT.c:72: fileid = cfopen("//nfsdemo//Elevation_Data.csv.M2", "rb");
./src/smlnkModel/lut/generate_LUT.c:73: else fileid = cfopen("//nfsdemo//Elevation_Data.csv.CAM", "rb");
./src/smlnkModel/lut/generate_LUT.c:182: fileid = cfopen("//nfsdemo//Temperature_Data.csv.M2", "rb");
./src/smlnkModel/lut/generate_LUT.c:183: else fileid = cfopen("//nfsdemo//Temperature_Data.csv.CAM", "rb");
--------------------------------------------------------------------------------------------------------------------------