Closed YBmanman closed 10 years ago
You're trying to compile a Teensy++2 function with Atmega 328p boards. That's why.
You've probably also forgotten to install all the libraries provided.
Ghettostation is made for Teensy++2. You can compile it for 328P based Arduino if you define it in the config.h . Also, 328p version doesn't have all the features of Teensy++2 one, because it doesn't has enough memory. But it works well for one protocol only compiled at runtime.
what file i need for build for simple tracker..i want use complete as the picture.. http://img705.imageshack.us/img705/9425/schemeo.png
-arducopter apm2.5 telemetry 433mhz -arduino nano v3 -lcd http://www.hobbyking.com/hobbyking/store/__37410__Arduino_11C_12C_2004_LCD_Character_Display_Module.html
Everything that is on the library folder needs to be installed in your arduino library one. Then in the config.h comment this: #define TEENSYPLUS2 , cause you're not using a Teensy
& just define #define PROTOCOL_MAVLINK, comment all the other protocols.
now it supports Arduino mega with full features.
im having trouble uploading this to the board. Im using mega2560. i commented the teensy and uncommented the atmega2560 on config.. i had set all board on the arduino on atmega 2560. i copied the ghettostation libraries to arduino libraries directory and an error came up while uploading it.. it follows:
C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()': C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In member function 'void RobotControl::begin()': C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope C:\Users\CJ80\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
Remove Robot_Control library you have in your arduino folder.
AWESOME! uploaded perfect! lastly, will the atmega perform the ghettostation as it intended too without the robot control libraries? thanks kipk!
are there anything to change the lcd codes. i hooked it as per the diagram on atmega 2560. the lcd shows nothing i got a LCD 2004
I got it.. its the I2C LCD address.. got it working.!
hey kipk.. do you have fsk modem v2 on stock for sale?
Arduino: 1.5.4 (Windows 7), Board: "Arduino Uno"
In file included from GhettoStation.ino:59: /Mavlink.cpp:181:2: error: #error wrong version In file included from GhettoStation.ino:40: Eeprom.h:44: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:45: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:46: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:47: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:49: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:50: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:51: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:52: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:53: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:54: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:55: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:56: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:57: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:58: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:59: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:60: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:62: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:63: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:64: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:65: error: expected constructor, destructor, or type conversion before '(' token Eeprom.h:66: error: expected constructor, destructor, or type conversion before '(' token In file included from GhettoStation.ino:41: GhettoStation.h:4: error: no matching function for call to 'HardwareSerial::HardwareSerial()' C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial.h:72: note: candidates are: HardwareSerial::HardwareSerial(volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, volatile uint8t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t) C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial.h:41: note: HardwareSerial::HardwareSerial(const HardwareSerial&) GhettoStation.h:64: error: 'MenuSystem' does not name a type GhettoStation.h:65: error: 'Menu' does not name a type GhettoStation.h:66: error: 'MenuItem' does not name a type GhettoStation.h:67: error: 'MenuItem' does not name a type GhettoStation.h:68: error: 'Menu' does not name a type GhettoStation.h:69: error: 'Menu' does not name a type GhettoStation.h:70: error: 'Menu' does not name a type GhettoStation.h:71: error: 'MenuItem' does not name a type GhettoStation.h:72: error: 'MenuItem' does not name a type GhettoStation.h:73: error: 'MenuItem' does not name a type GhettoStation.h:74: error: 'MenuItem' does not name a type GhettoStation.h:75: error: 'Menu' does not name a type GhettoStation.h:76: error: 'MenuItem' does not name a type GhettoStation.h:77: error: 'MenuItem' does not name a type GhettoStation.h:78: error: 'MenuItem' does not name a type GhettoStation.h:79: error: 'MenuItem' does not name a type GhettoStation.h:80: error: 'MenuItem' does not name a type GhettoStation.h:82: error: 'MenuItem' does not name a type In file included from GhettoStation.ino:59: Mavlink.cpp:31: error: 'mavlink_system_t' does not name a type Mavlink.cpp:33: error: variable or field 'comm_send_ch' declared void Mavlink.cpp:33: error: 'mavlink_channel_t' was not declared in this scope Mavlink.cpp:33: error: expected primary-expression before 'ch' Mavlink.cpp:71: error: 'MAV_DATA_STREAM_RAW_SENSORS' was not declared in this scope Mavlink.cpp:72: error: 'MAV_DATA_STREAM_EXTENDED_STATUS' was not declared in this scope Mavlink.cpp:73: error: 'MAV_DATA_STREAM_RC_CHANNELS' was not declared in this scope Mavlink.cpp:74: error: 'MAV_DATA_STREAM_POSITION' was not declared in this scope Mavlink.cpp:75: error: 'MAV_DATA_STREAM_EXTRA1' was not declared in this scope Mavlink.cpp:76: error: 'MAV_DATA_STREAM_EXTRA2' was not declared in this scope /Mavlink.cpp: In function 'void::request_mavlink_rate(uint8_t, uint8_t, uint8_t, uint16_t)':
Mavlink.cpp:83: error: 'MAVLINK_COMM_0' was not declared in this scope
Mavlink.cpp:83: error: 'mavlink_msg_request_data_stream_send' was not declared in this scope
/Mavlink.cpp: At global scope:
Mavlink.cpp:97: error: variable or field 'do_mavlink_heartbeat' declared void
Mavlink.cpp:97: error: 'mavlink_message_t' was not declared in this scope
Mavlink.cpp:97: error: 'pmsg' was not declared in this scope
Mavlink.cpp:98: error: variable or field 'do_mavlink_sys_status' declared void
Mavlink.cpp:98: error: 'mavlink_message_t' was not declared in this scope
Mavlink.cpp:98: error: 'pmsg' was not declared in this scope
Mavlink.cpp:100: error: variable or field 'do_mavlink_gps_raw' declared void
Mavlink.cpp:100: error: 'mavlink_message_t' was not declared in this scope
Mavlink.cpp:100: error: 'pmsg' was not declared in this scope
Mavlink.cpp:101: error: variable or field 'do_mavlink_gps_status' declared void
Mavlink.cpp:101: error: 'mavlink_message_t' was not declared in this scope
Mavlink.cpp:101: error: 'pmsg' was not declared in this scope
Mavlink.cpp:105: error: variable or field 'do_mavlink_vfr_hud' declared void
Mavlink.cpp:105: error: 'mavlink_message_t' was not declared in this scope
Mavlink.cpp:105: error: 'pmsg' was not declared in this scope
/Mavlink.cpp: In function 'void mavlink_read()':
Mavlink.cpp:116: error: 'mavlink_message_t' was not declared in this scope
Mavlink.cpp:116: error: expected
;' before 'msg' Mavlink.cpp:117: error: 'mavlink_status_t' was not declared in this scope Mavlink.cpp:117: error: expected
;' before 'status' Mavlink.cpp:131: error: 'MAVLINK_COMM_0' was not declared in this scope Mavlink.cpp:131: error: 'msg' was not declared in this scope Mavlink.cpp:131: error: 'status' was not declared in this scope Mavlink.cpp:131: error: 'mavlink_parse_char' was not declared in this scope Mavlink.cpp:137: error: 'MAVLINK_MSG_ID_HEARTBEAT' was not declared in this scope Mavlink.cpp:138: error: 'do_mavlink_heartbeat' was not declared in this scope Mavlink.cpp:144: error: 'MAVLINK_MSG_ID_GPS_RAW' was not declared in this scope Mavlink.cpp:145: error: 'do_mavlink_gps_raw' was not declared in this scope Mavlink.cpp:147: error: 'MAVLINK_MSG_ID_GPS_STATUS' was not declared in this scope Mavlink.cpp:148: error: 'do_mavlink_gps_status' was not declared in this scope Mavlink.cpp:155: error: 'MAVLINK_MSG_ID_VFR_HUD' was not declared in this scope Mavlink.cpp:156: error: 'do_mavlink_vfr_hud' was not declared in this scope Mavlink.cpp:164: error: 'status' was not declared in this scope /Mavlink.cpp: At global scope: Mavlink.cpp:170: error: variable or field 'do_mavlink_heartbeat' declared void Mavlink.cpp:170: error: 'mavlink_message_t' was not declared in this scope Mavlink.cpp:170: error: 'pmsg' was not declared in this scope Mavlink.cpp:182: error: variable or field 'do_mavlink_gps_raw' declared void Mavlink.cpp:182: error: 'mavlink_message_t' was not declared in this scope Mavlink.cpp:182: error: 'pmsg' was not declared in this scope Mavlink.cpp:188: error: variable or field 'do_mavlink_gps_status' declared void Mavlink.cpp:188: error: 'mavlink_message_t' was not declared in this scope Mavlink.cpp:188: error: 'pmsg' was not declared in this scope Mavlink.cpp:207: error: variable or field 'do_mavlink_vfr_hud' declared void Mavlink.cpp:207: error: 'mavlink_message_t' was not declared in this scope Mavlink.cpp:207: error: 'pmsg' was not declared in this scope GhettoStation:77: error: variable or field 'enterButtonReleaseEvents' declared void GhettoStation:77: error: 'Button' was not declared in this scope GhettoStation:77: error: 'btn' was not declared in this scope GhettoStation:78: error: variable or field 'leftButtonReleaseEvents' declared void GhettoStation:78: error: 'Button' was not declared in this scope GhettoStation:78: error: 'btn' was not declared in this scope GhettoStation:79: error: variable or field 'rightButtonReleaseEvents' declared void GhettoStation:79: error: 'Button' was not declared in this scope GhettoStation:79: error: 'btn' was not declared in this scope GhettoStation:94: error: variable or field 'screen_tracking' declared void GhettoStation:94: error: 'MenuItem' was not declared in this scope GhettoStation:94: error: 'p_menu_item' was not declared in this scope GhettoStation:95: error: variable or field 'screen_sethome' declared void GhettoStation:95: error: 'MenuItem' was not declared in this scope GhettoStation:95: error: 'p_menu_item' was not declared in this scope GhettoStation:96: error: variable or field 'configure_pan_minpwm' declared void GhettoStation:96: error: 'MenuItem' was not declared in this scope GhettoStation:96: error: 'p_menu_item' was not declared in this scope GhettoStation:97: error: variable or field 'configure_pan_minangle' declared void GhettoStation:97: error: 'MenuItem' was not declared in this scope GhettoStation:97: error: 'p_menu_item' was not declared in this scope GhettoStation:98: error: variable or field 'configure_pan_maxpwm' declared void GhettoStation:98: error: 'MenuItem' was not declared in this scope GhettoStation:98: error: 'p_menu_item' was not declared in this scope GhettoStation:99: error: variable or field 'configure_pan_maxangle' declared void GhettoStation:99: error: 'MenuItem' was not declared in this scope GhettoStation:99: error: 'p_menu_item' was not declared in this scope GhettoStation:100: error: variable or field 'configure_tilt_minpwm' declared void GhettoStation:100: error: 'MenuItem' was not declared in this scope GhettoStation:100: error: 'p_menu_item' was not declared in this scope GhettoStation:101: error: variable or field 'configure_tilt_minangle' declared void GhettoStation:101: error: 'MenuItem' was not declared in this scope GhettoStation:101: error: 'p_menu_item' was not declared in this scope GhettoStation:102: error: variable or field 'configure_tilt_maxpwm' declared void GhettoStation:102: error: 'MenuItem' was not declared in this scope GhettoStation:102: error: 'p_menu_item' was not declared in this scope GhettoStation:103: error: variable or field 'configure_tilt_maxangle' declared void GhettoStation:103: error: 'MenuItem' was not declared in this scope GhettoStation:103: error: 'p_menu_item' was not declared in this scope GhettoStation:104: error: variable or field 'configure_test_servo' declared void GhettoStation:104: error: 'MenuItem' was not declared in this scope GhettoStation:104: error: 'p_menu_item' was not declared in this scope GhettoStation:105: error: variable or field 'configure_telemetry' declared void GhettoStation:105: error: 'MenuItem' was not declared in this scope GhettoStation:105: error: 'p_menu_item' was not declared in this scope GhettoStation:73: error: 'LiquidCrystal_I2C' does not name a type GhettoStation:85: error: 'Metro' does not name a type GhettoStation:86: error: 'Metro' does not name a type GhettoStation:87: error: 'Metro' does not name a type GhettoStation:88: error: 'Metro' does not name a type GhettoStation:99: error: 'Button' does not name a type GhettoStation:100: error: 'Button' does not name a type GhettoStation:101: error: 'Button' does not name a type GhettoStation.ino: In function 'void setup()': GhettoStation:140: error: 'attach_servo' was not declared in this scope GhettoStation:145: error: 'servoPathfinder' was not declared in this scope GhettoStation:148: error: 'enter_button' was not declared in this scope GhettoStation:148: error: 'enterButtonReleaseEvents' was not declared in this scope GhettoStation:149: error: 'left_button' was not declared in this scope GhettoStation:149: error: 'leftButtonReleaseEvents' was not declared in this scope GhettoStation:150: error: 'right_button' was not declared in this scope GhettoStation:150: error: 'rightButtonReleaseEvents' was not declared in this scope GhettoStation.ino: In function 'void loop()': GhettoStation:170: error: 'buttonMetro' was not declared in this scope GhettoStation:171: error: 'enter_button' was not declared in this scope GhettoStation:172: error: 'left_button' was not declared in this scope GhettoStation:173: error: 'right_button' was not declared in this scope Activity.ino: In function 'void check_activity()': Activity:5: error: 'activityMetro' was not declared in this scope Activity:11: error: 'servoPathfinder' was not declared in this scope Activity:12: error: 'enter_button' was not declared in this scope Activity:13: error: 'displaymenu' was not declared in this scope Activity:20: error: 'servoPathfinder' was not declared in this scope Activity:25: error: 'enter_button' was not declared in this scope Activity:45: error: 'enter_button' was not declared in this scope Activity:51: error: 'config_servo' was not declared in this scope Activity:53: error: 'attach_servo' was not declared in this scope Activity:58: error: 'enter_button' was not declared in this scope Activity:61: error: 'attach_servo' was not declared in this scope Activity:62: error: 'move_servo' was not declared in this scope Activity:67: error: 'config_servo' was not declared in this scope Activity:69: error: 'enter_button' was not declared in this scope Activity:71: error: 'move_servo' was not declared in this scope Activity:77: error: 'config_servo' was not declared in this scope Activity:79: error: 'attach_servo' was not declared in this scope Activity:83: error: 'enter_button' was not declared in this scope Activity:86: error: 'attach_servo' was not declared in this scope Activity:87: error: 'move_servo' was not declared in this scope Activity:93: error: 'config_servo' was not declared in this scope Activity:95: error: 'enter_button' was not declared in this scope Activity:97: error: 'move_servo' was not declared in this scope Activity:103: error: 'config_servo' was not declared in this scope Activity:105: error: 'attach_servo' was not declared in this scope Activity:108: error: 'enter_button' was not declared in this scope Activity:111: error: 'attach_servo' was not declared in this scope Activity:112: error: 'move_servo' was not declared in this scope Activity:118: error: 'config_servo' was not declared in this scope Activity:120: error: 'enter_button' was not declared in this scope Activity:122: error: 'move_servo' was not declared in this scope Activity:128: error: 'config_servo' was not declared in this scope Activity:130: error: 'attach_servo' was not declared in this scope Activity:133: error: 'enter_button' was not declared in this scope Activity:136: error: 'attach_servo' was not declared in this scope Activity:137: error: 'move_servo' was not declared in this scope Activity:143: error: 'config_servo' was not declared in this scope Activity:145: error: 'enter_button' was not declared in this scope Activity:147: error: 'move_servo' was not declared in this scope Activity:153: error: 'test_servos' was not declared in this scope Activity:160: error: 'enter_button' was not declared in this scope Buttons.ino: At global scope: Buttons:7: error: variable or field 'enterButtonReleaseEvents' declared void Buttons:7: error: 'Button' was not declared in this scope Buttons:7: error: 'btn' was not declared in this scopeThis report would have more information with "Show verbose output during compilation" enabled in File > Preferences.