[bug] MWii 2.4 - Mongoose support broken

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
flegmatoid
Posts: 4
Joined: Fri May 20, 2016 6:37 am

[bug] MWii 2.4 - Mongoose support broken

Post by flegmatoid »

Hi,

not sure if that's a right way of reporting bugs in here, so please excuse me if I missed some instruction

I have an old fancy flight controller board called "Mongoose", which did cost me $120 5 years ago (yeah, $15 worth of components these days).

Nevertheless, I couldn't force it to work on a Fixed Wing configurations (FLYING_WING or AIRPLANE)
This is because someone has come to a wrong conclusion that servo[4] / D12 is reserved thus unavailable.

That is not true and the schematics proves it - the pin is routed to SPI header with no other connections.
It has, however, square (ground-like) via, so my guess is - visual inspection led to a faulty conclusions that it must be grounded and not available for use.

The fix (commented-out lines should be removed):

Code: Select all

Def.h
  //#if !defined(MONGOOSE1_0)
    #define SERVO_4_PINMODE            pinMode(12,OUTPUT); // new       - alt TILT_ROLL
    #define SERVO_4_PIN_HIGH           PORTB |= 1<<4;
    #define SERVO_4_PIN_LOW            PORTB &= ~(1<<4);
  //#endif

  //#define SERVO_4_PINMODE            ;                   // Not available
  //#define SERVO_4_PIN_HIGH           ;
  //#define SERVO_4_PIN_LOW            ;

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: [bug] MWii 2.4 - Mongoose support broken

Post by Hamburger »

is not some define in config.h to enable/disable d8 and d12 pins for specific cases?
Too long ago to remember clearly the intricacies of plethora of 328p intricacies, sorry.

flegmatoid
Posts: 4
Joined: Fri May 20, 2016 6:37 am

Re: [bug] MWii 2.4 - Mongoose support broken

Post by flegmatoid »

well yes, there's a section in config.h called "override default pin assignments", but that's only for general-purpose pins, such as LED, BUZZ etc.
And, it would look rather silly to eliminate the buggy code by overriding it.
Nevertheless, I think there's plenty of flight controller boards which are EOL, so I'm not calling for a fix. Consider this as a FYI post should any Mongoose user got stuck on the same problem as I did.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: [bug] MWii 2.4 - Mongoose support broken

Post by PatrikE »

I also ave a Mongoose so i will look at it and apply a fix.
Haven't thought much about it even though it't my most used FC.

It's perfect format for small airplanes.

Post Reply