RizkiWahyupratama / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

ArduCopterMega doesn't set the Drone Type on MAVBeats #502

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Just check out the content of MAVBeats looking for the drone type;
   The MAVLink function to check it is: mavlink_msg_heartbeat_get_type

What is the expected output? What do you see instead?

It should output "2" which is "MAV_QUADROTOR" defined in mavlink_types.h.
It is outputting "0" which is "MAV_GENERIC".

enum MAV_TYPE
{
    MAV_GENERIC = 0,
    MAV_FIXED_WING = 1,
    MAV_QUADROTOR = 2,
    MAV_COAXIAL = 3,
    MAV_HELICOPTER = 4,
    MAV_GROUND = 5,
    OCU = 6
};

Arduplane sets mavlink_system.type as MAV_FIXED_WING in system.pde.
Arducopter uses mavlink_system.type in many places but it doesn't set in 
nowhere.

Original issue reported on code.google.com by sbeni...@gmail.com on 1 Feb 2012 at 9:27

GoogleCodeExporter commented 9 years ago

Original comment by Meee...@gmail.com on 2 Feb 2012 at 11:01