Svenska said:I need a "naked" pic of it. I stacked it and the board hit a curb on an very awkward angle, the WIIciever got mangled up. I need to see what parts are in a few particular locations...
Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"
In file included from sketch_jun15a.ino:2:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h: In member function 'void Chuck::readEEPROM()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h:186:15: error: 'EEPROM' was not declared in this scope
storedY = EEPROM.read(EEPROM_Y_ADDY);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h:186:27: error: 'EEPROM_Y_ADDY' was not declared in this scope
storedY = EEPROM.read(EEPROM_Y_ADDY);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h: In member function 'void Chuck::writeEEPROM()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h:208:5: error: 'EEPROM' was not declared in this scope
EEPROM.write(EEPROM_Y_ADDY, Y0);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h:208:18: error: 'EEPROM_Y_ADDY' was not declared in this scope
EEPROM.write(EEPROM_Y_ADDY, Y0);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h: In member function 'void Chuck::setup()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h:231:5: error: 'Wire' was not declared in this scope
Wire.begin();
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h: In member function 'void Chuck::update()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Chuck.h:266:5: error: 'Wire' was not declared in this scope
Wire.requestFrom (0x52, 6); // request data from nunchuck
^
In file included from sketch_jun15a.ino:3:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h: At global scope:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h:43:3: error: 'Servo' does not name a type
Servo _esc1, _esc2;
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h: In member function 'void ElectronicSpeedController::init(int, int)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h:59:3: error: '_esc1' was not declared in this scope
_esc1.attach(pin1, 1000, 2000);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h:62:5: error: '_esc2' was not declared in this scope
_esc2.attach(pin2, 1000, 2000);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h: In member function 'void ElectronicSpeedController::setLevel(float)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h:120:5: error: '_esc1' was not declared in this scope
_esc1.write(angle);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/ElectronicSpeedController.h:122:7: error: '_esc2' was not declared in this scope
_esc2.write(angle);
^
In file included from sketch_jun15a.ino:5:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Smoother.h: In member function 'float Smoother::compute(float, float)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Smoother.h:58:23: error: 'SMOOTHER_MIN_STEP' was not declared in this scope
if (abs(step) < SMOOTHER_MIN_STEP) {
^
In file included from sketch_jun15a.ino:6:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h: In member function 'void Throttle::readAutoCruise()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:50:26: error: 'EEPROM' was not declared in this scope
byte storedValue = EEPROM.read(EEPROM_AUTOCRUISE_ADDY);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:50:38: error: 'EEPROM_AUTOCRUISE_ADDY' was not declared in this scope
byte storedValue = EEPROM.read(EEPROM_AUTOCRUISE_ADDY);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h: In member function 'void Throttle::writeAutoCruise()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:70:7: error: 'EEPROM' was not declared in this scope
EEPROM.write(EEPROM_AUTOCRUISE_ADDY, storedValue);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:70:20: error: 'EEPROM_AUTOCRUISE_ADDY' was not declared in this scope
EEPROM.write(EEPROM_AUTOCRUISE_ADDY, storedValue);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h: In member function 'float Throttle::checkCruiseReturn(Chuck)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:151:31: error: 'THROTTLE_CRUISE_RETURN_MS' was not declared in this scope
(previousCruiseMS + THROTTLE_CRUISE_RETURN_MS < millis())) {
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:177:26: error: 'THROTTLE_MIN' was not declared in this scope
if (abs(chuck.X) > THROTTLE_MIN ||
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:188:60: error: 'SMOOTHER_CRUISE_RESUME_PROGRAM' was not declared in this scope
newThrottle = smoother.smooth(previousCruiseLevel, SMOOTHER_CRUISE_RESUME_PROGRAM);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h: In member function 'float Throttle::cruiseControl(Chuck)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:214:31: error: 'THROTTLE_CC_BUMP' was not declared in this scope
throttle += chuck.Y * THROTTLE_CC_BUMP;
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:217:31: error: 'THROTTLE_CC_BUMP' was not declared in this scope
throttle += chuck.Y * THROTTLE_CC_BUMP;
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:220:25: error: 'THROTTLE_CC_BUMP' was not declared in this scope
throttle += 4 * THROTTLE_CC_BUMP;
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h: In constructor 'Throttle::Throttle()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:232:20: error: 'THROTTLE_MIN_CC' was not declared in this scope
autoCruise = THROTTLE_MIN_CC;
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h: In member function 'float Throttle::update(Chuck)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:281:35: error: 'SMOOTHER_THROTTLE_PROGRAM' was not declared in this scope
smoother.smooth(throttle, SMOOTHER_THROTTLE_PROGRAM);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:282:29: error: 'THROTTLE_MIN' was not declared in this scope
} else if (chuck.Y < -THROTTLE_MIN) {
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:284:45: error: 'SMOOTHER_BRAKES_PROGRAM' was not declared in this scope
throttle = smoother.smooth(chuck.Y, SMOOTHER_BRAKES_PROGRAM);
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:286:56: error: 'SMOOTHER_THROTTLE_Z_PROGRAM' was not declared in this scope
throttle = smoother.smooth(chuck.Y, (chuck.Z ? SMOOTHER_THROTTLE_Z_PROGRAM : SMOOTHER_THROTTLE_PROGRAM));
^
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/Throttle.h:286:86: error: 'SMOOTHER_THROTTLE_PROGRAM' was not declared in this scope
throttle = smoother.smooth(chuck.Y, (chuck.Z ? SMOOTHER_THROTTLE_Z_PROGRAM : SMOOTHER_THROTTLE_PROGRAM));
^
In file included from Wiiceiver.ino:77:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h: At global scope:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h:65:5: error: redefinition of 'int CSEL'
int CSEL = -1;
^
In file included from sketch_jun15a.ino:4:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h:65:5: error: 'int CSEL' previously defined here
int CSEL = -1;
^
In file included from Wiiceiver.ino:77:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h: In function 'void chipSelect()':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h:66:6: error: redefinition of 'void chipSelect()'
void chipSelect (void) {
^
In file included from sketch_jun15a.ino:4:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h:66:6: error: 'void chipSelect()' previously defined here
void chipSelect (void) {
^
In file included from Wiiceiver.ino:77:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h: In function 'int pinLocation(int)':
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h:94:5: error: redefinition of 'int pinLocation(int)'
int pinLocation(int pinID) {
^
In file included from sketch_jun15a.ino:4:0:
C:\Users\jamie_000\Documents\Arduino\libraries\libraries/pinouts.h:94:5: error: 'int pinLocation(int)' previously defined here
int pinLocation(int pinID) {
^
Wiiceiver.ino: In function 'void setup()':
Wiiceiver:372: error: redefinition of 'void setup()'
sketch_jun15a:8: error: 'void setup()' previously defined here
Wiiceiver.ino: In function 'void loop()':
Wiiceiver:421: error: redefinition of 'void loop()'
sketch_jun15a:13: error: 'void loop()' previously defined here
redefinition of 'void setup()'
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Easy-pd said:I would love this for my build, but all websites say that they will not ship overseas (i am uk)
Easy-pd said:I would love this for my build, but all websites say that they will not ship overseas (i am uk), so i thought id try the code. i have got an arduino, a 'Wiichuck' and some patience. I have tried the code supplied, but cannot figure out how to get it running. I get the following error and an orange box saying:
redefinition of 'void setup()'
phomann said:Easy-pd said:I would love this for my build, but all websites say that they will not ship overseas (i am uk)
Hi,
I have no issue shipping overseas if you are after a ready made board.
http://www.homanndesigns.com/store/index.php?main_page=product_info&cPath=51&products_id=278
Cheers,
Peter
austindavid said:Easy-pd said:I would love this for my build, but all websites say that they will not ship overseas (i am uk), so i thought id try the code. i have got an arduino, a 'Wiichuck' and some patience. I have tried the code supplied, but cannot figure out how to get it running. I get the following error and an orange box saying:
redefinition of 'void setup()'
How did you import this sketch? The errors say you're missing system libraries for EEPROM, Wire, and Servo, and show some other import errors. If you're not using Arduino for anything else I'd suggest you uninstall and try again with a fresh installation. Install the Arduino environment, download the Wiiceiver sketch, and just double-click Wiiceiver.ino and see if it opens and builds correctly.
I've done that on a clean install before just to confirm that it works.
The other difference I have not tested is with Arduino 1.6.x; I'm using 1.0.6. I expect the newer version to work, but it's not something I've attempted.
finocks said:My wiiceiver seems to be functioning as in the leds respond to the nunchuck but the there seems to be no signal coming out as the esc is not recognizing it as there, works fine with my 2.4 remote. not sure what to check or replace. any help appreciated.