I have Added a new library class custom_class() - Working fine: perform operation as expected and updates a value.
created custom_message() in Mavlink and send to GCS adopting as others(i.e. send_battery_status()) in GCS_COMMON.cpp - NOT WORKING and Ends up with error:
lib\libArduCopter_libs.a(GCS_Common.cpp.0.o): In function
GCS_MAVLINK::send_custom_message()': GCS_Common.cpp:(.text._ZN11GCS_MAVLINK19send_custom_messageEv+0x6): undefined reference to AP::custom_class_object()’
collect2.exe: error: ld returned 1 exit status
- I tested send_custom_message() without AP::custom_class_object() by sending a fixed numbers it is working fine.
how can i Obtain custom_class_object declared in copter class so that i can send the calculated value to GCS in GCS_COMMON