Hello, Im trying to send info from sensors via Mavlink message to Mission Planner.
So what have I done:
1. I wrote custom message in ~/ardupilot/modules/mavlink/message_definitions/v1.0
<message id="227" name="ENGINE_INFO">
<description>Engine Info</description>
<field name="aero_term1" type="float">Thermopara1</field>
<field name="aero_term2" type="float">Thermopara2</field>
<field name="aero_term3" type="float">Thermopara3</field>
<field name="aero_voltage" type="float">Voltage</field>
<field name="aero_rpm" type="float">RPM</field>
2. After compilation I can see command to send
mavlink_msg_engine_info_send(chan,term1,term2,term3,volt1,rpm1);
Which I placed in GCS_Mavlink.cpp
3. I have made new cpp file with my code which I stored in ArduPlane folder to send.
I can see my info in hal.console via
hal.console->printf("term1: %f, term2: %f, term3: %f, volt1: %f, rpm1: %f\n",term1, term2, term3, volt1, rpm1);
But MissionPlanner says: INFO MissionPlanner.MAVLinkINterface - unknown packet type 227;
What should I do?
Best regards, Nikita