• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (kgtgsm)




Re: 請問是否有提供三角函數之指令
#1
新會員
新會員


只要多了

' command_X = cos((2*3.14*freqa*n)/fsample);'

就是有關三角函數的程式

馬上會出現'Failed to load C:\Documment and Settings\Administrator\My Documnets\6014\6014.cof'的錯誤

去除掉就正常了

Project沒健錯

請問要如何修正 謝謝回答^^

發表於: 2005/5/12 16:10
頂部


Re: 請問是否有提供三角函數之指令
#2
新會員
新會員


你好 我已經找到了 可是編寫程式編譯後 出現以下對話框
'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
頂部


請問是否有提供三角函數之指令
#3
新會員
新會員


請問有提供三角函數(sin,cos)等之指令嗎? 如何宣告使用? 謝謝回答^^

發表於: 2005/5/10 14:40
頂部


[請問]出現下列error
#4
新會員
新會員


我的程式式
'
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 控制馬達之資料
#5
新會員
新會員


請問 欲利用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
頂部






:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------