MR60

Programming with Arducopter/Arduino

Hello,

I would like to compile and upload the Arducopter code to my UAV. To do so I followed the instructions on the wiki, that is :

-installed the Arduino 1.0.3 (Arudpilot) version on win7

-installed the 2.8.1 software version (the two folders Arducopter and libraries)

 

I then open the sketchbook Arducopter. That gives me plenty of tabs in the Arduino IDE.

I click on tools/compile-verify and I get plenty of compile errors. I provide the log heredunder. Does anyone knows what's wrong in the process ? Did I miss something and wrongly configured something ? Or did not configure something ?:

--------

Building for ArduPilot Mega 2.x
Excluding arduino core from include paths
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/BetterStream.h:16,
                 from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/FastSerial.h:56,
                 from ArduCopter.ino:63:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/../AP_Common/AP_Common.h:20:22: error: Arduino.h: No such file or directory
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/FastSerial.h:56,
                 from ArduCopter.ino:63:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/BetterStream.h:18: error: expected class-name before '{' token
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/BetterStream.h:36: error: 'va_list' has not been declared
In file included from ArduCopter.ino:63:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\FastSerial/FastSerial.h:124: error: no members matching 'BetterStream::write' in 'class BetterStream'
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_NMEA.h:45,
                 from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:6,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:145: error: ISO C++ forbids declaration of 'Stream' with no type
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:145: error: expected ';' before '*' token
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:154: error: expected `)' before '*' token
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:197: error: 'Stream' has not been declared
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:198: error: 'Stream' has not been declared
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:6,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_NMEA.h:56: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:7,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_SIRF.h:20: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:8,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_406.h:23: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:9,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_UBLOX.h:30: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:10,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_MTK.h:23: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:11,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_MTK16.h:21: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:12,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_None.h:11: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:14,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_HIL.h:19: error: expected `)' before '*' token
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:15,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_Shim.h: In constructor 'AP_GPS_Shim::AP_GPS_Shim()':
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_Shim.h:20: error: no matching function for call to 'GPS::GPS(NULL)'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:16: note: candidates are: GPS::GPS()
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/GPS.h:16: note:                 GPS::GPS(const GPS&)
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS.h:16,
                 from ArduCopter.ino:68:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_IMU.h: At global scope:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_GPS/AP_GPS_IMU.h:13: error: expected `)' before '*' token
In file included from ArduCopter.ino:69:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\I2C/I2C.h:74: error: 'boolean' has not been declared
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\I2C/I2C.h:75: error: 'boolean' has not been declared
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\I2C/I2C.h:106: error: 'boolean' has not been declared
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\libraries\SPI/SPI.h:14,
                 from ArduCopter.ino:70:
d:/arduino/ardupilot-arduino-1.0.3-windows/ardupilot-arduino-1.0.3-windows/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:655: error: expected primary-expression before 'const'
d:/arduino/ardupilot-arduino-1.0.3-windows/ardupilot-arduino-1.0.3-windows/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:655: error: expected `)' before 'const'
In file included from ArduCopter.ino:70:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\libraries\SPI/SPI.h:38: error: 'byte' does not name a type
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\libraries\SPI/SPI.h:55: error: 'byte' does not name a type
In file included from ArduCopter.ino:71:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\SPI3/SPI3.h:56: error: 'byte' has not been declared
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Compass/AP_Compass.h:6,
                 from ArduCopter.ino:77:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Compass/AP_Compass_HMC5843.h:56: error: 'byte' has not been declared
In file included from ArduCopter.ino:79:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Common/AP_Curve.h: In member function 'virtual void AP_Curve<T, SIZE>::dump_curve()':
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Common/AP_Curve.h:135: error: 'class FastSerial' has no member named 'print'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Common/AP_Curve.h:137: error: 'class FastSerial' has no member named 'print'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Common/AP_Curve.h:139: error: 'class FastSerial' has no member named 'print'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Common/AP_Curve.h:140: error: 'class FastSerial' has no member named 'println'
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU.h:7,
                 from ArduCopter.ino:81:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_Shim.h: At global scope:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_Shim.h:26: error: 'delay' was not declared in this scope
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_Shim.h:33: error: 'delay' was not declared in this scope
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_Shim.h:36: error: 'delay' was not declared in this scope
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_Shim.h: In constructor 'AP_IMU_Shim::AP_IMU_Shim()':
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_Shim.h:19: error: 'micros' was not declared in this scope
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU.h:8,
                 from ArduCopter.ino:81:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_INS.h: At global scope:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_INS.h:46: error: 'delay' was not declared in this scope
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_INS.h:51: error: 'delay' was not declared in this scope
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_IMU/AP_IMU_INS.h:53: error: 'delay' was not declared in this scope
In file included from ArduCopter.ino:99:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_OpticalFlow/AP_OpticalFlow.h:54: error: 'byte' does not name a type
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_OpticalFlow/AP_OpticalFlow.h:55: error: 'byte' has not been declared
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_OpticalFlow/AP_OpticalFlow.h:55: error: 'byte' has not been declared
In file included from D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Camera/AP_Camera.h:11,
                 from ArduCopter.ino:105:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h: In function 'void comm_send_ch(mavlink_channel_t, uint8_t)':
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h:41: error: 'class BetterStream' has no member named 'write'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h:44: error: 'class BetterStream' has no member named 'write'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h: In function 'uint8_t comm_receive_ch(mavlink_channel_t)':
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h:62: error: 'class BetterStream' has no member named 'read'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h:65: error: 'class BetterStream' has no member named 'read'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h: In function 'uint16_t comm_get_available(mavlink_channel_t)':
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h:82: error: 'class BetterStream' has no member named 'available'
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\GCS_MAVLink/GCS_MAVLink.h:85: error: 'class BetterStream' has no member named 'available'
In file included from ArduCopter.ino:124:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Limits/AP_Limits.h: At global scope:
D:\Arduino\ArduPilot-Arduino-1.0.3-windows\ArduPilot-Arduino-1.0.3-windows\Hugues arducopter sketches\libraries\AP_Limits/AP_Limits.h:78: error: 'byte' does not name a type
ArduCopter:275: error: variable or field 'Log_Write_Cmd' declared void
ArduCopter:275: error: 'byte' was not declared in this scope
ArduCopter:275: error: expected primary-expression before 'struct'
ArduCopter:279: error: variable or field 'Log_Write_Mode' declared void
ArduCopter:279: error: 'byte' was not declared in this scope
ArduCopter:295: error: variable or field 'Log_Write_Cmd' declared void
ArduCopter:295: error: 'byte' was not declared in this scope
ArduCopter:295: error: expected primary-expression before 'struct'
ArduCopter:296: error: variable or field 'Log_Write_Mode' declared void
ArduCopter:296: error: 'byte' was not declared in this scope
ArduCopter:366: error: 'byte' does not name a type
ArduCopter:457: error: variable or field 'print_switch' declared void
ArduCopter:457: error: 'byte' was not declared in this scope
ArduCopter:457: error: 'byte' was not declared in this scope
ArduCopter:457: error: expected primary-expression before 'bool'
ArduCopter:474: error: variable or field 'print_enabled' declared void
ArduCopter:474: error: 'boolean' was not declared in this scope
ArduCopter:477: error: 'byte' has not been declared
ArduCopter:483: error: variable or field 'set_mode' declared void
ArduCopter:483: error: 'byte' was not declared in this scope
ArduCopter:484: error: variable or field 'set_failsafe' declared void
ArduCopter:484: error: 'boolean' was not declared in this scope
ArduCopter:488: error: 'boolean' does not name a type
ArduCopter:232: error: 'A3' was not declared in this scope
ArduCopter:342: error: 'A0' was not declared in this scope
ArduCopter:398: error: 'byte' does not name a type
ArduCopter:456: error: 'boolean' does not name a type
ArduCopter:475: error: 'boolean' does not name a type
ArduCopter:478: error: 'boolean' does not name a type
ArduCopter:481: error: 'byte' does not name a type
ArduCopter:483: error: 'byte' does not name a type
ArduCopter:485: error: 'byte' does not name a type
ArduCopter:529: error: 'byte' does not name a type
ArduCopter:549: error: 'boolean' does not name a type
ArduCopter:636: error: 'boolean' does not name a type
ArduCopter:677: error: 'boolean' does not name a type
ArduCopter:688: error: 'byte' does not name a type
ArduCopter:690: error: 'byte' does not name a type
ArduCopter:692: error: 'byte' does not name a type
ArduCopter:701: error: 'boolean' does not name a type
ArduCopter:703: error: 'boolean' does not name a type
ArduCopter:733: error: 'boolean' does not name a type
ArduCopter:812: error: 'byte' does not name a type
ArduCopter:825: error: 'byte' does not name a type
ArduCopter:827: error: 'byte' does not name a type
ArduCopter:837: error: 'byte' does not name a type
ArduCopter:893: error: 'byte' does not name a type
ArduCopter:902: error: 'byte' does not name a type
ArduCopter:904: error: 'byte' does not name a type
ArduCopter:906: error: 'byte' does not name a type
ArduCopter.ino: In function 'void loop()':
ArduCopter:983: error: 'micros' was not declared in this scope
ArduCopter:1042: error: 'counter_one_herz' was not declared in this scope
ArduCopter.ino: In function 'void medium_loop()':
ArduCopter:1138: error: 'medium_loopCounter' was not declared in this scope
ArduCopter:1193: error: 'throttle_mode' was not declared in this scope
ArduCopter:1198: error: 'alt_sensor_flag' was not declared in this scope
ArduCopter:1209: error: 'home_is_set' was not declared in this scope
ArduCopter.ino: In function 'void slow_loop()':
ArduCopter:1343: error: 'slow_loopCounter' was not declared in this scope
ArduCopter.ino: In function 'void update_GPS()':
ArduCopter:1493: error: 'byte' does not name a type
ArduCopter:1498: error: 'gps_watchdog' was not declared in this scope
ArduCopter:1516: error: 'gps_watchdog' was not declared in this scope
ArduCopter:1528: error: 'millis' was not declared in this scope
ArduCopter:1533: error: 'min' was not declared in this scope
ArduCopter:1535: error: 'ground_start_count' was not declared in this scope
ArduCopter.ino: In function 'void update_yaw_mode()':
ArduCopter:1579: error: 'yaw_mode' was not declared in this scope
ArduCopter:1604: error: 'constrain' was not declared in this scope
ArduCopter.ino: In function 'void update_roll_pitch_mode()':
ArduCopter:1624: error: 'roll_pitch_mode' was not declared in this scope
ArduCopter:1666: error: 'constrain' was not declared in this scope
ArduCopter:1716: error: 'constrain' was not declared in this scope
ArduCopter.ino: In function 'void update_simple_mode()':
ArduCopter:1727: error: 'byte' does not name a type
ArduCopter:1732: error: 'simple_counter' was not declared in this scope
ArduCopter:1738: error: 'radians' was not declared in this scope
ArduCopter:1742: error: 'radians' was not declared in this scope
ArduCopter.ino: In function 'void update_throttle_mode()':
ArduCopter:1771: error: 'throttle_mode' was not declared in this scope
ArduCopter:1778: error: 'throttle_mode' was not declared in this scope
ArduCopter:1803: error: 'takeoff_complete' was not declared in this scope
ArduCopter:1841: error: 'max' was not declared in this scope
ArduCopter:1862: error: 'constrain' was not declared in this scope
ArduCopter:1872: error: 'min' was not declared in this scope
ArduCopter.ino: In function 'void update_navigation()':
ArduCopter:1904: error: 'wp_control' was not declared in this scope
ArduCopter:1912: error: 'set_mode' was not declared in this scope
ArduCopter:1949: error: 'loiter_override' was not declared in this scope
ArduCopter:1953: error: 'loiter_override' was not declared in this scope
ArduCopter:1971: error: 'millis' was not declared in this scope
ArduCopter:1975: error: 'set_mode' was not declared in this scope
ArduCopter:2028: error: 'yaw_mode' was not declared in this scope
ArduCopter:2029: error: 'home_is_set' was not declared in this scope
ArduCopter.ino: In function 'void update_nav_RTL()':
ArduCopter:2042: error: 'set_mode' was not declared in this scope
ArduCopter:2054: error: 'failsafe' was not declared in this scope
ArduCopter:2055: error: 'millis' was not declared in this scope
ArduCopter.ino: In function 'void update_trig()':
ArduCopter:2091: error: 'constrain' was not declared in this scope
ArduCopter.ino: In function 'void update_altitude()':
ArduCopter:2140: error: 'constrain' was not declared in this scope
ArduCopter.ino: In function 'void update_altitude_est()':
ArduCopter:2215: error: 'alt_sensor_flag' was not declared in this scope
ArduCopter.ino: In function 'void update_nav_wp()':
ArduCopter:2380: error: 'wp_control' was not declared in this scope
ArduCopter:2453: error: 'constrain' was not declared in this scope
ArduCopter.ino: In function 'void update_auto_yaw()':
ArduCopter:2460: error: 'wp_control' was not declared in this scope
ArduCopter:2466: error: 'yaw_tracking' was not declared in this scope
Attitude.ino: In function 'void get_stabilize_roll(int32_t)':
Attitude:26: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'void get_stabilize_pitch(int32_t)':
Attitude:59: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'void get_stabilize_yaw(int32_t)':
Attitude:84: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'void get_roll_rate_stabilized_ef(int32_t)':
Attitude:165: error: 'constrain' was not declared in this scope
Attitude:170: error: 'constrain' was not declared in this scope
Attitude:173: error: 'failsafe' was not declared in this scope
Attitude.ino: In function 'void get_pitch_rate_stabilized_ef(int32_t)':
Attitude:201: error: 'constrain' was not declared in this scope
Attitude:206: error: 'constrain' was not declared in this scope
Attitude:209: error: 'failsafe' was not declared in this scope
Attitude.ino: In function 'void get_yaw_rate_stabilized_ef(int32_t)':
Attitude:238: error: 'constrain' was not declared in this scope
Attitude:240: error: 'failsafe' was not declared in this scope
Attitude.ino: In function 'int16_t get_rate_roll(int32_t)':
Attitude:344: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'int16_t get_rate_pitch(int32_t)':
Attitude:400: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'int16_t get_rate_yaw(int32_t)':
Attitude:443: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'int16_t get_throttle_rate(int16_t)':
Attitude:487: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'int16_t get_angle_boost(int16_t)':
Attitude:617: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'int32_t get_of_roll(int32_t)':
Attitude:801: error: 'constrain' was not declared in this scope
Attitude:817: error: 'constrain' was not declared in this scope
Attitude.ino: In function 'int32_t get_of_pitch(int32_t)':
Attitude:856: error: 'constrain' was not declared in this scope
Attitude:872: error: 'constrain' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_attitude(mavlink_channel_t)':
GCS_Mavlink:88: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_location(mavlink_channel_t)':
GCS_Mavlink:199: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_servo_out(mavlink_channel_t)':
GCS_Mavlink:336: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_radio_in(mavlink_channel_t)':
GCS_Mavlink:356: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_radio_out(mavlink_channel_t)':
GCS_Mavlink:373: error: 'micros' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_raw_imu1(mavlink_channel_t)':
GCS_Mavlink:403: error: 'micros' was not declared in this scope
GCS_Mavlink.ino: In function 'void send_raw_imu2(mavlink_channel_t)':
GCS_Mavlink:419: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In function 'bool telemetry_delayed(mavlink_channel_t)':
GCS_Mavlink:470: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In member function 'void GCS_MAVLINK::update()':
GCS_Mavlink:798: error: 'millis' was not declared in this scope
GCS_Mavlink.ino: In member function 'void GCS_MAVLINK::handleMessage(mavlink_message_t*)':
GCS_Mavlink:1046: error: 'set_mode' was not declared in this scope
GCS_Mavlink:1129: error: 'set_mode' was not declared in this scope
GCS_Mavlink:1162: error: 'millis' was not declared in this scope
GCS_Mavlink:1293: error: 'millis' was not declared in this scope
GCS_Mavlink:1409: error: 'millis' was not declared in this scope
GCS_Mavlink:1547: error: 'set_mode' was not declared in this scope
GCS_Mavlink:1590: error: 'millis' was not declared in this scope
GCS_Mavlink:1650: error: 'constrain' was not declared in this scope
GCS_Mavlink:1658: error: 'constrain' was not declared in this scope
GCS_Mavlink:1666: error: 'constrain' was not declared in this scope
GCS_Mavlink.ino: In function 'void mavlink_delay(long unsigned int)':
GCS_Mavlink:2017: error: 'delay' was not declared in this scope
GCS_Mavlink:2023: error: 'millis' was not declared in this scope
GCS_Mavlink:2040: error: 'delay' was not declared in this scope
Log.ino: In function 'bool print_log_menu()':
Log:92: error: 'class FastSerial' has no member named 'println'
Log:109: error: 'class FastSerial' has no member named 'println'
Log.ino: In function 'void Log_Read_Raw()':
Log:383: error: 'class FastSerial' has no member named 'print'
Log.ino: In function 'void Log_Read_Iterm()':
Log:717: error: 'class FastSerial' has no member named 'println'
Log.ino: At global scope:
Log:751: error: variable or field 'Log_Write_Cmd' declared void
Log:751: error: 'byte' was not declared in this scope
Log:751: error: expected primary-expression before 'struct'
Log:835: error: variable or field 'Log_Write_Mode' declared void
Log:835: error: 'byte' was not declared in this scope
Log.ino: In function 'int16_t Log_Read_Process(int16_t, int16_t)':
Log:1021: error: 'byte' was not declared in this scope
Log:1021: error: expected `;' before 'data'
Log:1022: error: expected `;' before 'log_step'
Log:1030: error: 'data' was not declared in this scope
Log:1033: error: 'log_step' was not declared in this scope
Parameters.ino: In function 'void load_parameters()':
Parameters:439: error: 'micros' was not declared in this scope
commands.ino: In function 'void init_commands()':
commands:15: error: 'yaw_tracking' was not declared in this scope
commands.ino: In function 'void set_cmd_with_index(Location, int)':
commands:76: error: 'constrain' was not declared in this scope
commands.ino: In function 'void set_next_WP(Location*)':
commands:158: error: 'max' was not declared in this scope
commands.ino: In function 'void init_home()':
commands:190: error: 'home_is_set' was not declared in this scope
commands:206: error: 'Log_Write_Cmd' was not declared in this scope
commands_logic.ino: In function 'void process_nav_command()':
commands_logic:19: error: 'yaw_mode' was not declared in this scope
commands_logic.ino: In function 'void do_takeoff()':
commands_logic:245: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'void do_nav_wp()':
commands_logic:262: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'void do_land()':
commands_logic:283: error: 'wp_control' was not declared in this scope
commands_logic:286: error: 'land_complete' was not declared in this scope
commands_logic.ino: In function 'void do_loiter_unlimited()':
commands_logic:304: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'void do_loiter_turns()':
commands_logic:318: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'void do_loiter_time()':
commands_logic:344: error: 'wp_control' was not declared in this scope
commands_logic:345: error: 'millis' was not declared in this scope
commands_logic:348: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'bool verify_land_sonar()':
commands_logic:373: error: 'wp_control' was not declared in this scope
commands_logic:378: error: 'min' was not declared in this scope
commands_logic:382: error: 'wp_control' was not declared in this scope
commands_logic:393: error: 'land_complete' was not declared in this scope
commands_logic.ino: In function 'bool verify_land_baro()':
commands_logic:408: error: 'wp_control' was not declared in this scope
commands_logic:413: error: 'min' was not declared in this scope
commands_logic:417: error: 'wp_control' was not declared in this scope
commands_logic:427: error: 'land_complete' was not declared in this scope
commands_logic.ino: In function 'bool verify_nav_wp()':
commands_logic:459: error: 'millis' was not declared in this scope
commands_logic:469: error: 'wp_control' was not declared in this scope
commands_logic:471: error: 'millis' was not declared in this scope
commands_logic.ino: In function 'bool verify_loiter_unlimited()':
commands_logic:491: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'bool verify_loiter_time()':
commands_logic:500: error: 'wp_control' was not declared in this scope
commands_logic:501: error: 'millis' was not declared in this scope
commands_logic:505: error: 'wp_control' was not declared in this scope
commands_logic:507: error: 'millis' was not declared in this scope
commands_logic.ino: In function 'bool verify_RTL()':
commands_logic:531: error: 'wp_control' was not declared in this scope
commands_logic.ino: In function 'void do_wait_delay()':
commands_logic:551: error: 'millis' was not declared in this scope
commands_logic.ino: In function 'void do_yaw()':
commands_logic:573: error: 'yaw_tracking' was not declared in this scope
commands_logic:577: error: 'millis' was not declared in this scope
commands_logic:579: error: 'command_yaw_dir' was not declared in this scope
commands_logic:581: error: 'command_yaw_relative' was not declared in this scope
commands_logic.ino: In function 'bool verify_wait_delay()':
commands_logic:633: error: 'millis' was not declared in this scope
commands_logic.ino: In function 'bool verify_yaw()':
commands_logic:673: error: 'millis' was not declared in this scope
commands_logic:690: error: 'command_yaw_dir' was not declared in this scope
commands_logic.ino: In function 'void do_target_yaw()':
commands_logic:746: error: 'yaw_tracking' was not declared in this scope
commands_logic.ino: In function 'void do_set_home()':
commands_logic:800: error: 'home_is_set' was not declared in this scope
commands_logic.ino: In function 'void do_repeat_servo()':
commands_logic:822: error: 'event_id' was not declared in this scope
commands_logic.ino: In function 'void do_repeat_relay()':
commands_logic:851: error: 'event_id' was not declared in this scope
commands_logic.ino: In function 'void do_nav_roi()':
commands_logic:869: error: 'yaw_tracking' was not declared in this scope
commands_process.ino: In function 'void change_command(uint8_t)':
commands_process:9: error: 'min' was not declared in this scope
commands_process.ino: In function 'void execute_nav_command()':
commands_process:151: error: 'Log_Write_Cmd' was not declared in this scope
commands_process.ino: In function 'void exit_mission()':
commands_process:209: error: 'land_complete' was not declared in this scope
commands_process:214: error: 'set_mode' was not declared in this scope
commands_process:216: error: 'set_mode' was not declared in this scope
control_modes.ino: In function 'void read_control_switch()':
control_modes:7: error: 'byte' was not declared in this scope
control_modes:7: error: expected `;' before 'switchPosition'
control_modes:9: error: 'oldSwitchPosition' was not declared in this scope
control_modes:9: error: 'switchPosition' was not declared in this scope
control_modes:14: error: 'set_mode' was not declared in this scope
control_modes.ino: At global scope:
control_modes:27: error: 'byte' does not name a type
control_modes.ino: In function 'void reset_control_switch()':
control_modes:40: error: 'oldSwitchPosition' was not declared in this scope
control_modes.ino: In function 'void read_trim_switch()':
control_modes:66: error: 'CH7_flag' was not declared in this scope
control_modes:70: error: 'takeoff_complete' was not declared in this scope
control_modes:74: error: 'CH7_flag' was not declared in this scope
control_modes:79: error: 'CH7_flag' was not declared in this scope
control_modes:81: error: 'set_mode' was not declared in this scope
control_modes:84: error: 'CH7_flag' was not declared in this scope
control_modes:93: error: 'CH7_flag' was not declared in this scope
control_modes:96: error: 'CH7_flag' was not declared in this scope
control_modes:103: error: 'set_mode' was not declared in this scope
control_modes:129: error: 'constrain' was not declared in this scope
control_modes.ino: In function 'void auto_trim()':
control_modes:174: error: 'led_mode' was not declared in this scope
control_modes.ino: In function 'void trim_accel()':
control_modes:226: error: 'constrain' was not declared in this scope
events.ino: In function 'void failsafe_on_event()':
events:15: error: 'set_mode' was not declared in this scope
events:25: error: 'home_is_set' was not declared in this scope
events:28: error: 'set_mode' was not declared in this scope
events:34: error: 'set_mode' was not declared in this scope
events.ino: In function 'void failsafe_off_event()':
events:61: error: 'set_mode' was not declared in this scope
events.ino: In function 'void low_battery_event()':
events:68: error: 'millis' was not declared in this scope
events:80: error: 'set_mode' was not declared in this scope
events.ino: In function 'void update_events()':
events:86: error: 'millis' was not declared in this scope
events:94: error: 'millis' was not declared in this scope
events:96: error: 'event_id' was not declared in this scope
events:104: error: 'event_id' was not declared in this scope
failsafe.ino: In function 'void failsafe_enable()':
failsafe:20: error: 'micros' was not declared in this scope
leds.ino: In function 'void update_lights()':
leds:3: error: 'led_mode' was not declared in this scope
leds.ino: In function 'void update_GPS_light()':
leds:22: error: 'home_is_set' was not declared in this scope
leds:23: error: 'LOW' was not declared in this scope
leds:23: error: 'digitalWrite' was not declared in this scope
leds:25: error: 'HIGH' was not declared in this scope
leds:25: error: 'digitalWrite' was not declared in this scope
leds:31: error: 'GPS_light' was not declared in this scope
leds:33: error: 'HIGH' was not declared in this scope
leds:33: error: 'digitalWrite' was not declared in this scope
leds:35: error: 'LOW' was not declared in this scope
leds:35: error: 'digitalWrite' was not declared in this scope
leds:42: error: 'HIGH' was not declared in this scope
leds:42: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void update_motor_light()':
leds:50: error: 'motor_light' was not declared in this scope
leds:54: error: 'LOW' was not declared in this scope
leds:54: error: 'digitalWrite' was not declared in this scope
leds:56: error: 'HIGH' was not declared in this scope
leds:56: error: 'digitalWrite' was not declared in this scope
leds:59: error: 'motor_light' was not declared in this scope
leds:61: error: 'LOW' was not declared in this scope
leds:61: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void dancing_light()':
leds:68: error: 'byte' does not name a type
leds:70: error: 'step' was not declared in this scope
leds:73: error: 'step' was not declared in this scope
leds:76: error: 'HIGH' was not declared in this scope
leds:76: error: 'digitalWrite' was not declared in this scope
leds:77: error: 'LOW' was not declared in this scope
leds.ino: In function 'void clear_leds()':
leds:93: error: 'HIGH' was not declared in this scope
leds:93: error: 'digitalWrite' was not declared in this scope
leds:96: error: 'motor_light' was not declared in this scope
leds:97: error: 'led_mode' was not declared in this scope
leds.ino: In function 'void update_copter_leds()':
leds:127: error: 'bitRead' was not declared in this scope
leds:149: error: 'bitRead' was not declared in this scope
leds:156: error: 'home_is_set' was not declared in this scope
leds:183: error: 'bitRead' was not declared in this scope
leds.ino: In function 'void copter_leds_reset()':
leds:194: error: 'LOW' was not declared in this scope
leds:194: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void copter_leds_on()':
leds:205: error: 'bitRead' was not declared in this scope
leds:206: error: 'HIGH' was not declared in this scope
leds:206: error: 'digitalWrite' was not declared in this scope
leds:209: error: 'bitRead' was not declared in this scope
leds:210: error: 'HIGH' was not declared in this scope
leds:210: error: 'digitalWrite' was not declared in this scope
leds:215: error: 'bitRead' was not declared in this scope
leds:216: error: 'HIGH' was not declared in this scope
leds:216: error: 'digitalWrite' was not declared in this scope
leds:218: error: 'HIGH' was not declared in this scope
leds:218: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void copter_leds_off()':
leds:226: error: 'bitRead' was not declared in this scope
leds:227: error: 'LOW' was not declared in this scope
leds:227: error: 'digitalWrite' was not declared in this scope
leds:230: error: 'bitRead' was not declared in this scope
leds:231: error: 'LOW' was not declared in this scope
leds:231: error: 'digitalWrite' was not declared in this scope
leds:236: error: 'bitRead' was not declared in this scope
leds:237: error: 'LOW' was not declared in this scope
leds:237: error: 'digitalWrite' was not declared in this scope
leds:239: error: 'LOW' was not declared in this scope
leds:239: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void copter_leds_slow_blink()':
leds:247: error: 'copter_leds_motor_blink' was not declared in this scope
leds:250: error: 'bitRead' was not declared in this scope
leds.ino: In function 'void copter_leds_fast_blink()':
leds:260: error: 'copter_leds_motor_blink' was not declared in this scope
leds.ino: In function 'void copter_leds_oscillate()':
leds:271: error: 'copter_leds_motor_blink' was not declared in this scope
leds:273: error: 'bitRead' was not declared in this scope
leds:274: error: 'HIGH' was not declared in this scope
leds:274: error: 'digitalWrite' was not declared in this scope
leds:277: error: 'bitRead' was not declared in this scope
leds:278: error: 'HIGH' was not declared in this scope
leds:278: error: 'digitalWrite' was not declared in this scope
leds:283: error: 'bitRead' was not declared in this scope
leds:284: error: 'LOW' was not declared in this scope
leds:284: error: 'digitalWrite' was not declared in this scope
leds:286: error: 'LOW' was not declared in this scope
leds:286: error: 'digitalWrite' was not declared in this scope
leds:287: error: 'HIGH' was not declared in this scope
leds:292: error: 'bitRead' was not declared in this scope
leds:293: error: 'LOW' was not declared in this scope
leds:293: error: 'digitalWrite' was not declared in this scope
leds:296: error: 'bitRead' was not declared in this scope
leds:297: error: 'LOW' was not declared in this scope
leds:297: error: 'digitalWrite' was not declared in this scope
leds:302: error: 'bitRead' was not declared in this scope
leds:303: error: 'HIGH' was not declared in this scope
leds:303: error: 'digitalWrite' was not declared in this scope
leds:305: error: 'HIGH' was not declared in this scope
leds:305: error: 'digitalWrite' was not declared in this scope
leds:306: error: 'LOW' was not declared in this scope
leds.ino: In function 'void copter_leds_GPS_on()':
leds:317: error: 'HIGH' was not declared in this scope
leds:317: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void copter_leds_GPS_off()':
leds:321: error: 'LOW' was not declared in this scope
leds:321: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void copter_leds_GPS_slow_blink()':
leds:325: error: 'copter_leds_GPS_blink' was not declared in this scope
leds:328: error: 'bitRead' was not declared in this scope
leds.ino: In function 'void copter_leds_GPS_fast_blink()':
leds:338: error: 'copter_leds_GPS_blink' was not declared in this scope
leds.ino: In function 'void copter_leds_aux_off()':
leds:348: error: 'LOW' was not declared in this scope
leds:348: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void copter_leds_aux_on()':
leds:352: error: 'HIGH' was not declared in this scope
leds:352: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void piezo_on()':
leds:356: error: 'HIGH' was not declared in this scope
leds:356: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void piezo_off()':
leds:360: error: 'LOW' was not declared in this scope
leds:360: error: 'digitalWrite' was not declared in this scope
leds.ino: In function 'void piezo_beep()':
leds:365: error: 'delay' was not declared in this scope
limits.ino: In function 'void limits_loop()':
limits:53: error: 'millis' was not declared in this scope
limits:129: error: 'millis' was not declared in this scope
limits:140: error: 'millis' was not declared in this scope
limits:173: error: 'millis' was not declared in this scope
limits:195: error: 'class AP_Limits' has no member named 'old_mode_switch'
limits:195: error: 'oldSwitchPosition' was not declared in this scope
limits:196: error: 'class AP_Limits' has no member named 'old_mode_switch'
limits:216: error: 'millis' was not declared in this scope
limits:229: error: 'class AP_Limits' has no member named 'old_mode_switch'
limits:229: error: 'oldSwitchPosition' was not declared in this scope
limits:259: error: 'set_mode' was not declared in this scope
limits:260: error: 'millis' was not declared in this scope
limits:272: error: 'throttle_mode' was not declared in this scope
limits:286: error: 'millis' was not declared in this scope
limits:288: error: 'set_mode' was not declared in this scope
limits:297: error: 'millis' was not declared in this scope
limits:301: error: 'set_mode' was not declared in this scope
limits:324: error: 'millis' was not declared in this scope
limits:331: error: 'set_mode' was not declared in this scope
limits.ino: In function 'void limits_send_mavlink_status(mavlink_channel_t)':
limits:347: error: 'millis' was not declared in this scope
motors.ino: In function 'void init_arm_motors()':
motors:126: error: 'bitRead' was not declared in this scope
motors:128: error: 'delay' was not declared in this scope
motors:141: error: 'home_is_set' was not declared in this scope
motors:161: error: 'motor_light' was not declared in this scope
motors:162: error: 'LOW' was not declared in this scope
motors:162: error: 'digitalWrite' was not declared in this scope
motors.ino: In function 'void init_disarm_motors()':
motors:191: error: 'takeoff_complete' was not declared in this scope
motors:194: error: 'bitRead' was not declared in this scope
motors.ino: In function 'void set_servos_4()':
motors:213: error: 'min' was not declared in this scope
navigation.ino: In function 'void calc_loiter(int16_t, int16_t)':
navigation:112: error: 'constrain' was not declared in this scope
navigation.ino: In function 'void calc_nav_rate(int16_t)':
navigation:179: error: 'constrain' was not declared in this scope
navigation.ino: In function 'int16_t get_desired_speed(int16_t, bool)':
navigation:258: error: 'min' was not declared in this scope
navigation:259: error: 'max' was not declared in this scope
navigation.ino: In function 'int16_t get_desired_climb_rate()':
navigation:275: error: 'constrain' was not declared in this scope
navigation:278: error: 'constrain' was not declared in this scope
planner.ino: In function 'int8_t planner_gcs(uint8_t, const Menu::arg*)':
planner:34: error: 'millis' was not declared in this scope
radio.ino: In function 'void init_rc_out()':
radio:73: error: 'byte' was not declared in this scope
radio:73: error: expected `;' before 'i'
radio:73: error: 'i' was not declared in this scope
radio:74: error: 'delay' was not declared in this scope
radio:97: error: 'delay' was not declared in this scope
radio.ino: In function 'void read_radio()':
radio:144: error: 'min' was not declared in this scope
radio.ino: In function 'void throttle_failsafe(uint16_t)':
radio:170: error: 'takeoff_complete' was not declared in this scope
radio:172: error: 'class FastSerial' has no member named 'println'
radio:172: error: 'DEC' was not declared in this scope
radio:173: error: 'set_failsafe' was not declared in this scope
radio:188: error: 'class FastSerial' has no member named 'println'
radio:188: error: 'DEC' was not declared in this scope
radio:190: error: 'set_failsafe' was not declared in this scope
radio.ino: In function 'void trim_radio()':
radio:199: error: 'byte' was not declared in this scope
radio:199: error: expected `;' before 'i'
radio:199: error: 'i' was not declared in this scope
setup.ino: In function 'int8_t setup_mode(uint8_t, const Menu::arg*)':
setup:72: error: 'delay' was not declared in this scope
setup.ino: In function 'int8_t setup_factory(uint8_t, const Menu::arg*)':
setup:133: error: 'delay' was not declared in this scope
setup.ino: In function 'int8_t setup_radio(uint8_t, const Menu::arg*)':
setup:151: error: 'delay' was not declared in this scope
setup:158: error: 'delay' was not declared in this scope
setup:194: error: 'delay' was not declared in this scope
setup.ino: In function 'int8_t setup_motors(uint8_t, const Menu::arg*)':
setup:237: error: 'delay' was not declared in this scope
setup.ino: In function 'int8_t setup_accel(uint8_t, const Menu::arg*)':
setup:250: error: 'delay' was not declared in this scope
setup.ino: In function 'int8_t setup_flightmodes(uint8_t, const Menu::arg*)':
setup:350: error: 'byte' was not declared in this scope
setup:350: error: expected `;' before '_switchPosition'
setup:351: error: expected `;' before '_oldSwitchPosition'
setup:358: error: 'delay' was not declared in this scope
setup:360: error: '_switchPosition' was not declared in this scope
setup:360: error: 'readSwitch' was not declared in this scope
setup:364: error: '_oldSwitchPosition' was not declared in this scope
setup:367: error: 'constrain' was not declared in this scope
setup:370: error: 'print_switch' was not declared in this scope
setup:386: error: 'print_switch' was not declared in this scope
setup:394: error: 'print_switch' was not declared in this scope
setup:402: error: 'print_switch' was not declared in this scope
setup.ino: In function 'int8_t setup_declination(uint8_t, const Menu::arg*)':
setup:422: error: 'radians' was not declared in this scope
setup.ino: In function 'void report_batt_monitor()':
setup:808: error: 'print_enabled' was not declared in this scope
setup.ino: At global scope:
setup:814: error: variable or field 'report_wp' declared void
setup:814: error: 'byte' was not declared in this scope

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I am trying to upload an edited version of v2.9.1b to my APM1 1280, all I have done is define the GPS protocol disable CLI and disable logging in order to save flash. It does not compile! I just keep getting 'AP_Int16' does not name a type. It is really annoying, please can someone help me

  • I am desperately trying to get this working but getting similar errors. Have tried all the above.

     

    It seems the library file ‘betterStream.h’ is trying to include a file ‘stream.h’ which is nowhere in sight in the 2.9zip file.

     

    It is however on my PC in an Atmel folder. Should I move it across?

     

     

  • I just downloaded and compile the code without problems. I use Arduino IDE 1.0.1

    Have you pointed the sketchbook into the folder "ArduCopter-2.9-rc1"? (File -> Preferences -> Sketchbook Location)

  • Maybe you forgot choosing the board.

    You must do this and try again.

    -Duy

This reply was deleted.

Activity