|
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機 | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
調(diào)過cxd3068 servo 進來聊一聊 |
作者:mary huang 欄目:數(shù)字廣電 |
這段程試有問題嗎? BYTE Servo_focus_on(void) { SWITCH (servo.operation) { case SERVO_FOCUS_0: #ifdef SERVO_DEBUGON epp_write_wait("###Servo Focus On\n\r"); #endif FoFail = 0; servo_wait_gfs_cnt = 0; servo.temp_counter = 0; SERVO_SPEED_SET; /* Set RF EQ for 1X play */ Servo_send_data_latch(0x3bf050, 3); /* Jerry: 0x3be020, 702: 0x3bf050 */ servo.operation = SERVO_FOCUS_1; servo.operation_timer = SERVO_TIME_200MS; servo.timeout_timer = SERVO_FOCUS_ON_TIMEOUT; /* Wait For Tuning */ if(servo.focuson_fail_counter > 4) // Flying Disc Protection { #ifdef ERROR_MSG epp_write_wait("^^^^^Flying Disc Protection 2!\n\r"); #endif SERVO_LDON_CLR; Servo_off(); servo.operation_timer = 3000 * servo.focuson_fail_counter; servo.timeout_timer = servo.operation_timer + SERVO_FOCUS_ON_TIMEOUT; } break; case SERVO_FOCUS_1: if(servo.operation_timer) break; SERVO_LDON_SET; Servo_off(); #ifdef FOCUSON_DEBUGON epp_write_wait("LD ON\n\r"); #endif if(servo_low_level) Servo_send_data_latch(0x3748ba, 3); /* Set FZC level VC/8 */ else Servo_send_data_latch(0x3708ba, 3); /* Set FZC level VC/4 */ if(FoFail > 1) { servo.buf[3] = 0; Servo_send_data_latch(0xe00000, 3); /* Spindle off */ servo.operation_timer = 4000; /* to Make time Out!!! and wait Disc Stop Spin */ servo.timeout_timer = 500; /* delay 500ms then response focus fail cmd to DSA */ FoFail = 0; } else { Servo_send_data_latch(0xe80000, 3); /* Spindle Forward Kick */ if(servo_sledge_lba != 450000) { servo.operation_timer = (350 - (servo_sledge_lba >> 16)*30); /* Wait Disc Rotate */ #ifdef FOCUSON_DEBUGON psprintf(linebuf,"Spd Acc time = %d(O)\n\r",servo.operation_timer); epp_write_wait(linebuf); #endif } else { servo.operation_timer = 200; /* */ #ifdef FOCUSON_DEBUGON epp_write_wait("Spd Acc time = 200(X)\n\r"); #endif |
2樓: | >>參與討論 |
作者: liu701230 于 2005/9/21 10:20:00 發(fā)布:
現(xiàn)在調(diào)好了嗎? 朋友!,現(xiàn)在調(diào)好了嗎? |
3樓: | >>參與討論 |
作者: mary huang 于 2005/9/21 18:03:00 發(fā)布:
這段程試focus 很慢 不知到,是光頭的原因,還是程試不行 * - 本貼最后修改時間:2005-9-21 18:08:06 修改者:mary huang |
|
|
免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 www.udpf.com.cn 浙ICP證030469號 |