question about MultiWii_dev_20111006 POWERPIN

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
User avatar
SoundMTB
Posts: 37
Joined: Tue Jul 26, 2011 8:17 am
Location: Germany Osnabrueck
Contact:

question about MultiWii_dev_20111006 POWERPIN

Post by SoundMTB »

Dear All,

I found the DEV Version MultiWii_dev_20111006.
Now my question is:
When I use #define RCAUXPIN12 is there an influence to the Power Pin function in Code segment checkStatusI2C(), becouse there

Code: Select all

  if (!GYRO) {
      POWERPIN_OFF //switch OFF WMP
      delay(1); 
      POWERPIN_ON  //switch ON WMP
      delay(10);
      WMP_init(0);
    }

is the POWERPIN function still enabled.
I think there must be a code change like this
if (!GYRO AND NOT DEFINED RCAUXPIN12 ) {...
is that correct??

regards
Oliver

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: question about MultiWii_dev_20111006 POWERPIN

Post by Alexinparis »

it doesn't matter because I redefine the PIN statement in this case:

Code: Select all

#if defined(RCAUXPIN8)
  #define BUZZERPIN_PINMODE          ;
  #define BUZZERPIN_ON               ;
  #define BUZZERPIN_OFF              ;
  #define RCAUXPIN
#endif
#if defined(RCAUXPIN12)
  #define POWERPIN_PINMODE           ;
  #define POWERPIN_ON                ;
  #define POWERPIN_OFF               ;
  #define RCAUXPIN
#endif

Post Reply