What steps will reproduce the problem?
1. In APM_Config.h
#define GCS_PROTOCOL GCS_PROTOCOL_LEGACY
GCS_PORT 0
** Output from compiler **
ArduPilotMega.cpp: In function 'void send_message(byte, const char*)':
GCS_Ardupilot:45: error: 'SendSer' was not declared in this scope
GCS_Ardupilot:46: error: 'SendSerln' was not declared in this scope
ArduPilotMega.cpp: In function 'void print_attitude()':
GCS_Ardupilot:78: error: 'SendSer' was not declared in this scope
GCS_Ardupilot:87: error: 'SendSerln' was not declared in this scope
ArduPilotMega.cpp: In function 'void print_control_mode()':
GCS_Ardupilot:94: error: 'SendSerln' was not declared in this scope
ArduPilotMega.cpp: In function 'void print_position()':
GCS_Ardupilot:128: error: 'SendSer' was not declared in this scope
GCS_Ardupilot:155: error: 'SendSerln' was not declared in this scope
ArduPilotMega.cpp: In function 'void print_waypoint(Location*, byte)':
GCS_Ardupilot:160: error: 'SendSer' was not declared in this scope
GCS_Ardupilot:171: error: 'SendSerln' was not declared in this scope
2.
3.
What is the expected output? What do you see instead?
Compile completed
What version of the product are you using? On what operating system?
r887 win7/64
Please provide any additional information below.
Fix
in GCS_Ardupilot
Replace:
#if GCS_PROTOCOL == GCS_PROTOCOL_LEGACY
#if GCS_PORT == 3
# define SendSer Serial3.print
# define SendSerln Serial3.println
#else
# define SendSer SendSer
# define SendSerln SendSerln
#endif
With:
#if GCS_PROTOCOL == GCS_PROTOCOL_LEGACY
#if GCS_PORT == 3
# define SendSer Serial3.print
# define SendSerln Serial3.println
#else
# define SendSer Serial.print
# define SendSerln Serial.println
#endif
Original issue reported on code.google.com by ockhams....@gmail.com on 18 Sep 2010 at 12:15
Original issue reported on code.google.com by
ockhams....@gmail.com
on 18 Sep 2010 at 12:15