OpHaCo / hoverbot

Hack an Hoverboard to propel your fat robots!
72 stars 16 forks source link

Error Compiling #2

Closed KevinPlaridel closed 7 years ago

KevinPlaridel commented 7 years ago

I can't compile the sketch because there's an error to hoverboard.cpp and idlecontrol(). I added the .cpp and .h in

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3

this is the error:

In file included from C:\Users\Kevin\Documents\School\thesis\sketch\hoverboard\hoverboard.ino:2:0:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/hoverboard.cpp: In member function 'Hoverboard::EHoverboardErr Hoverboard::init()':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/hoverboard.cpp:81:33: error: 'SERIAL_9N1' was not declared in this scope

   _p_gyro1Serial->begin (26300, SERIAL_9N1);  // 9 bits mode

                                 ^

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3/hoverboard.cpp: In member function 'Hoverboard::EHoverboardErr Hoverboard::setSpeed(float, float)':

....

Error compiling for board Teensy 3.2 / 3.1.
Lahorde commented 7 years ago

Open :

your_arduino_core_folder/hardware/teensy/avr/cores/teensy3/HardwareSerial.h

Uncomment

#define SERIAL_9BIT_SUPPORT