v1.8p1 - possible mod: various features and fixes

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
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

v1.8p1 - possible mod: various features and fixes

Post by Hamburger »

Hi,
when I started this coding session the then current dev revision did not compile due to gps code, so I started on the basis of v1.8p1.
The entire code, unified diff and changes.txt are in the google rep.

base: v1.8 patch1

changes:
+ MWii: Flying Wing
- added passthrough mode (does mixing of pitch and roll sticks)
- added 4 defines for 2 servos 2 directions for pitch and roll (no need to swap servo cables at rx with dx6i)
- added defines for min/mid/max values for servo travels

+ Wii: logging
- added counters for error conditions i2c-resets (wmp) and failsafes
- added counters displays to LCD config menu

+ Wii: LCD telemetry
- redid bug fix for LCD telemetry page D; uncommented erroneously commented code fragment
- added blinking attrribute for telemetry page B depending on buzzer state
- added extra char to telemetry page B to display error conditions i2c-resets (wmp) or failsafes

Caveats:
a) I do not know how to properly test the logging of wmp i2x error condition. The code seems simple enough though.
b) the new failsafes_count stays at initial 0 when I turn off my tx. So this code in Multiwii.pde does not get executed?

Code: Select all

  if (currentTime > (rcTime + 20000) ) { // 50Hz
    rcTime = currentTime;
    computeRC();
    // Failsafe routine - added by MIS
    #if defined(FAILSAFE)
      if ( failsafeCnt > (5*FAILSAVE_DELAY) && armed==1) {                  // Stabilize, and set Throttle to specified level
        #ifdef LOG_VALUES
         failsafes_count = 1; //only toggle on, no actual count                                               // keep log of # of failsafe conditions
        #endif
        for(i=0; i<3; i++) rcData[i] = MIDRC;                               // after specified guard time after RC signal is lost (in 0.1sec)


Any ideas, please?
Hamburger
Attachments
v18p1.diff.zip
(4.05 KiB) Downloaded 98 times

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

Re: v1.8p1 - possible mod: various features and fixes

Post by Hamburger »

short update on the progress - added some more:
base: v1.8 patch1

changes:
+ MWii: Flying Wing
- added passthrough mode (does mixing of pitch and roll sticks)
- added 4 defines for 2 servos 2 directions for pitch and roll (no need to swap servo cables at rx with dx6i)
- added defines for min/mid/max values for servo travels

+ Wii: logging
- added logging of counters for error conditions i2c-resets (wmp) and failsafes
- added outputs to LCD config menu

+ Wii: LCD telemetry
- redid bug fix for LCD telemetry page D; uncommented erroneously commented code fragment
- added blinking attrribute for telemetry page B depending on buzzer state
- added extra char to telemetry page B to display error conditions i2c-resets (wmp) or failsafes

+ Wii: powermeter
- change empirical cutoff for hardware sensor from 256 to 333
- for software sensor increase steps from 16 to 64 for more accuracy

+ All: aux1/aux2 switches
- Wii: turn # of option items into a define NUMCHECKBOXES
- GUI: turn # of option items into a variable NUMCHECKBOXES

+ GUI: passthrough option
- added option item (like ARM)
- added status display (like NUNCHUCK)


Beware: The passthrough checkboxes settings from the GUI are currently not transferred to the arduino and the arduino Wii does not honor this option.

Code is in the google rep as always http://code.google.com/p/multiwii/sourc ... 1.8p1-plus
Enjoy, Hamburger

Post Reply