by s_sergiu » Fri Jan 13, 2017 10:16 am
Hi Max,
I un-comment as below:
#define USE_MAVLINK
#define USE_PRES_ALT // uncomment to use pressure altitude instead of GPS
#define USE_SIGNALING // uncomment to use external signaling events and ports
//#define HAS_QUATOS // build including Quatos library
#define HAS_AQ_TELEMETRY // uncomment to include AQ native binary telemetry and command interface
#define DIMU_VERSION 11 // uncomment to build for AQ6 hardware with DIMU add-on
In older firmware by commenting out #define USE_MAVLINK and un-commenting #define HAS_AQ_TELEMETRY , I had all AQ_Telemetry parameters sent out to serial port right after the initialization finished.
However in latest versions, I seen that by commenting out #define USE_MAVLINK there is no serial communication at all.
So I only commented out in aq_mavlink.c as below
// register notice function with comm module
commRegisterNoticeFunc(mavlinkSendNotice);
// commRegisterTelemFunc(mavlinkDo);
// commRegisterRcvrFunc(COMM_STREAM_TYPE_MAVLINK, mavlinkRecvTaskCode);
AQ_NOTICE("Mavlink init\n");
This way Mavlink information is not send to serial port anymore but suppose to be only telemetry in telemetry.c :
void telemetryInit(void) {
memset((void *)&telemetryData, 0, sizeof(telemetryData));
commRegisterTelemFunc(telemetryDo); // Instead of Mavlink
commRegisterNoticeFunc(telemetrySendNotice);
}
However from telemetryDo() nothing goes out and don't know why.
Ideally I want to completely disable Mavlink and use only AQ_TELEMETRY