Winning LEGO MINDSTORMS Programming (Paperback)

James Trobaugh

  • 出版商: Apress
  • 出版日期: 2012-11-19
  • 售價: $1,480
  • 貴賓價: 9.5$1,406
  • 語言: 英文
  • 頁數: 252
  • 裝訂: Paperback
  • ISBN: 1430245360
  • ISBN-13: 9781430245360
  • 相關分類: Storm樂高 Logo
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Winning LEGO MINDSTORMS Programming is your ticket to successfully programming for fun and competition with LEGO MINDSTORMS and the NXT-G programming language commonly used in FIRST LEGO League events. The book is a companion title to author James Trobaugh’s acclaimed book on physical robot design, Winning Design!. This new book focuses squarely on the programming side of working with MINDSTORMS. Together the two books put you on a rock-solid foundation for creating with LEGO MINDSTORMS, whether for fun at home or in competition with a team.

Winning LEGO MINDSTORMS Programming sets the stage by emphasizing the importance of up front planning, and thinking about the challenge to be met. Learn to evaluate possible solutions by sanity-testing their logic before you put the effort into actually writing the code. Then choose your best option and write the code applying the techniques in this book. Take advantage of language features such as MyBlocks to enhance reliability and create easy-to-debug code. Manage your code as you change and improve it so that you can trace what you’ve done and fall back if needed. Avoid common programming pitfalls. Work powerfully with teammates to conquer competition challenges of all types.

  • Provides solid techniques similar to those used by professional programmers, and optimized for the LEGO MINDSTORMS platform.
  • Addresses key tasks important to competition such as line detection, line following, squaring of corners, motor stall detection, and more.
  • Compliments Winning Design! by tackling the programming side of competition.

What you’ll learn

  • Write programs to give your team an edge in competition.
  • Avoid common programming pitfalls that can cost points.
  • Write well-planned code easily adapted as you refine your approach to a challenge.
  • Collaborate with teammates in presenting a clear understanding of your coding solution to competition judges.
  • Improve your ability to wield each of the MINDSTORM NXT sensors.
  • Explore tips & tricks that can be used in robot competitions, and for fun.
  • Plan ahead for debugging and troubleshooting.

Who this book is for

Winning LEGO MINDSTORMS Programming is aimed at those wanting to improve their ability to create and deploy LEGO MINDSTORMS robots that are predictable and reliable at navigating competition challenges, and for fun at home.

Table of Contents

1. Meeting the NXT-G Software
2. Software Design Process
3. Using and Creating MyBlocks
4. When Things Go Wrong
5. Moving Data
6. Making Smart Decisions
7. Motors and Motion
8. Light Detection
9. Touching and Bumping
10. Seeing with Ultrasonics
11. Programming Like A Pro
12 Code Management
13. Programming Pitfalls
14. NXT-G Tips & Tricks

商品描述(中文翻譯)

《贏得 LEGO MINDSTORMS 程式設計》是您成功編程以享受樂趣和參加競賽的入場券,使用 LEGO MINDSTORMS 和在 FIRST LEGO League 活動中常用的 NXT-G 程式語言。這本書是作者 James Trobaugh 讚譽有加的實體機器人設計書籍《贏得設計!》的伴隨書籍。這本新書專注於 MINDSTORMS 的程式設計部分。這兩本書共同為您在 LEGO MINDSTORMS 上創作奠定堅實的基礎,無論是在家中享受樂趣還是與團隊參加競賽。

《贏得 LEGO MINDSTORMS 程式設計》強調前期規劃的重要性,並思考要解決的挑戰。學習在實際編寫程式碼之前,通過理智測試其邏輯來評估可能的解決方案。然後選擇最佳選項,並根據本書中的技術編寫程式碼。利用 MyBlocks 等語言特性來增強可靠性並創建易於除錯的程式碼。在您更改和改進程式碼時進行管理,以便能夠追蹤您所做的工作,並在需要時回退。避免常見的程式設計陷阱。與隊友強有力地合作,征服各類競賽挑戰。

- 提供類似專業程式設計師使用的穩固技術,並針對 LEGO MINDSTORMS 平台進行優化。
- 涉及競賽中重要的關鍵任務,如線路檢測、跟隨線路、轉角平方、馬達停轉檢測等。
- 通過處理競賽的程式設計方面來補充《贏得設計!》。

您將學到的內容:
- 編寫程式以使您的團隊在競賽中獲得優勢。
- 避免可能損失分數的常見程式設計陷阱。
- 編寫良好規劃的程式碼,便於在您完善挑戰方法時輕鬆調整。
- 與隊友合作,向競賽評審清晰呈現您的程式解決方案。
- 提高使用每個 MINDSTORM NXT 感測器的能力。
- 探索可用於機器人競賽和娛樂的技巧與竅門。
- 提前規劃除錯和故障排除。

本書適合對象:
《贏得 LEGO MINDSTORMS 程式設計》旨在幫助那些希望提高創建和部署 LEGO MINDSTORMS 機器人能力的人,這些機器人在應對競賽挑戰時可預測且可靠,並且在家中也能享受樂趣。

目錄:
1. 認識 NXT-G 軟體
2. 軟體設計過程
3. 使用和創建 MyBlocks
4. 當事情出錯時
5. 數據移動
6. 做出明智的決策
7. 馬達與運動
8. 光線檢測
9. 觸碰與碰撞
10. 使用超聲波進行視覺檢測
11. 像專業人士一樣編程
12. 程式碼管理
13. 程式設計陷阱
14. NXT-G 技巧與竅門