1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-07 00:04:36 +03:00

Fixed issue #1478, #1599, #1709, motors being opposite, updated turning algorithm

This commit is contained in:
Xun Yang
2014-02-12 02:02:20 +01:00
parent b78fcf5139
commit 53adddcb33
33 changed files with 58 additions and 1100 deletions

View File

@@ -23,6 +23,8 @@
*/
#include <ArduinoRobot.h> // include the robot library
#include <Wire.h>
#include <SPI.h>
int commands[20]; // array for storing commands

View File

@@ -18,6 +18,8 @@
*/
#include <ArduinoRobot.h> // include the robot library
#include <Wire.h>
#include <SPI.h>
long timerOrigin; // used for counting elapsed time

View File

@@ -17,6 +17,8 @@
*/
#include <ArduinoRobot.h> // include the robot library
#include <Wire.h>
#include <SPI.h>
/* Dancing steps:
S: stop

View File

@@ -21,6 +21,8 @@
// include the robot library
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
int speedLeft;
int speedRight;

View File

@@ -20,6 +20,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
// default tempo and pitch of the music
int tempo = 60;

View File

@@ -13,6 +13,8 @@
#include "scripts_library.h"
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup(){
Serial.begin(9600);

View File

@@ -20,6 +20,8 @@
// include the robot library
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
int sensorPin = M1; // pin is used by the sensor

View File

@@ -27,6 +27,8 @@
#include <IRremote.h>
#include <IRremoteTools.h>
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
// Define a few commands from your remote control
#define IR_CODE_FORWARD 284154405

View File

@@ -34,6 +34,8 @@
*/
#include <ArduinoRobot.h> // include the robot library
#include <Wire.h>
#include <SPI.h>
const int NUM_PICS = 4; //Total number of pictures in Gallery

View File

@@ -23,6 +23,8 @@
*/
#include <ArduinoRobot.h> // include the robot library
#include <Wire.h>
#include <SPI.h>
void setup(){
// initialize the Robot, SD card, display, and speaker

View File

@@ -17,6 +17,9 @@
*/
#include <ArduinoRobot.h> // include the robot library
#include <Wire.h>
#include <SPI.h>
// include the utility function for ths sketch
// see the details below
#include <utility/RobotTextManager.h>

View File

@@ -23,6 +23,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
// use arrays to store the names of the pins to be read
uint8_t arr[] = { M0, M1, M2, M3, M4, M5, M6, M7 };

View File

@@ -21,6 +21,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -24,6 +24,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup(){
// initialize the robot

View File

@@ -16,6 +16,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -22,6 +22,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup(){
// initialize the robot

View File

@@ -16,6 +16,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
int value;

View File

@@ -15,6 +15,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
int value;

View File

@@ -18,6 +18,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -21,6 +21,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -44,6 +44,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -15,6 +15,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -17,6 +17,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -15,6 +15,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the robot

View File

@@ -25,6 +25,8 @@
*/
#include <ArduinoRobot.h>
#include <Wire.h>
#include <SPI.h>
void setup() {
// initialize the serial port