Re: 請問是否有提供三角函數之指令
|
||||
---|---|---|---|---|
新會員
|
你好 我已經找到了 可是編寫程式編譯後 出現以下對話框
'Failed to load C:\Documment and Settings\Administrator\My Documnets\6014\6014.cof' C:\Documment and Settings\Administrator\My Documnets\6014\<==是我存放程式的資料夾 請問是哪個步驟有問題 謝謝回答^^ 以下是我加入三角函數之內容 //------------------------------------------ void PWM_X(float u_X) { OC5RS = sin( u_X ) ; }
發表於: 2005/5/11 14:53
|
|||
|
請問是否有提供三角函數之指令
|
||||
---|---|---|---|---|
新會員
|
請問有提供三角函數(sin,cos)等之指令嗎? 如何宣告使用? 謝謝回答^^
發表於: 2005/5/10 14:40
|
|||
|
[請問]出現下列error
|
||||
---|---|---|---|---|
新會員
|
我的程式式
' long x; float a_x=10.9983, b_x=0.0086, k_x=0.735, xx=0, xxx=0, x_xx=0, xx_xx=0, errx=0, w_x =0; if(err_X != 0) { err_X = errx - w_x; xxx = b_x * errx; xx = xxx + x_xx; if(xx<0){xx=-xx;xx>>=10;xx=-xx;}<====出現error1 else xx>>=10;<=====出現error2 x += xx; balabala.. ' 編譯後出現 warning: large integer implicitly truncated to unsigned type error1: invalid operands to binary >> error2: invalid operands to binary >> 請問是什麼問題 麻煩指導一下 謝謝
發表於: 2005/4/29 11:04
|
|||
|
[請問]有沒有關於LQR相關 code 控制馬達之資料
|
||||
---|---|---|---|---|
新會員
|
請問 欲利用c code編寫LQR(Linear Quadratic Regulator)方法來控制馬達 請問有相關資料參考或有c code可以參考
再者 欲將矩陣以c code方式來呈現應該要如何寫? ex:a=[5 5 5 6 6 6 7 7 7] 謝謝請指教
發表於: 2005/4/21 12:09
|
|||
|