2009-03-28

ROBOTC感應器驅動程式(非官方)

Xander Soldaatnxtasy.org forums發佈一篇文章:Released: Driver suite for RobotC beta1

ROBOTC的使用者可以輕鬆應用這些函式庫,讀取感應器的值,讓你的NXT機器人具備各種功能!

下載連結

RobotC Drivers Documentation說明文件及範例程式

目前已經支援下列感應器:

The suite includes drivers for the following devices:
- HiTechnic EOPD sensor (allows sensitivity of sensor to be set)
- HiTechnic Accelerometer sensor
- HiTechnic Gyroscopic sensor (including calibration functions)
- HiTechnic Compass (including recalibration functions) (will be released this weekend)
- HiTechnic Color sensor (including recalibration functions)
- HiTechnic IR Seeker (allows access to individual IR sensors)
- HiTechnic IR Link (allows control over PF motors, both ComboDirect and ComboPWM mode)
- HiTechnic Touch MUX sensor
- HiTechnic ProtoBoard
- Mindsensors NXT Vision Subsystem (can detect colliding blobs and merge them)
- MAXIM MAX127 8 channel 12 bit AD converter
- MAXIM MCP23008 8 channel IO expander

Xander說Compass會在下週公布。





1 則留言:

  1. 焦糖寶寶11:14 上午

    如何用JAVA OR ROBOTC OR NXT-G
    將加速規的值立即傳回電腦並儲存呢?
    可以請老師寄個範例嗎^^"
    [版主回覆04/05/2009 20:18:19]先聲明一下,我不會! 所以無法寄給你範例。

    你倒是可以直接參考相關SAMPLE檔案,例如iCommand的AccelDemo.java

    至於RobotC NXT-G,請先弄清楚他的程式執行方式,再配合PC端的程式,這樣才有可能完成你要的動作(立即傳回電腦並儲存)

    如果沒記錯,Guy Ziv也曾經這樣使用NXT,請參考記錄資料的工具程式--NXTlogger

    回覆刪除

探奇歡迎大家留言討論!謝謝分享你的意見。