Skip to content

Commit

Permalink
Blimp: fixup mavlink mav type, fix mode ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleRos authored and IamPete1 committed Sep 6, 2021
1 parent b77580f commit 0ee8b45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Blimp/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Mode *Blimp::mode_from_mode_num(const Mode::Number mode)
Mode *ret = nullptr;

switch (mode) {
case Mode::Number::MANUAL:
ret = &mode_manual;
break;
case Mode::Number::LAND:
ret = &mode_land;
break;
case Mode::Number::MANUAL:
ret = &mode_manual;
break;
case Mode::Number::VELOCITY:
ret = &mode_velocity;
break;
Expand Down
4 changes: 2 additions & 2 deletions Blimp/mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Mode

// Auto Pilot Modes enumeration
enum class Number : uint8_t {
MANUAL = 0, // manual control
LAND = 1, // currently just stops moving
LAND = 0, // currently just stops moving
MANUAL = 1, // manual control
VELOCITY = 2, // velocity mode
LOITER = 3, // loiter mode (position hold)
};
Expand Down
2 changes: 1 addition & 1 deletion Blimp/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ bool Blimp::should_log(uint32_t mask)
// return MAV_TYPE corresponding to frame class
MAV_TYPE Blimp::get_frame_mav_type()
{
return MAV_TYPE_QUADROTOR; //TODO: Mavlink changes to allow type to be correct
return MAV_TYPE_AIRSHIP;
}

// return string corresponding to frame_class
Expand Down

0 comments on commit 0ee8b45

Please sign in to comment.