Search found 529 matches

by ziss_dm
Sun Nov 04, 2012 8:53 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, The new version of wii-esc is available 2.0.9: 1) Added possibility to adjust end-points using stick programming procedure (full throttle, power-up, wait for 2 beeps, throttle down, wait for long beep). 2) Tweaked pwm on/off procedures for complimentary pwm, to archive constant dead-time. regard...
by ziss_dm
Mon Oct 15, 2012 12:45 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

We are going nothere.. I can see atleast 2 ways to build CF: 1) Rotate Local ACC to the earth frame and run CF in earth frame. 2) Rotate GPS vel to local frame and run CF in local frame. My question was: Why method (1) was chosen? Only due similarity with AltHold? Or if I re-phrase it: What is the b...
by ziss_dm
Sun Oct 14, 2012 9:07 pm
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

I repeat my question: How to use vel in earth frame for control? Rotate it to local frame?

regards,
ziss_dm
by ziss_dm
Sun Oct 14, 2012 9:44 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

In this case, EstG - Acc is acceleration vector in body frame. Integrate it and you'll get velocity vector in body frame.
by ziss_dm
Sun Oct 14, 2012 7:58 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

X, y relative to earth or aircraft body?
by ziss_dm
Sun Oct 14, 2012 2:20 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

next is implementing formulas in routine and try, test, test, test...

Test exactly what? ;)

Y/X components can be used for position hold


How? ;) I mean how transform vel X/Y/Z in earth frame to control (roll, pitch yaw)?

regards,
ziss_dm
by ziss_dm
Sat Oct 13, 2012 11:00 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

Let's imagine, we have very precise velocity in earth frame. What are we doing next?
by ziss_dm
Sat Oct 13, 2012 12:35 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

ok, you have velocity in earth frame. What is next?
by ziss_dm
Fri Oct 12, 2012 6:43 am
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 14113

Re: Position Hold using Accelerometers global vectors

Hi,

I'm lost.. ;(

What is the point of rotating acc to earth frame? To calculate correction and rotate back?
Or I'm missing something? ;)

regards,
ziss_dm
by ziss_dm
Wed Oct 10, 2012 7:04 am
Forum: Ideas
Topic: A super acccurate MultiWii version?
Replies: 28
Views: 4994

Re: A super acccurate MultiWii version?

Hi,

Finally realized (reading other posts) that you mean by:
would have PID controllers independent of cycle time being a certain value


In my personal opinion it is better to stabilize timings, instead of adding dt everythere. ;)

regards,
ziss_dm
by ziss_dm
Wed Oct 10, 2012 1:32 am
Forum: Ideas
Topic: A super acccurate MultiWii version?
Replies: 28
Views: 4994

Re: A super acccurate MultiWii version?

Hi, Small angle approximation does a good job at speeding up the rotation of the gravity vector by the measured angular velocity, by assuming cos(small angle) = 1 and sin(small angle) = angle. It gets rid of all the cosinus terms in the rotation matrix and also takes care of the sinus terms. The res...
by ziss_dm
Mon Oct 08, 2012 11:49 pm
Forum: Ideas
Topic: A super acccurate MultiWii version?
Replies: 28
Views: 4994

Re: A super acccurate MultiWii version?

Hi Just my 10 cents, wouldn't use optimisations that degrade correctness of calculations (rotateV, atan2, integer where floats are more appropriate) what is wrong with rotateV? Small angle approximation? // Integrate rate of change of quaternion pa = q2; pb = q3; pc = q4; q1 = q1 + (-q2 * gx - q3 *...
by ziss_dm
Mon Oct 08, 2012 12:53 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,

HKBlue12A_Cs_MБssenRaus.JPG



regards,
ziss_dm
by ziss_dm
Fri Oct 05, 2012 4:43 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,

Also I like the bootloader option with the BS-ESCs as rx from the mega8 is connected to the ppm input -> no rework needed.


BTW: The bootloader in flash tool uses PD2(INT0) pin directly, so it does not require this connection any more. ;)

regards,
ziss_dm
by ziss_dm
Thu Oct 04, 2012 5:43 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, The "programer" is a rs232 to 1-wire interface consisting of 2 resistors, see the small schematic under the "Hardware" section (sry, page is in german) With FTDI and "Blue Series" style boards it is even simplier: 1 resistor. With wii_esc_flash_v04_win32 DTR goes fr...
by ziss_dm
Fri Sep 28, 2012 4:41 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi Simon,

I have tryed last "fetkiller" release on my micro, and found some anomailies in recovery algorithm.
This is the video:
http://youtu.be/CPsDLV1Xvf4

regards,
ziss_dm
by ziss_dm
Fri Sep 28, 2012 1:25 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, @ziss_dm: I can see you released 2.0.7 beta and also avrootloader! Can you please summarize changes/improvements. Yes, 2.0.7 was released, but list of changes is not really big. 1) The status was changed to the beta, as was no big problems was reported. 2) The timing advance is configurable in E...
by ziss_dm
Tue Sep 18, 2012 1:11 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

The comp_PWM firmware feels fine, normal PWM has problems in my setup with startup transist lower than pwm step 2-20 (e.g. starts with jump 2 - 10 but needs 3-4s to get rotor on ordered rotation/get feedback. Even when the motor seems to run smooth I can observe several sync losses (oszi on Miso-pi...
by ziss_dm
Thu Sep 13, 2012 2:01 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, To simplify firmware flashing and adjusting configuration, now it is possible to use this tool: m This is simple avrdude shell. It is designed to support users that have never flashed firmware to a micro-controller. Idt supposed to be fully portable and self-contained (with reasonable download s...
by ziss_dm
Tue Sep 11, 2012 1:58 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Yes, they are.
V1 was more tolerant, but still better to remove them. If you after "perfection", you can replace them with 40pf ones.

Regards,
Ziss_dm
by ziss_dm
Mon Sep 10, 2012 2:58 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi gompf-2,

Can I ask you to repeat test on: 2.0.6? ;)

regards,
ziss_dm
by ziss_dm
Sun Sep 09, 2012 12:32 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, Updated to "V 2.0.6 alpha": What is new: - The PPM configuration now stored in EEPROM. The distribution archive also contains pre-defined blocks for different variants/boards (default, extended, ultra-pwm, etc) - Fixed small power bump at the beginning and end of the range. @NikTheGree...
by ziss_dm
Sat Sep 08, 2012 11:24 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,

I used the same r323 hex files I also flashed last night, but with load I couldn´t reproduce the dip in normal PWM mode?

I think this is due larger scale of I axis. If you "zoom" or use smaller load, you will find it is still there. ;)

regards,
ziss_dm
by ziss_dm
Sat Sep 08, 2012 12:05 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi Simon, I was also looking at making an EEPROM block area for configuration (reverse, brake, timing, and maybe some other options). I wonder if we should try to make something standard / compatible? Good idea! Currently I use really simple layout: struct eeprom_layout { uint8_t __ver_magic; struct...
by ziss_dm
Wed Sep 05, 2012 1:47 pm
Forum: General discussions
Topic: Using Arduino to flash ESC
Replies: 5
Views: 1216

Re: Using Arduino to flash ESC

by ziss_dm
Wed Sep 05, 2012 6:49 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi gompf-2, Tnx for your feedback. I fly with COMP_PWM/nFet/ExtRange, works so far but can´t say much about the PIDs atm. I would say, in my setup, I had to decrease D (as it was too slow with COMP_PWM) and increase P. Also noticeble difference: It is easier to control hight in wind gusts (less jump...
by ziss_dm
Tue Sep 04, 2012 8:18 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,

I'm flying it. ;) But you would need to re-adjust PIDs

regards,
ziss_dm
by ziss_dm
Tue Sep 04, 2012 12:38 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, Not sure, in this case.. Can you reproduce it on the ground? I have noticed that you pushed EEPROM support into WII-ESC-NG! Any hints how to use it? What options are EEPROM programable (eg. COMP. PWM on or off??!). Currently: input pwm parameters and brake on/off. It is quite dangerous to put CO...
by ziss_dm
Mon Sep 03, 2012 2:23 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

I would guess, that you are using soft PWM. EEPROM writes are disabling interrupts.
by ziss_dm
Mon Sep 03, 2012 2:07 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi gompf,

1) Yes, to activate complimentary PWM you need to define #define COMP_PWM
2) Currently yes, I'm thinking to put configuration block into EEPROM, that is why it is run-time option.
3) Currently there are no reverse, I'll think how to integrate it. ;)

regards,
ziss_dm
by ziss_dm
Wed Aug 29, 2012 11:10 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

sdm_ref and thus sdm_err seem to take input only from rx.raw, so I still don't understand how any other error can be incorporated other than its own error for the purposes of modulating. The exact pulse timing is still up to the sender, so we still have to hope that it spreads smoothly and often ar...
by ziss_dm
Wed Aug 29, 2012 3:39 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, Our vacation was awesome, thanks! I didn't miss flying until we got to some awesome open field areas in Slovakia. Lucky you! I see you now have a table with a few holes for a successful ZC filter result, and the filter length does not seem to be based on timing anymore. I'm not quite seeing what...
by ziss_dm
Tue Aug 28, 2012 12:37 pm
Forum: Software development
Topic: Inflight EEPROM write problem...
Replies: 16
Views: 1359

Re: Inflight EEPROM write problem...

Hi,
Another solution could be to write only changes (the newer avr-gcc has it as part of EEPROM support):
http://code.google.com/p/mwc-ng/source/ ... am/nvram.c

1) The writes are faster
2) increases life of EEPROM

regards,
ziss_dm
by ziss_dm
Tue Aug 28, 2012 9:01 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi Simon, How is your vacations? Actually there are no divisions and even timer interrupts. There are only one interrupt source enabled, which is INT0. So, i would guess you have BEMF filter caps still in place. It does not like them any more How did you manage 4000 PWM steps if still using div8 for...
by ziss_dm
Sun Aug 26, 2012 7:34 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,

Updated to "V 2.0.4 alpha":

- Complementary PWM support for all-n-fet boards.

regards,
ziss_dm
by ziss_dm
Fri Aug 24, 2012 6:08 am
Forum: Ideas
Topic: Inflight ACC-calibration
Replies: 127
Views: 38891

Re: Inflight ACC-calibration

Hi,

Just a quick question: Why we have "In-flight calibration" instead "In-flight level trim"? The "In-flight level trim" is also easier to implement. ;)

regards,
ziss_dm
by ziss_dm
Fri Aug 24, 2012 5:49 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, @Rob: I have commited support for qynx target. Could you please check that everything is correct. Also could you please describe your problem in more detail? Is it clicking sound on high RPM? Is it without load? Currently there are no "soft" RPM limiter, like it was before. The motor w...
by ziss_dm
Mon Aug 20, 2012 1:09 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Oops.. Updated to "V 2.0.3 alpha": Safety: - PPM stream timeout (power off on a signal loss) - Arming require at least one valid PPM frame Experimental: - Automatic oscillator calibration for boards without external oscillator. It uses PPM as a reference and searches best OSCCAL value. reg...
by ziss_dm
Sat Aug 18, 2012 1:55 pm
Forum: Software development
Topic: Alternatives to Arduino IDE? using eclipse?
Replies: 28
Views: 3453

Re: Alternatives to Arduino IDE? using eclipse?

Hi,

http://www.codeblocks.org/ is quite good. Has all necesary features and fast. Debugger also works.

Regards,
Ziss_dm
by ziss_dm
Fri Aug 17, 2012 10:15 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,
I'll fix it, but it should not affect anything as only one header included per target.

Regards,
Ziss_dm
by ziss_dm
Fri Aug 17, 2012 9:09 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, Should be something like this: //************************* // RC Input * //************************* #define RCP_MIN 14 #define RCP_MAX 2200 #define RCP_START 18 #define RCP_FULL 2016 #define RCP_DEADBAND 2 MIN/MAX - valid range, everything outsude is rejected START - where to start (with min. p...
by ziss_dm
Fri Aug 17, 2012 4:17 am
Forum: Ideas
Topic: Replace PID-controller with HeadingHold controller for yaw?
Replies: 34
Views: 5857

Re: Replace PID-controller with HeadingHold controller for y

Hi Hamburger,

I think, to have good HH with normal PID (wich should be possible), you need good high resolution tail servo. The current Soft PWM implementation has too low resolution and too high jitter, to be used on tail.

rergards,
ziss_dm
by ziss_dm
Fri Aug 17, 2012 2:19 am
Forum: Software development
Topic: Gimbal Servo jitter
Replies: 45
Views: 7167

Re: Gimbal Servo jitter

Hi alek3d,

From your video, looks like acc-z is not aligned with gyro-z.
The usual symptomps are: you rotating around Z (YAW) and it also slightly tilting, than slowly returns to level.
The usual reason is than you calibrate acc way off level.

regards,
ziss_dm
by ziss_dm
Fri Aug 17, 2012 12:42 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi,

It is better to remove them. If you want "perfect" results it is good idea to replace them with 30-40pf (instead stock 5n). This reduces jitter with small motors. Works also well with 1.0 and RapidESC. ;)

regards,
ziss_dm
by ziss_dm
Thu Aug 16, 2012 1:30 pm
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi Andrej, 1) Not yet. But you can adjust receiver settings in config.h 2) I'm using WinAVR-20100110. You can take a look options in "makefile.avr". Also there Code::Blocks IDE project file with all targets/options/etc. 3) Currently I do not have any normal BS board to test. But I have cre...
by ziss_dm
Wed Aug 15, 2012 3:43 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi a432511,
Is it arming? You should have 4th beep..

regards,
ziss_dm
by ziss_dm
Wed Aug 15, 2012 3:35 am
Forum: ESCs, propellers , servos and radios
Topic: Alternative ESC firmware (reflashing)
Replies: 640
Views: 147055

Re: Alternative ESC firmware (reflashing)

Hi, Just a quick update. The version 2.0 alpha is available for brave ones This time this is complete re-write from scratch. What's new: 1) Sigma-delta modulator is used instead of PWM. m - Low noise - High resolution (current builds have 1600 steps of resolution) - It has quite big ON and OFF time,...
by ziss_dm
Wed Jun 13, 2012 11:36 am
Forum: Software development
Topic: Flag handling/coding style/committing rules and behavior
Replies: 23
Views: 1785

Re: Flag handling/coding style/committing rules and behavior

Hi
You also can switch between old and new method just by adjusting struct declaration and no need to adjust code. :)
Ziss_dm
by ziss_dm
Wed Jun 13, 2012 11:29 am
Forum: Software development
Topic: New Multiwii Serial Protocol
Replies: 409
Views: 115743

Re: New Multiwii Serial Protocol

Hi Tommie,
I think, for reducing sram usage it is better to use bit field struct members. This way you do not need enums macroses and compiler doing all hard work for you. :)
Regards,
Ziss_dm
by ziss_dm
Wed Jun 13, 2012 9:52 am
Forum: Software development
Topic: New Multiwii Serial Protocol
Replies: 409
Views: 115743

Re: New Multiwii Serial Protocol

Hi, Just to indicate that it is macro.. For example, it is quite tempting to do something like this: set_flag(FLAG_GPS_HOLD_MODE, !get_flag(GPS_HOLD_MODE) && !get_flag(FLAG_GPS_HOME_MODE)); and it would not work as expected.. If I know, that set_flag/get_flag are macroses, first thing I woul...