Автопилот Arduplane - открытое ПО

vtoryh
alexeykozin:

можно забить широту долготу и высоту,
можно тупо ткнуть мышью

А патча интересно нет чтоб самолет ведомым был? 😃

По изображению или маяку.

alexeykozin


по изображению нет, “следуй за мной” вроде реально, даже чтото такое слышал…

да, есть такая функция,
называется follow me

требуется жпс модуль на стороне компа подключенный к последовательному или юсб порту
жмем в мишен планере Ctrl-F
настраиваем, пользуемся

кстати удобно кинотелевизионщикам, снимать автомобиль в движении

vtoryh
alexeykozin:

да, есть такая функция,
называется follow me

требуется жпс модуль на стороне компа подключенный к последовательному или юсб порту
жмем в мишен планере Ctrl-F
настраиваем, пользуемся

То есть ГПС должен быть на том устройстве за которым нужно следовать?
Скажем если впереди еще один самолет и он может передать данные о своем местоположении то остается только перехватить эти данные и подсунуть мишшен планеру?

vtoryh

ну скажем поснимать впереди летящий самолет. 😃
Заказал себе 2.5 проведу еще один тест на скае. 😃

Serpent
vtoryh:

ну скажем поснимать впереди летящий самолет. 😃

Для этого точность сигналов GPS и скорость обработки должна быть минимум на порядок выше, чем доступно простым смертным.

Serj=
vtoryh:

То есть ГПС должен быть на том устройстве за которым нужно следовать?

Теоретически, можно соединить GPS приемник и 3DR модем, установить все это на ведомый самолет, а приемник модема в ноут, который управляет ведущим самолетом в режиме follow me. В ноуте будет торчать два модема от ведомого и ведущего самолета.

vtoryh

Короче проще забить и вручную рулить. 😃

Serj=
vtoryh:

Короче проще забить

Почему, по моему, вполне простой и рабочий вариант, причем такой ГПС передатчик можно ставит куда угодно.
Придет мне ГПС, проверю.

vtoryh

А можно ли как то добавить поддержку GPS трекера в ардупилота?
Скажем если я подключаю gsm модем к нему то чтобы он брал свои координаты и отправлял смс мне?
Или скажем по запросу? Он же gsm поддерживает, но поддерживает ли скажем параллельную работу в виде GPS трекера?
Двухстороннюю то связь по GSM он поддерживает с землей. Но без покупки 2-го модема?

HATUUL
vtoryh:

Короче проще забить и вручную рулить.

Имхо проще так сделать.
Может кто поможет,что-то подобное сделать?Только на ардуине,и на таких датчиках?

chanov
vtoryh:

Двухстороннюю то связь по GSM он поддерживает с землей.

А здесь о чём речь? При чём тут GSM?

vtoryh
chanov:

А здесь о чём речь? При чём тут GSM?

про dronecell и возможности использования его как трекера через смс.

В коде это несколько дополнительных строчек.

GrAl

А нет инструкции по компиляции? а то я только в такие ошибки утыкаюсь

In file included from ArduCopter.ino:124:
Parameters.h:240: error: 'AP_Int16' does not name a type
Parameters.h:241: error: 'AP_Int8' does not name a type
Parameters.h:245: error: 'AP_Int16' does not name a type
Parameters.h:246: error: 'AP_Int16' does not name a type
Parameters.h:247: error: 'AP_Int8' does not name a type
Parameters.h:248: error: 'AP_Int8' does not name a type
Parameters.h:250: error: 'AP_Int16' does not name a type
Parameters.h:251: error: 'AP_Int8' does not name a type
Parameters.h:252: error: 'AP_Int8' does not name a type
Parameters.h:255: error: 'AP_Int8' does not name a type
Parameters.h:257: error: 'AP_Float' does not name a type
Parameters.h:258: error: 'AP_Float' does not name a type
Parameters.h:259: error: 'AP_Float' does not name a type
Parameters.h:260: error: 'AP_Int16' does not name a type
Parameters.h:261: error: 'AP_Int8' does not name a type
Parameters.h:263: error: 'AP_Int8' does not name a type
Parameters.h:264: error: 'AP_Int8' does not name a type
Parameters.h:265: error: 'AP_Float' does not name a type
Parameters.h:266: error: 'AP_Int8' does not name a type
Parameters.h:267: error: 'AP_Int16' does not name a type
Parameters.h:268: error: 'AP_Int8' does not name a type
Parameters.h:269: error: 'AP_Int8' does not name a type
Parameters.h:270: error: 'AP_Int8' does not name a type
Parameters.h:273: error: 'AP_Int8' does not name a type
Parameters.h:274: error: 'AP_Int8' does not name a type
Parameters.h:275: error: 'AP_Int8' does not name a type
Parameters.h:276: error: 'AP_Int8' does not name a type
Parameters.h:277: error: 'AP_Int8' does not name a type
Parameters.h:281: error: 'AP_Int8' does not name a type
Parameters.h:282: error: 'AP_Int8' does not name a type
Parameters.h:283: error: 'AP_Int16' does not name a type
Parameters.h:284: error: 'AP_Int16' does not name a type
Parameters.h:285: error: 'AP_Int16' does not name a type
Parameters.h:286: error: 'AP_Float' does not name a type
Parameters.h:287: error: 'AP_Int16' does not name a type
Parameters.h:288: error: 'AP_Int32' does not name a type
Parameters.h:289: error: 'AP_Int16' does not name a type
Parameters.h:290: error: 'AP_Int16' does not name a type
Parameters.h:291: error: 'AP_Int16' does not name a type
Parameters.h:292: error: 'AP_Int16' does not name a type
Parameters.h:297: error: 'AP_Int16' does not name a type
Parameters.h:298: error: 'AP_Int16' does not name a type
Parameters.h:299: error: 'AP_Int8' does not name a type
Parameters.h:300: error: 'AP_Int16' does not name a type
Parameters.h:301: error: 'AP_Int16' does not name a type
Parameters.h:305: error: 'AP_Int8' does not name a type
Parameters.h:306: error: 'AP_Int8' does not name a type
Parameters.h:307: error: 'AP_Int8' does not name a type
Parameters.h:308: error: 'AP_Int8' does not name a type
Parameters.h:309: error: 'AP_Int8' does not name a type
Parameters.h:310: error: 'AP_Int8' does not name a type
Parameters.h:311: error: 'AP_Int8' does not name a type
Parameters.h:315: error: 'AP_Int16' does not name a type
Parameters.h:317: error: 'AP_Int8' does not name a type
Parameters.h:322: error: 'AP_Int8' does not name a type
Parameters.h:323: error: 'AP_Int8' does not name a type
Parameters.h:324: error: 'AP_Int16' does not name a type
Parameters.h:325: error: 'AP_Int16' does not name a type
Parameters.h:326: error: 'AP_Int8' does not name a type
Parameters.h:327: error: 'AP_Int8' does not name a type
Parameters.h:328: error: 'AP_Int16' does not name a type
Parameters.h:339: error: 'RC_Channel' does not name a type
Parameters.h:340: error: 'RC_Channel' does not name a type
Parameters.h:341: error: 'RC_Channel' does not name a type
Parameters.h:342: error: 'RC_Channel' does not name a type
Parameters.h:343: error: 'RC_Channel_aux' does not name a type
Parameters.h:344: error: 'RC_Channel_aux' does not name a type
Parameters.h:345: error: 'RC_Channel_aux' does not name a type
Parameters.h:346: error: 'RC_Channel_aux' does not name a type
Parameters.h:349: error: 'RC_Channel_aux' does not name a type
Parameters.h:350: error: 'RC_Channel_aux' does not name a type
Parameters.h:352: error: 'AP_Int16' does not name a type
Parameters.h:355: error: 'AP_Float' does not name a type
Parameters.h:356: error: 'AP_Int16' does not name a type
Parameters.h:357: error: 'AP_Int16' does not name a type
Parameters.h:358: error: 'AP_Int8' does not name a type
Parameters.h:361: error: 'AC_PID' does not name a type
Parameters.h:362: error: 'AC_PID' does not name a type
Parameters.h:363: error: 'AC_PID' does not name a type
Parameters.h:364: error: 'AC_PID' does not name a type
Parameters.h:365: error: 'AC_PID' does not name a type
Parameters.h:366: error: 'AC_PID' does not name a type
Parameters.h:367: error: 'AC_PID' does not name a type
Parameters.h:369: error: 'AC_PID' does not name a type
Parameters.h:370: error: 'AC_PID' does not name a type
Parameters.h:371: error: 'AC_PID' does not name a type
Parameters.h:372: error: 'AC_PID' does not name a type
Parameters.h:374: error: 'APM_PI' does not name a type
Parameters.h:375: error: 'APM_PI' does not name a type
Parameters.h:376: error: 'APM_PI' does not name a type
Parameters.h:377: error: 'APM_PI' does not name a type
Parameters.h:378: error: 'APM_PI' does not name a type
Parameters.h:379: error: 'APM_PI' does not name a type
/Parameters.h: In constructor 'Parameters::Parameters()':
Parameters.h:392: error: class 'Parameters' does not have any field named 'rc_1'
Parameters.h:392: error: 'CH_1' was not declared in this scope
Parameters.h:393: error: class 'Parameters' does not have any field named 'rc_2'
Parameters.h:393: error: 'CH_2' was not declared in this scope
Parameters.h:394: error: class 'Parameters' does not have any field named 'rc_3'
Parameters.h:394: error: 'CH_3' was not declared in this scope
Parameters.h:395: error: class 'Parameters' does not have any field named 'rc_4'
Parameters.h:395: error: 'CH_4' was not declared in this scope
Parameters.h:396: error: class 'Parameters' does not have any field named 'rc_5'
Parameters.h:396: error: 'CH_5' was not declared in this scope
Parameters.h:397: error: class 'Parameters' does not have any field named 'rc_6'
Parameters.h:397: error: 'CH_6' was not declared in this scope
Parameters.h:398: error: class 'Parameters' does not have any field named 'rc_7'
Parameters.h:398: error: 'CH_7' was not declared in this scope
Parameters.h:399: error: class 'Parameters' does not have any field named 'rc_8'
Parameters.h:399: error: 'CH_8' was not declared in this scope
Parameters.h:401: error: class 'Parameters' does not have any field named 'rc_10'
Parameters.h:401: error: 'CH_10' was not declared in this scope
Parameters.h:402: error: class 'Parameters' does not have any field named 'rc_11'
Parameters.h:402: error: 'CH_11' was not declared in this scope
Parameters.h:408: error: class 'Parameters' does not have any field named 'pid_rate_roll'
Parameters.h:409: error: class 'Parameters' does not have any field named 'pid_rate_pitch'
Parameters.h:410: error: class 'Parameters' does not have any field named 'pid_rate_yaw'
Parameters.h:412: error: class 'Parameters' does not have any field named 'pid_loiter_rate_lat'
Parameters.h:413: error: class 'Parameters' does not have any field named 'pid_loiter_rate_lon'
Parameters.h:415: error: class 'Parameters' does not have any field named 'pid_nav_lat'
Parameters.h:416: error: class 'Parameters' does not have any field named 'pid_nav_lon'
Parameters.h:418: error: class 'Parameters' does not have any field named 'pid_throttle'
Parameters.h:419: error: class 'Parameters' does not have any field named 'pid_throttle_accel'
Parameters.h:420: error: class 'Parameters' does not have any field named 'pid_optflow_roll'
Parameters.h:421: error: class 'Parameters' does not have any field named 'pid_optflow_pitch'
Parameters.h:426: error: class 'Parameters' does not have any field named 'pi_loiter_lat'
Parameters.h:427: error: class 'Parameters' does not have any field named 'pi_loiter_lon'
Parameters.h:429: error: class 'Parameters' does not have any field named 'pi_stabilize_roll'
Parameters.h:430: error: class 'Parameters' does not have any field named 'pi_stabilize_pitch'
Parameters.h:431: error: class 'Parameters' does not have any field named 'pi_stabilize_yaw'
Parameters.h:433: error: class 'Parameters' does not have any field named 'pi_alt_hold'
/Parameters.h: At global scope:
Parameters.h:438: error: 'AP_Param' has not been declared
Parameters.h:438: error: expected initializer before 'var_info'
In file included from ArduCopter.ino:125:
GCS.h:43: error: 'FastSerial' has not been declared
GCS.h:79: error: expected ',' or '...' before '*' token
GCS.h:79: error: ISO C++ forbids declaration of 'prog_char_t' with no type
GCS.h:90: error: ISO C++ forbids declaration of 'FastSerial' with no type
GCS.h:90: error: expected ';' before '*' token
/GCS.h: In member function 'void GCS_Class::init(int*)':
GCS.h:44: error: '_port' was not declared in this scope
/GCS.h: At global scope:
GCS.h:109: error: 'FastSerial' has not been declared
GCS.h:112: error: expected ',' or '...' before '*' token
GCS.h:112: error: ISO C++ forbids declaration of 'prog_char_t' with no type
GCS.h:117: error: 'AP_Param' has not been declared
GCS.h:137: error: 'mavlink_message_t' has not been declared
GCS.h:141: error: ISO C++ forbids declaration of 'AP_Param' with no type
GCS.h:141: error: expected ';' before '*' token
GCS.h:143: error: use of enum 'ap_var_type' without previous declaration
GCS.h:145: error: 'AP_Param' has not been declared
GCS.h:145: error: ISO C++ forbids declaration of 'ParamToken' with no type
GCS.h:145: error: expected ';' before '_queued_parameter_token'
GCS.h:169: error: 'mavlink_channel_t' does not name a type
GCS.h:192: error: 'AP_Int16' does not name a type
GCS.h:193: error: 'AP_Int16' does not name a type
GCS.h:194: error: 'AP_Int16' does not name a type
GCS.h:195: error: 'AP_Int16' does not name a type
GCS.h:196: error: 'AP_Int16' does not name a type
GCS.h:197: error: 'AP_Int16' does not name a type
GCS.h:198: error: 'AP_Int16' does not name a type
GCS.h:199: error: 'AP_Int16' does not name a type
GCS.h:200: error: 'AP_Int16' does not name a type
ArduCopter:252: error: variable or field 'send_heartbeat' declared void
ArduCopter:252: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:253: error: variable or field 'send_attitude' declared void
ArduCopter:253: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:254: error: variable or field 'send_limits_status' declared void
ArduCopter:254: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:255: error: variable or field 'send_extended_status1' declared void
ArduCopter:255: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:255: error: expected primary-expression before 'packet_drops'
ArduCopter:256: error: variable or field 'send_meminfo' declared void
ArduCopter:256: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:257: error: variable or field 'send_location' declared void
ArduCopter:257: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:258: error: variable or field 'send_nav_controller_output' declared void
ArduCopter:258: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:259: error: variable or field 'send_ahrs' declared void
ArduCopter:259: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:260: error: variable or field 'send_simstate' declared void
ArduCopter:260: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:261: error: variable or field 'send_hwstatus' declared void
ArduCopter:261: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:262: error: variable or field 'send_gps_raw' declared void
ArduCopter:262: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:263: error: variable or field 'send_servo_out' declared void
ArduCopter:263: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:264: error: variable or field 'send_radio_in' declared void
ArduCopter:264: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:265: error: variable or field 'send_radio_out' declared void
ArduCopter:265: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:266: error: variable or field 'send_vfr_hud' declared void
ArduCopter:266: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:267: error: variable or field 'send_raw_imu1' declared void
ArduCopter:267: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:268: error: variable or field 'send_raw_imu2' declared void
ArduCopter:268: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:269: error: variable or field 'send_raw_imu3' declared void
ArduCopter:269: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:270: error: variable or field 'send_current_waypoint' declared void
ArduCopter:270: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:271: error: variable or field 'send_statustext' declared void
ArduCopter:271: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:272: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:273: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:273: error: expected primary-expression before 'enum'
ArduCopter:273: error: expected primary-expression before 'packet_drops'
ArduCopter:273: error: initializer expression list treated as compound expression
ArduCopter:274: error: variable or field 'mavlink_send_message' declared void
ArduCopter:274: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:274: error: expected primary-expression before 'enum'
ArduCopter:274: error: expected primary-expression before 'packet_drops'
ArduCopter:275: error: variable or field 'mavlink_send_text' declared void
ArduCopter:275: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:275: error: expected primary-expression before 'severity'
ArduCopter:275: error: expected primary-expression before 'const'
ArduCopter:281: error: expected ',' or '...' before '*' token
ArduCopter:281: error: ISO C++ forbids declaration of 'prog_char_t' with no type
ArduCopter:287: error: variable or field 'print_latlon' declared void
ArduCopter:287: error: 'BetterStream' was not declared in this scope
ArduCopter:287: error: 's' was not declared in this scope
ArduCopter:287: error: expected primary-expression before 'lat_or_lon'
ArduCopter:338: error: variable or field 'print_latlon' declared void
ArduCopter:338: error: 'BetterStream' was not declared in this scope
ArduCopter:338: error: 's' was not declared in this scope
ArduCopter:338: error: expected primary-expression before 'lat_or_lon'
ArduCopter:449: error: variable or field 'limits_send_mavlink_status' declared void
ArduCopter:449: error: 'mavlink_channel_t' was not declared in this scope
ArduCopter:520: error: expected initializer before '*' token
ArduCopter:533: error: variable or field 'run_cli' declared void
ArduCopter:533: error: 'FastSerial' was not declared in this scope
ArduCopter:533: error: 'port' was not declared in this scope
ArduCopter:144: error: expected constructor, destructor, or type conversion before '(' token
ArduCopter:145: error: expected constructor, destructor, or type conversion before '(' token
ArduCopter:146: error: expected constructor, destructor, or type conversion before '(' token
ArduCopter:149: error: expected initializer before '*' token
ArduCopter:155: error: 'AP_Param' does not name a type
ArduCopter:157: error: 'Arduino_Mega_ISR_Registry' does not name a type
ArduCopter:176: error: 'APM_RC_APM2' does not name a type
ArduCopter:184: error: 'AP_Semaphore' does not name a type
ArduCopter:185: error: 'AP_Semaphore' does not name a type
ArduCopter:187: error: 'DataFlash_APM2' does not name a type
ArduCopter:196: error: 'AP_InertialSensor' has not been declared
ArduCopter:196: error: expected initializer before 'ins_sample_rate'
ArduCopter:212: error: expected initializer before '*' token
ArduCopter:215: error: expected initializer before '*' token
ArduCopter:238: error: 'AP_Baro_MS5611' does not name a type
ArduCopter:241: error: 'AP_Compass_HMC5843' does not name a type
ArduCopter:246: error: 'AP_OpticalFlow_ADNS3080' does not name a type
ArduCopter:256: error: 'AP_GPS_Auto' does not name a type
ArduCopter:281: error: 'AP_InertialSensor_MPU6000' does not name a type
ArduCopter:289: error: 'AP_AHRS_DCM' does not name a type
ArduCopter:335: error: 'AP_TimerProcess' does not name a type
ArduCopter:347: error: 'ModeFilterInt16_Size3' does not name a type
ArduCopter:352: error: 'AP_AnalogSource_Arduino' does not name a type
ArduCopter:354: error: 'AP_RangeFinder_MaxsonarXL' does not name a type
ArduCopter:477: error: 'AP_MotorsQuad' does not name a type
ArduCopter:485: error: 'Vector3f' does not name a type
ArduCopter:613: error: 'AP_LeadFilter' does not name a type
ArduCopter:614: error: 'AP_LeadFilter' does not name a type
ArduCopter:622: error: 'AverageFilterInt32_Size5' does not name a type
ArduCopter:644: error: aggregate 'Location circle_WP' has incomplete type and cannot be defined
ArduCopter:731: error: aggregate 'Location home' has incomplete type and cannot be defined
ArduCopter:733: error: aggregate 'Location current_loc' has incomplete type and cannot be defined
ArduCopter:735: error: aggregate 'Location next_WP' has incomplete type and cannot be defined
ArduCopter:737: error: aggregate 'Location prev_WP' has incomplete type and cannot be defined
ArduCopter:739: error: aggregate 'Location command_nav_queue' has incomplete type and cannot be defined
ArduCopter:741: error: aggregate 'Location command_cond_queue' has incomplete type and cannot be defined
ArduCopter:743: error: aggregate 'Location guided_WP' has incomplete type and cannot be defined
ArduCopter:801: error: aggregate 'Location yaw_look_at_WP' has incomplete type and cannot be defined
ArduCopter:845: error: 'AP_InertialNav' does not name a type
ArduCopter:886: error: 'AP_Relay_APM2' does not name a type
ArduCopter:893: error: 'AP_Camera' does not name a type
ArduCopter:898: error: 'AP_AnalogSource_Arduino' does not name a type
ArduCopter:901: error: expected ',' or '...' before '::' token
ArduCopter:901: error: ISO C++ forbids declaration of 'Menu' with no type
ArduCopter:909: error: 'AP_Mount' does not name a type
ArduCopter:923: error: 'AP_Limits' does not name a type
ArduCopter:924: error: 'AP_Limit_GPSLock' does not name a type
ArduCopter:925: error: 'AP_Limit_Geofence' does not name a type
ArduCopter:926: error: 'AP_Limit_Altitude' does not name a type
ArduCopter.ino: In function 'void setup()':
ArduCopter:939: error: 'memcheck_init' was not declared in this scope
ArduCopter.ino: In function 'void loop()':
ArduCopter:950: error: 'ins' was not declared in this scope
ArduCopter:1006: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1027: error: 'class Parameters' has no member named 'compass_enabled'
ArduCopter:1028: error: 'compass' was not declared in this scope
ArduCopter.ino: In function 'void fast_loop()':
ArduCopter:1060: error: 'class Parameters' has no member named 'optflow_enabled'
ArduCopter.ino: In function 'void medium_loop()':
ArduCopter:1097: error: 'class Parameters' has no member named 'compass_enabled'
ArduCopter:1098: error: 'compass' was not declared in this scope
ArduCopter:1109: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1143: error: 'class Parameters' has no member named 'command_total'
ArduCopter:1148: error: 'motors' was not declared in this scope
ArduCopter:1149: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1156: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1166: error: 'class Parameters' has no member named 'battery_monitoring'
ArduCopter.ino: In function 'void fifty_hz_loop()':
ArduCopter:1227: error: 'camera_mount' was not declared in this scope
ArduCopter:1236: error: 'camera' was not declared in this scope
ArduCopter:1240: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1240: error: 'motors' was not declared in this scope
ArduCopter:1247: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1247: error: 'motors' was not declared in this scope
ArduCopter.ino: In function 'void slow_loop()':
ArduCopter:1271: error: 'compass' was not declared in this scope
ArduCopter:1275: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1275: error: 'class Parameters' has no member named 'compass_enabled'
ArduCopter:1283: error: 'motors' was not declared in this scope
ArduCopter:1284: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1288: error: 'class Parameters' has no member named 'frame_orientation'
ArduCopter:1297: error: 'class Parameters' has no member named 'rc_5'
ArduCopter:1297: error: 'class Parameters' has no member named 'rc_6'
ArduCopter:1297: error: 'class Parameters' has no member named 'rc_7'
ArduCopter:1297: error: 'class Parameters' has no member named 'rc_8'
ArduCopter:1297: error: 'class Parameters' has no member named 'rc_10'
ArduCopter:1297: error: 'class Parameters' has no member named 'rc_11'
ArduCopter:1297: error: 'update_aux_servo_function' was not declared in this scope
ArduCopter:1299: error: 'enable_aux_servos' was not declared in this scope
ArduCopter:1302: error: 'camera_mount' was not declared in this scope
ArduCopter:1323: error: 'class Parameters' has no member named 'radio_tuning'
ArduCopter.ino: In function 'void super_slow_loop()':
ArduCopter:1343: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1343: error: 'motors' was not declared in this scope
ArduCopter:1348: error: 'class Parameters' has no member named 'rc_3'
ArduCopter.ino: In function 'void update_optical_flow()':
ArduCopter:1374: error: 'optflow' was not declared in this scope
ArduCopter:1376: error: 'ahrs' was not declared in this scope
ArduCopter:1382: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter.ino: In function 'void update_GPS()':
ArduCopter:1396: error: 'g_gps' was not declared in this scope
ArduCopter:1424: error: 'class Parameters' has no member named 'compass_enabled'
ArduCopter:1426: error: 'compass' was not declared in this scope
ArduCopter:1434: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:1434: error: 'motors' was not declared in this scope
ArduCopter.ino: In function 'bool set_yaw_mode(uint8_t)':
ArduCopter:1472: error: 'get_bearing_cd' was not declared in this scope
ArduCopter.ino: In function 'void update_yaw_mode()':
ArduCopter:1511: error: 'class Parameters' has no member named 'rc_4'
ArduCopter:1516: error: 'class Parameters' has no member named 'axis_enabled'
ArduCopter:1517: error: 'class Parameters' has no member named 'rc_4'
ArduCopter:1519: error: 'class Parameters' has no member named 'rc_4'
ArduCopter:1530: error: 'class Parameters' has no member named 'rc_4'
ArduCopter:1541: error: 'class Parameters' has no member named 'rc_4'
ArduCopter:1552: error: 'class Parameters' has no member named 'rc_4'
ArduCopter:1565: error: 'class Parameters' has no member named 'rc_4'
ArduCopter.ino: In function 'void update_roll_pitch_mode()':
ArduCopter:1615: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1615: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1615: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1643: error: 'class Parameters' has no member named 'axis_enabled'
ArduCopter:1644: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1645: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1648: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1649: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1660: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1661: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1674: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1674: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1674: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1674: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1675: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1675: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1675: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1675: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1677: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1678: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1690: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1691: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1708: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1708: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1708: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1708: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1709: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1709: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1709: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1709: error: 'class Parameters' has no member named 'auto_slew_rate'
ArduCopter:1717: error: 'class Parameters' has no member named 'rc_3'
ArduCopter.ino: In function 'void update_simple_mode()':
ArduCopter:1739: error: 'ahrs' was not declared in this scope
ArduCopter:1752: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1752: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1753: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1753: error: 'class Parameters' has no member named 'rc_2'
ArduCopter:1755: error: 'class Parameters' has no member named 'rc_1'
ArduCopter:1756: error: 'class Parameters' has no member named 'rc_2'
ArduCopter.ino: In function 'bool set_throttle_mode(uint8_t)':
ArduCopter:1780: error: 'class Parameters' has no member named 'throttle_accel_enabled'
ArduCopter:1821: error: 'cliSerial' was not declared in this scope
ArduCopter.ino: In function 'void update_throttle_mode()':
ArduCopter:1848: error: 'motors' was not declared in this scope
ArduCopter:1866: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1870: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1876: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1881: error: 'motors' was not declared in this scope
ArduCopter:1882: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1882: error: 'class Parameters' has no member named 'throttle_cruise'
ArduCopter:1892: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1895: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1901: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1904: error: 'motors' was not declared in this scope
ArduCopter:1905: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1905: error: 'class Parameters' has no member named 'throttle_cruise'
ArduCopter:1915: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1919: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1926: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1930: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1937: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1942: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1949: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1954: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1955: error: 'class Parameters' has no member named 'auto_velocity_z_min'
ArduCopter:1955: error: 'class Parameters' has no member named 'auto_velocity_z_max'
ArduCopter:1961: error: 'class Parameters' has no member named 'rc_3'
ArduCopter:1973: error: 'motors' was not declared in this scope
ArduCopter:1974: error: 'class Parameters' has no member named 'auto_velocity_z_min'
ArduCopter:1974: error: 'class Parameters' has no member named 'auto_velocity_z_max'
ArduCopter.ino: In function 'void read_AHRS()':
ArduCopter:1994: error: 'ahrs' was not declared in this scope
ArduCopter:1995: error: 'omega' was not declared in this scope
ArduCopter:1995: error: 'ins' was not declared in this scope
ArduCopter.ino: In function 'void update_trig()':
ArduCopter:2003: error: 'Vector2f' was not declared in this scope
ArduCopter:2003: error: expected `;' before 'yawvector'
ArduCopter:2004: error: 'Matrix3f' was not declared in this scope
ArduCopter:2004: error: expected `;' before 'temp'
ArduCopter:2006: error: 'yawvector' was not declared in this scope
ArduCopter:2006: error: 'temp' was not declared in this scope
ArduCopter:2010: error: 'safe_sqrt' was not declared in this scope
ArduCopter.ino: In function 'void update_altitude()':
ArduCopter:2059: error: 'class Parameters' has no member named 'sonar_enabled'
ArduCopter.ino: In function 'void update_altitude_est()':
ArduCopter:2105: error: 'inertial_nav' was not declared in this scope
ArduCopter:2113: error: 'class Parameters' has no member named 'log_bitmask'
ArduCopter:2113: error: 'motors' was not declared in this scope
ArduCopter.ino: In function 'void tuning()':
ArduCopter:2134: error: 'class Parameters' has no member named 'rc_6'
ArduCopter:2135: error: 'class Parameters' has no member named 'rc_6'
ArduCopter:2135: error: 'class Parameters' has no member named 'radio_tuning_low'
ArduCopter:2135: error: 'class Parameters' has no member named 'radio_tuning_high'
ArduCopter:2137: error: 'class Parameters' has no member named 'radio_tuning'
ArduCopter:2140: error: 'class Parameters' has no member named 'pid_rate_roll'
ArduCopter:2141: error: 'class Parameters' has no member named 'pid_rate_pitch'
ArduCopter:2145: error: 'class Parameters' has no member named 'pi_stabilize_roll'
ArduCopter:2146: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
ArduCopter:2150: error: 'class Parameters' has no member named 'pi_stabilize_roll'
ArduCopter:2151: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
ArduCopter:2155: error: 'class Parameters' has no member named 'acro_p'
ArduCopter:2159: error: 'class Parameters' has no member named 'pid_rate_roll'
ArduCopter:2160: error: 'class Parameters' has no member named 'pid_rate_pitch'
ArduCopter:2164: error: 'class Parameters' has no member named 'pid_rate_roll'
ArduCopter:2165: error: 'class Parameters' has no member named 'pid_rate_pitch'
ArduCopter:2169: error: 'class Parameters' has no member named 'pi_stabilize_yaw'
ArduCopter:2173: error: 'class Parameters' has no member named 'pi_stabilize_yaw'
ArduCopter:2177: error: 'class Parameters' has no member named 'pid_rate_yaw'
ArduCopter:2181: error: 'class Parameters' has no member named 'pid_rate_yaw'
ArduCopter:2185: error: 'class Parameters' has no member named 'pid_throttle'
ArduCopter:2189: error: 'class Parameters' has no member named 'pid_throttle'
ArduCopter:2193: error: 'class Parameters' has no member named 'pid_throttle'
ArduCopter:2197: error: 'motors' was not declared in this scope
ArduCopter:2201: error: 'class Parameters' has no member named 'rc_6'
ArduCopter:2201: error: 'relay' was not declared in this scope
ArduCopter:2202: error: 'class Parameters' has no member named 'rc_6'
ArduCopter:2202: error: 'relay' was not declared in this scope
ArduCopter:2206: error: 'class Parameters' has no member named 'waypoint_speed_max'
ArduCopter:2206: error: 'class Parameters' has no member named 'rc_6'
ArduCopter:2210: error: 'class Parameters' has no member named 'pi_loiter_lat'
ArduCopter:2211: error: 'class Parameters' has no member named 'pi_loiter_lon'
ArduCopter:2215: error: 'class Parameters' has no member named 'pi_loiter_lat'
ArduCopter:2216: error: 'class Parameters' has no member named 'pi_loiter_lon'
ArduCopter:2220: error: 'class Parameters' has no member named 'pid_nav_lat'
ArduCopter:2221: error: 'class Parameters' has no member named 'pid_nav_lon'
ArduCopter:2225: error: 'class Parameters' has no member named 'pid_loiter_rate_lon'
ArduCopter:2226: error: 'class Parameters' has no member named 'pid_loiter_rate_lat'
ArduCopter:2230: error: 'class Parameters' has no member named 'pid_loiter_rate_lon'
ArduCopter:2231: error: 'class Parameters' has no member named 'pid_loiter_rate_lat'
ArduCopter:2235: error: 'class Parameters' has no member named 'pid_loiter_rate_lon'
ArduCopter:2236: error: 'class Parameters' has no member named 'pid_loiter_rate_lat'
ArduCopter:2240: error: 'class Parameters' has no member named 'pid_nav_lat'
ArduCopter:2241: error: 'class Parameters' has no member named 'pid_nav_lon'
ArduCopter:2251: error: 'class Parameters' has no member named 'pi_alt_hold'
ArduCopter:2255: error: 'class Parameters' has no member named 'pid_optflow_roll'
ArduCopter:2256: error: 'class Parameters' has no member named 'pid_optflow_pitch'
ArduCopter:2260: error: 'class Parameters' has no member named 'pid_optflow_roll'
ArduCopter:2261: error: 'class Parameters' has no member named 'pid_optflow_pitch'
ArduCopter:2265: error: 'class Parameters' has no member named 'pid_optflow_roll'
ArduCopter:2266: error: 'class Parameters' has no member named 'pid_optflow_pitch'
ArduCopter:2271: error: 'ahrs' was not declared in this scope
ArduCopter:2284: error: 'inertial_nav' was not declared in this scope
ArduCopter:2289: error: 'class Parameters' has no member named 'pid_throttle_accel'
ArduCopter:2293: error: 'class Parameters' has no member named 'pid_throttle_accel'
ArduCopter:2297: error: 'class Parameters' has no member named 'pid_throttle_accel'
AP_State.ino: In function 'void dump_state()':
AP_State:138: error: 'cliSerial' was not declared in this scope
Attitude.ino: In function 'void get_stabilize_roll(int32_t)':
Attitude:7: error: 'ahrs' was not declared in this scope
Attitude:13: error: 'class Parameters' has no member named 'pi_stabilize_roll'
Attitude:18: error: 'class Parameters' has no member named 'pi_stabilize_roll'
Attitude:20: error: 'class Parameters' has no member named 'pi_stabilize_roll'
Attitude.ino: In function 'void get_stabilize_pitch(int32_t)':
Attitude:31: error: 'ahrs' was not declared in this scope
Attitude:37: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
Attitude:42: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
Attitude:44: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
Attitude.ino: In function 'void get_stabilize_yaw(int32_t)':
Attitude:59: error: 'ahrs' was not declared in this scope
Attitude:66: error: 'class Parameters' has no member named 'pi_stabilize_yaw'
Attitude:67: error: 'class Parameters' has no member named 'pi_stabilize_yaw'
Attitude:78: error: 'class Parameters' has no member named 'log_bitmask'
Attitude:78: error: 'class Parameters' has no member named 'radio_tuning'
Attitude.ino: In function 'void get_acro_roll(int32_t)':
Attitude:94: error: 'class Parameters' has no member named 'acro_p'
Attitude.ino: In function 'void get_acro_pitch(int32_t)':
Attitude:103: error: 'class Parameters' has no member named 'acro_p'
Attitude.ino: In function 'void get_acro_yaw(int32_t)':
Attitude:112: error: 'class Parameters' has no member named 'acro_p'
Attitude.ino: In function 'void get_roll_rate_stabilized_ef(int32_t)':
Attitude:125: error: 'class Parameters' has no member named 'acro_p'
Attitude:125: error: 'class Parameters' has no member named 'acro_balance_roll'
Attitude:132: error: 'class Parameters' has no member named 'acro_trainer_enabled'
Attitude:134: error: 'ahrs' was not declared in this scope
Attitude:137: error: 'ahrs' was not declared in this scope
Attitude:141: error: 'motors' was not declared in this scope
Attitude:141: error: 'class Parameters' has no member named 'rc_3'
Attitude:146: error: 'ahrs' was not declared in this scope
Attitude:151: error: 'class Parameters' has no member named 'pi_stabilize_roll'
Attitude.ino: In function 'void get_pitch_rate_stabilized_ef(int32_t)':
Attitude:161: error: 'class Parameters' has no member named 'acro_p'
Attitude:161: error: 'class Parameters' has no member named 'acro_balance_pitch'
Attitude:170: error: 'ahrs' was not declared in this scope
Attitude:173: error: 'ahrs' was not declared in this scope
Attitude:177: error: 'motors' was not declared in this scope
Attitude:177: error: 'class Parameters' has no member named 'rc_3'
Attitude:182: error: 'ahrs' was not declared in this scope
Attitude:185: error: 'class Parameters' has no member named 'pi_stabilize_pitch'
Attitude.ino: In function 'void get_yaw_rate_stabilized_ef(int32_t)':
Attitude:196: error: 'class Parameters' has no member named 'acro_p'
Attitude:203: error: 'ahrs' was not declared in this scope
Attitude:208: error: 'motors' was not declared in this scope
Attitude:208: error: 'class Parameters' has no member named 'rc_3'
Attitude:216: error: 'class Parameters' has no member named 'pi_stabilize_yaw'
Attitude.ino: In function 'void run_rate_controllers()':
Attitude:274: error: 'class Parameters' has no member named 'rc_1'
Attitude:275: error: 'class Parameters' has no member named 'rc_2'
Attitude:276: error: 'class Parameters' has no member named 'rc_4'
Attitude:280: error: 'class Parameters' has no member named 'throttle_accel_enabled'
Attitude.ino: In function 'int16_t get_rate_roll(int32_t)':
Attitude:455: error: 'omega' was not declared in this scope
Attitude:459: error: 'class Parameters' has no member named 'pid_rate_roll'
Attitude:462: error: 'motors' was not declared in this scope
Attitude:462: error: 'AP_MOTOR_ROLLPITCH_LIMIT' was not declared in this scope
Attitude:463: error: 'class Parameters' has no member named 'pid_rate_roll'
Attitude:465: error: 'class Parameters' has no member named 'pid_rate_roll'
Attitude:468: error: 'class Parameters' has no member named 'pid_rate_roll'
Attitude:476: error: 'class Parameters' has no member named 'log_bitmask'
Attitude:476: error: 'class Parameters' has no member named 'radio_tuning'
Attitude:476: error: 'class Parameters' has no member named 'radio_tuning'
Attitude:476: error: 'class Parameters' has no member named 'radio_tuning'
Attitude.ino: In function 'int16_t get_rate_pitch(int32_t)':
Attitude:498: error: 'omega' was not declared in this scope
GCS_Mavlink.ino: At global scope:
GCS_Mavlink:9: error: 'mavlink_statustext_t' does not name a type
GCS_Mavlink:19: error: expected ',' or '...' before '*' token
GCS_Mavlink:19: error: ISO C++ forbids declaration of 'prog_char_t' with no type
GCS_Mavlink:57: error: variable or field 'send_heartbeat' declared void
GCS_Mavlink:57: error: 'mavlink_channel_t' was not declared in this scope
egunak95

У Алексея есть тест программа проверки выходов от 0 до 70. Я её переделал чтобы посмотреть где какие цифровые выходы, т.е. идентифицировать номер, однако вместо осцилографа я пользовался светодиодом с резистором и кнопка в 0 вход другой контакт GND. Начинается проверка с 1 контакта, на мониторе смотрим номер, жмём кнопку, следующий контакт 2 и т.д. проверяемый выход должен моргать светодиодом, проверенные горят постоянно.

int i =1;
int pin=0; // is switch to GND
int value=0;
void setup()
{
Serial.begin(38400);
// set the digital pin0 as input:
pinMode(pin, INPUT);
digitalWrite(pin, HIGH);
}
void loop()
{

i=1;
while (i<54) // digital ouputs from 1 to 53
{
Serial.println(i,DEC);
pinMode(i, OUTPUT);
digitalWrite(i, LOW);
delay (1000);
digitalWrite(i, HIGH);
delay (1000);
value=digitalRead(pin);
if(value ==0)
{
i++;}
}

}

kaveg

а зачем так сложно, если умееш писать код то не проще ли залезть в заголовочники ардуиноиде и посмотреть там что куда?

egunak95
kaveg:

залезть в заголовочники

Я не понял что такое заголовочники. Сделали новую Ардустанцию на Атмеге 2560 store.jdrones.com/…/gcsjdasm13.htm . Я установил программу на плату Атмеги2560 от старой версии Ардустанции на 328Р , но Бузер не заработал, ну я решил что он потерялся. В программе написан 14 выход, вот я его искал, так быстрее чем в даташите разбираться. Получилось что Бузер сел на ТХ3, надо поправить. Я не программист, но вот хочу чтобы эта Ардустанция давала меняющийся по частоте звук, т.е. когда планер подхватит термик частота увеличивается и наоборот при снижении звук меняется на низкий тон и молчит когда нет ускорения по вертикали. Это сделано на больших планерах такой звук, очень удобно искать потоки не отвлекаясь на приборы. Может кто-то встречал такую программу?

kaveg

Файлик pins_arduino.h там смотрется мапинг ардуино пинов на порты\биты атмеги, далее в даташите на мегу смотрим какая нога микросхемки имеет тоже обосзначение
например
пин номер 15, там обозначен как PJ , // PJ 0 ** 15 ** USART3_RX
соотвественно лезем в даташит меги и смотрим какая нога PORTJ бит 0

ну и файлик смотрим в каталоге ардуины hardware/arduino/variants/mega

ну или для ленивых гуглим картинку на которой будет нарисовано какая нога какой ардуинопин)))

просто объективно все 54 или сколькотам у меги лампочкой и кнопочкой усталбы тестить и сбился бы уже на 10й ноге)))

egunak95
kaveg:

ну или для ленивых гуглим картинку на которой будет нарисовано какая нога какой ардуинопин

Картинка наверно такая как здесь: arduino.cc/en/Hacking/PinMapping2560 Спасибо за подсказку где найти файлик, теперь понятно, что библиотека пинов работает с разными платами Атмеги, а поэтому программы адаптируются и работают одинаково. Однако я попробовал вставить в программу Ардустанции музыкальный фрагмент взятый из 3pi (робот таблетка) демо прораммы, чтобы при включении станции играл фрагмент фуги Баха. Всё скомпилировалось и встало в железо но звук пищал на разные тона, я думаю это из разной частоты генератора - в Ардустанции 16МГц, а в 3pi 20 МГц. Так что “каменный цветок” не всегда получается. Теоретически конечно пины искать можно, но лампочкой находится конкретный физический контакт и проверяется его работа, что Алексей Козин делал для проверки непропая только осцилографом.

kaveg

ну да, непропай по даташиту не найдёшь)))

egunak95

Пожалуйста, подскажите функцию джойстика в Планировщике в закладке “Действия”. Можно ли использовать канал телеметрии для управления?

KZ-850

Сегодня было первое включение АРМ2.5 - с датчиком тока-напряжения (шестипроводный) и GPS UBLOX LEA-6H.
Показания напряжения отличаются от реальных на 0.44В (реально 12.44 - показывает 12.0) - как откалибровать понять не смог. Пробовал по инструкции в ПО наземной станции - но там только о датчике тока с тремя проводами… И GPS похоже совсем мертвый - светится красный светодиод постоянным светом, спутников 0, HDOP 100… ЖПС включен в “старый порт”.

kaveg

спутников 0 вы случайно не дома его включали с окнами на север?

а вообще объективно - чистое небо широта поближе к экватору и батарейка чтобы альманах не качал каждый раз)))

KZ-850
kaveg:

вы случайно не дома его включали с окнами на север?

В помещении, но рядом с большими окнами - практически любые ЖПСы в этом месте находят по 6-8 спутников, пролежал включенным больше двух часов, так что здесь однозначно проблема не в “чистом небе”.