Search found 203 matches

by Mis
Sun Sep 30, 2012 11:14 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20634

Re: Three independent, stick selectable settings in EEPROM

One more question about angleTrims. This is not depended from copter setup (e.g. additional weight at front - with camera) ?. If yes, this should be moved to global.conf. I do not want to hunt for it with a million of #ifdef options.
by Mis
Sun Sep 30, 2012 10:57 pm
Forum: Software development
Topic: Possible Bug in GPS?
Replies: 18
Views: 5004

Re: Possible Bug in GPS?

PatrikE: Look at declaration of params for get_D: int32_t get_D(int32_t input, float* dt, struct PID_* pid, struct PID_PARAM_* pid_param) pid is declarated as poiner to structure witch PID_ type. Then in GPS_calc_poshold() you see get_D call: d = get_D(error[axis], &dTnav, &poshold_ratePID[ ...
by Mis
Sun Sep 30, 2012 9:16 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20634

Re: Three independent, stick selectable settings in EEPROM

I not add the angleTrims because I'm not sure about role of angleTrim, but OK, i can move it to global_config. Some more variables should be global ? I think about battery alarm levels, but someone need two configurations for flying with 3S or 4S battery, and in this case different alarms should be ...
by Mis
Sat Sep 29, 2012 10:06 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20634

Re: Three independent, stick selectable settings in EEPROM

jevermeister wrote:Wouldnt it be good to add a buzzer alarm for not calibrated acc?

Maybe this is not a buzzer :D , but for now you see constantly blinking onboard LED, and can't arm the copter. Until you calibrate ACC.
by Mis
Sat Sep 29, 2012 5:46 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20634

Re: Three independent, stick selectable settings in EEPROM

Hamburger, you can't switch profile (i like this name ) during flight. Switching is only possible if disarmed, even from PC. I'm not use sequential change via single stick combination because we not have sure feedback about current setting number. If you enable RCOPTIONSBEEP (i like this option), yo...
by Mis
Sat Sep 29, 2012 1:47 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20634

Re: Three independent, stick selectable settings in EEPROM

The name... hmmm maybe "Profiles" ? In GUI we need three buttons for profile switching. Click on button should send MSP_SELECT_SETTING command with 1 byte of parameter called profile number (0..2 for profile 1..3). Then gui should perform "READ" click. Second change is displaying...
by Mis
Fri Sep 28, 2012 10:43 pm
Forum: Software development
Topic: [PATCH] Verify EEPROM integrity
Replies: 51
Views: 13534

Re: [PATCH] Verify EEPROM integrity

Oh yes Tommie, eeprom checksum is great, unusual feature, and you first invented it.
From my side - EOT.
by Mis
Fri Sep 28, 2012 10:30 pm
Forum: Software development
Topic: In which situation is recalibration (ACC, MAG) necessary?
Replies: 5
Views: 2011

Re: In which situation is recalibration (ACC, MAG) necessary

From new dev version with eeprom checksum, the answer is pretty easy.
If configuration is resetted to defaults after uploading new code, you must recalibrate ACC and MAG.
by Mis
Fri Sep 28, 2012 10:22 pm
Forum: Software development
Topic: DEV r1129 serial GPS MTK3329 bug
Replies: 4
Views: 2433

Re: DEV r1129 serial GPS MTK3329 bug

Faster way is add one delay after sending "baudrate switch" command at all speeds. Like this: ... ... while(!SerialTXfree(GPS_SERIAL)) delay(10); } // at this point we have GPS working at selected (via #define GPS_BAUD) baudrate SerialOpen(GPS_SERIAL,GPS_BAUD); delay(200); SerialGpsPrint(P...
by Mis
Fri Sep 28, 2012 9:50 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20634

Three independent, stick selectable settings in EEPROM

Hi ! Is done in r1147 For change setting number via sticks (at disarmed state): SET1 - ROLL left + YAW left + THROTTLE min. - one confirmation beep and led blink SET2 - PITCH up + YAW left + THROTTLE min. - two confirmation beep and led blink SET3 - ROLL right + YAW left + THROTTLE min. - three conf...
by Mis
Fri Sep 28, 2012 12:01 am
Forum: Software development
Topic: [PATCH] Verify EEPROM integrity
Replies: 51
Views: 13534

Re: [PATCH] Verify EEPROM integrity

Ok, I'm sorry, I see this thread name, and don't even read it, but think "this is simple and not stupid" Afrer next 15 minutes i have my simple version ready, and tested. I do not care for entries in "credits" file. If you want, I add info about source of checksum idea in code. B...
by Mis
Thu Sep 27, 2012 11:01 pm
Forum: Software development
Topic: [PATCH] Verify EEPROM integrity
Replies: 51
Views: 13534

Re: [PATCH] Verify EEPROM integrity

Where are you see XOR'ing of the checksum byte ? I use simple adding modulo 256.
I can use full CRC8 checking available in GCC ibutton library, good implementation, but the size... For Mega2560 - no problem, for Mega328 hmmm.
by Mis
Thu Sep 27, 2012 10:39 pm
Forum: Software development
Topic: [PATCH] Verify EEPROM integrity
Replies: 51
Views: 13534

Re: [PATCH] Verify EEPROM integrity

BUT removing a boxitem move the checksum byte to other position. No way for good checksum in this way.
Tomme, as far i know, your patch check only config data size, and don't checking data integrity.
by Mis
Thu Sep 27, 2012 9:19 pm
Forum: Software development
Topic: Failsafe isn't working
Replies: 4
Views: 1420

Re: Failsafe isn't working

I see this bug. Please wait, i must check my idea for fixing it.
Idea is simple. Instead increase GoodPulses, OR'ing it with (1<<rc_value_pos). At the end, check for all needed bits is set, then clear failsafecnr and GoodPulses.
by Mis
Wed Sep 26, 2012 11:58 am
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 905765

Re: GPS integration

GPS functions work only in level mode.
by Mis
Mon Sep 24, 2012 10:23 pm
Forum: Software development
Topic: Missing ACC and other functions in MWC
Replies: 7
Views: 2460

Re: Missing ACC and other functions in MWC

The ACC mode is replaced by ANGLE (=ACC) mode and new HORIZON mode (=little mix of acro and ACC mode).
by Mis
Mon Sep 24, 2012 10:03 pm
Forum: Ideas
Topic: small mod to servo tilt function
Replies: 5
Views: 3842

Re: small mod to servo tilt function

I have working better solution.
If all boxes (in GUI) on any AUX channel is unchecked then this AUX channel is used for gimbal PITCH control.
If any second AUX channel is free too, is used for gimbal ROLL control.
That's ALL. Full automatic :-)
by Mis
Sun Sep 23, 2012 12:57 pm
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11710

Re: RFC: move default pin for FAILSAFE from throttle to roll

My private version of multiwii code have better failsafe - return to home at designed altitude then land automatically 8-)
But this option is very unfavorably accepted by someone, and I don't include this in the official version.
by Mis
Sun Sep 23, 2012 12:07 am
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11710

Re: RFC: move default pin for FAILSAFE from throttle to roll

I find one bug in failsafe detection on pulses<985us. On pulse time goes bellow 985us (before guard time initiate failsafe routine) the throttle value (or any other trigger channel) is updated and used as control value. In this situation (based on throttle example) 980us is first interpretted as min...
by Mis
Tue Sep 18, 2012 5:09 pm
Forum: Software development
Topic: Code Refactoring: Buzzer/LED goes alarm
Replies: 36
Views: 10000

Re: Code Refactoring: Buzzer/LED goes alarm

If anyone use ledflasher output for control led strips, with this we have visual feedback of any alarm indicated by buzzer, but if buzzer is silent, the ledflasher work normally. And it breaks compilation if no buzzer is attached. No. This change was introduced in r1056, and no bug until r1068. Som...
by Mis
Tue Sep 18, 2012 4:57 pm
Forum: Software development
Topic: [PATCH] Make LED_FLASHER compilable without BUZZER
Replies: 1
Views: 971

Re: [PATCH] Make LED_FLASHER compilable without BUZZER

This bug was introduced during moving buzzer code from Buzzer.ino to Alarms.ino. With oryginal Buzzer.ino does not exist.
by Mis
Sun Sep 16, 2012 9:54 pm
Forum: Software development
Topic: bug in 2.1 shared r1119 MultiWii.ino on passthru and infligh
Replies: 3
Views: 1231

Re: bug in 2.1 shared r1119 MultiWii.ino on passthru and inf

Are you sure ?
From r1119 version - enum box ...

Code: Select all

  #if defined(FIXEDWING) || defined(HELICOPTER) || defined(INFLIGHT_ACC_CALIBRATION)
    BOXPASSTHRU,
  #endif
by Mis
Sun Sep 16, 2012 8:34 pm
Forum: Software development
Topic: Code Refactoring: Buzzer/LED goes alarm
Replies: 36
Views: 10000

Re: Code Refactoring: Buzzer/LED goes alarm

What does this change do? void auto_switch_led_flasher() { uint8_t seg = (currentTime/1000/125)%8; if (led_flasher_sequence & 1<<seg) { switch_led_flasher(!isBuzzerON()); } else { switch_led_flasher(isBuzzerON()); } } So the flasher pattern is inverted if the buzzer is on? ? If anyone use ledfl...
by Mis
Sun Sep 16, 2012 7:40 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 905765

Re: GPS integration

LuFa wrote:is this error also in the i2c GPS Code ?

No, only with serial UBLOX GPS connected directly to MWC.
by Mis
Sun Sep 16, 2012 6:38 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 905765

Re: GPS integration

Ublox GPS protocol dosen't work anymore on MWC21 R1100 with some MPU boards. Tested on two different Crius AIO Mega boards with three different ublox GPS receivers and serial ppm. The yellow led is blinking, the GUI shows GPS activity BUT THE SAT NUMBER STAYS 220, SPEED SWINGS AND BAD COORDINATES A...
by Mis
Wed Sep 12, 2012 11:07 pm
Forum: Software development
Topic: r1104 breaks automatic compile test COPTERTEST 3
Replies: 2
Views: 971

Re: r1104 breaks automatic compile test COPTERTEST 3

Thank's !
Now fixed in r1110.
Echhh, tons of #ifdefined... statements. It's crazy.
by Mis
Sun Sep 09, 2012 12:17 pm
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11710

Re: RFC: move default pin for FAILSAFE from throttle to roll

LRS systems like Thomas / RangeLink / DragonLink and others long range systems can generate 10 or even 12CH PPM. In this case the frame rate time is extended by about 2.2ms for any additional channel above 8. The 12CH PPM have about 28-30ms frame rate. I have RC system with 12CH PPM, and test MultiW...
by Mis
Sat Sep 08, 2012 5:37 pm
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11710

Re: RFC: move default pin for FAILSAFE from throttle to roll

OK, for compatibility with promini and mega boards my code need some little changes. Now is tested with promini (on Mega328p) and with Mega2560. Code is commited to shared repository. With standard receivers, pulse absence or pulses below 985us on one of THROTTLE, YAW, PITCH or ROLL channel will tri...
by Mis
Thu Sep 06, 2012 11:09 pm
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11710

Re: RFC: move default pin for FAILSAFE from throttle to roll

Hamburger: I have better idea. Try this code. Shoud work, but not tested. In "RX_PIN_CHECK" macro: At first channel the "GoodPulses" variable is cleared, then if pulse is valid - is incremented. With three next channels is incremented too if pulse is valid. Now at the end of inte...
by Mis
Thu Sep 06, 2012 10:31 am
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11710

Re: RFC: move default pin for FAILSAFE from throttle to roll

Why not. In this case really no failsafe pin configuration is needed. But it's not easy to implement in current way.
by Mis
Wed Sep 05, 2012 5:56 pm
Forum: Software development
Topic: Add RTH as Fail safe
Replies: 10
Views: 5904

Re: Add RTH as Fail safe

My failsafe code is designed for multicopters only, not for plane / flying wings.
Hamburger:
Yes, this is optional function and can be enabled/disabled via #define. If disabled, the oryginal failsafe code is used.
Some video from FIRST test of first failsave implementation: http://www.youtube.com/watch?v=ElgDAdtcP6M. Now work better.
by Mis
Wed Sep 05, 2012 12:06 pm
Forum: Software development
Topic: Add RTH as Fail safe
Replies: 10
Views: 5904

Re: Add RTH as Fail safe

Inteligent failsafe code exist, and really work well, but is not official because some people insist that it is dangerous and someone will hit the copter with the engine turned off instead of waiting until he returned home at designed height from start point and land (like DJI Naza style FailSafe). ...
by Mis
Wed Sep 05, 2012 11:52 am
Forum: Software development
Topic: Use serial port 3 in MEGA too...
Replies: 29
Views: 10965

Re: Use serial port 3 in MEGA too...

This is available from some days at code.google :
http://code.google.com/p/multiwii/sourc ... Wii_shared
by Mis
Wed Sep 05, 2012 1:01 am
Forum: Software development
Topic: Imitate XFY-1 Vertical takeoff and landing aircraft
Replies: 24
Views: 16580

Re: Imitate XFY-1 Vertical takeoff and landing aircraft

Does anyone know how to do a 90deg rotation in IMU ? #define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = Y; accADC[PITCH] = X; accADC[YAW] = Z;} #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = Y; gyroADC[PITCH] = X; gyroADC[YAW] = Z;} #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = Y; magADC[PITCH...
by Mis
Sun Sep 02, 2012 2:07 am
Forum: Software development
Topic: CAMTRIG-Problem with MultiWii 2.1
Replies: 6
Views: 2561

Re: CAMTRIG-Problem with MultiWii 2.1

Camtrig servo not work if you enable MEGA_HW_GIMBAL on mega boards with 2.1 MWC firmware.
Don't use MEGA_HW_GIMBAL option or wait for update (now i have 5 servos working with HW PWM's on Mega boards in copter configuration), but I need some time to test it.
by Mis
Wed Aug 29, 2012 12:05 am
Forum: Software development
Topic: Inflight EEPROM write problem...
Replies: 16
Views: 4943

Re: Inflight EEPROM write problem...

About timing of eeprom.writes: From arduino site An EEPROM write takes 3.3 ms to complete Yes, but this time is for writing single byte. For whole structure, multiply it by bytes count. Faster and eeprom life friendly version of "writeParams" function (only few bytes longer): void writePa...
by Mis
Tue Aug 28, 2012 11:05 pm
Forum: Software development
Topic: baro: alt measurement only & no althold - define saves memor
Replies: 4
Views: 1569

Re: baro: alt measurement only & no althold - define saves m

IMHO in this case, better method is disable baro sensor - you get lot of free code space. And now... one more #define in config.h cause confuse most beginers.
by Mis
Sun Aug 26, 2012 6:10 pm
Forum: Software development
Topic: WinGUI public beta
Replies: 132
Views: 72401

Re: WinGUI public beta

This is due to Alex changes in r1057 : - only the needed BOX ITEMS are used and sent to the GUI
by Mis
Sat Aug 25, 2012 8:30 pm
Forum: Software development
Topic: more flexible pin assignment for some AIO boards possible?
Replies: 20
Views: 6925

Re: more flexible pin assignment for some AIO boards possibl

For predefined boards this can easly be done in "defs.h". Bellow is example for Crius AIO PRO #if defined(CRIUS_AIO_PRO_V1) #define MPU6050 #define HMC5883 #define MS561101BA #define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = -X; accADC[PITCH] = -Y; accADC[YAW] = Z;} #define GYRO_ORIENTATION...
by Mis
Wed Aug 15, 2012 12:53 pm
Forum: Ideas
Topic: Failsafe and InflightAccCalibration
Replies: 16
Views: 6022

Re: Failsafe and InflightAccCalibration

Some piece of code for inflight hover point setting. Switch baro switch forth and back four times within 5 seconds then land. Need to add some global variables and conf.HoverGas in conf structure. if(f.ARMED) { // Hover THROTTLE value memorisation routine if(HoldSwitchTim) { // time counter for savi...
by Mis
Wed Aug 15, 2012 11:50 am
Forum: Software development
Topic: Autodetection number of Cells for Battery alarms
Replies: 7
Views: 2393

Re: Autodetection number of Cells for Battery alarms

dongs wrote:What if you discharge enough that your logic begins to think a 3S battery is now 2S..

No way ! Look at this piece of code: if(c > cells) cells = c; The cells count can't decrease during flight.
by Mis
Wed Aug 15, 2012 11:23 am
Forum: Software development
Topic: Autodetection number of Cells for Battery alarms
Replies: 7
Views: 2393

Re: Autodetection number of Cells for Battery alarms

dongs wrote:Why would you recalculate cell count each loop time?

Not in each loop, but %VBATFREQ - about 18ms.
The calculation is not complicated, and not waste much cpu time, and this way consume less flash memory.
by Mis
Tue Aug 14, 2012 11:34 pm
Forum: Software development
Topic: Autodetection number of Cells for Battery alarms
Replies: 7
Views: 2393

Re: Autodetection number of Cells for Battery alarms

No problem. In annexCode function replace vbat code to this piece of code: #if defined(VBAT) static uint8_t vbatTimer = 0; static uint8_t ind = 0; uint16_t vbatRaw = 0; static uint16_t vbatRawArray[8]; if (! (++vbatTimer % VBATFREQ)) { vbatRawArray[(ind++)%8] = analogRead(V_BATPIN); for (uint8_t i=0...
by Mis
Tue Aug 14, 2012 9:10 pm
Forum: Software development
Topic: Autodetection number of Cells for Battery alarms
Replies: 7
Views: 2393

Autodetection number of Cells for Battery alarms

Someone want this feature ? I have routine for autodetect numbers of lipo cells. The alarms values (VBATLEVEL1_3S and so) should be changed to Volt/cell, multiwii counts number of cells (using maximum detected voltage after power-up), and use VBATLEVEL*cells calculation for low battery alarms. BTW f...
by Mis
Tue Aug 14, 2012 8:43 pm
Forum: Software development
Topic: Use serial port 3 in MEGA too...
Replies: 29
Views: 10965

Re: Use serial port 3 in MEGA too...

nhadrian: What OSD you try connect. With Misio-OSD i can use both ports at the same time. Requests from GUI and OSD are parsed separatly by MWC and no problems from this side. The output from MWC is sended by both SERIAL0 and SERIAL3 at the same time. OSD parse the output commands and use it or igno...
by Mis
Fri Aug 10, 2012 1:22 pm
Forum: Ideas
Topic: Failsafe and InflightAccCalibration
Replies: 16
Views: 6022

Re: Failsafe and InflightAccCalibration

IMHO The coming home is less dangerous than crash or fast landing at the site of lost control.
If the copter climb up to 20-30 meters and start return to home, you have a great chance to quickly restore RC control and manual return to home then land.
by Mis
Fri Aug 10, 2012 1:23 am
Forum: Ideas
Topic: Failsafe and InflightAccCalibration
Replies: 16
Views: 6022

Re: Failsafe and InflightAccCalibration

For some time I'm working on intelligent failsafe with return to home. First, stabilization is activated at the level of hovering, then after checking the battery status the copter lands with baro (if battery is low), or perched on a pre-defined height (eg 20m up from takeoff height), then executes ...
by Mis
Thu Jul 26, 2012 2:09 am
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 905765

Re: GPS integration

Why do you want to connect GPS via I2C to AIO Pro controller :?: This board have FOUR serial ports (UART's), and we can connect directly an GPS module to serial 2 port on AIO board.
by Mis
Sun Jun 24, 2012 8:27 pm
Forum: Software development
Topic: Required NEMA Date for GPS Use
Replies: 8
Views: 3084

Re: Required NEMA Date for GPS Use

Yes, only GGA and RMC are used.
by Mis
Thu Jun 21, 2012 9:38 pm
Forum: Software development
Topic: MSP_SET_RAW_GPS does not generate a response
Replies: 5
Views: 2534

Re: MSP_SET_RAW_GPS does not generate a response

The "break;" instruction after GPS_update |= 2; is obviously wrong. Please remove this.