Search found 84 matches
- Wed Jul 08, 2015 10:44 am
- Forum: Software
- Topic: Baseflight aka multiwii port to stm32
- Replies: 1036
- Views: 2735384
Re: Baseflight aka multiwii port to stm32
Hello everyone, I don't know if it is the correct topic to post my message. I wanted to try the new implementation of "Oneshot" in Baseflight. It seems to work but i luckily (or not) noticed also something strange. I changed my looptime in the CLI to 1500 and i went to the "Motor Tes...
- Mon Nov 17, 2014 10:51 pm
- Forum: Boards
- Topic: Naze 32 altitude control problem, Throttle sensitive
- Replies: 4
- Views: 3317
Re: Naze 32 altitude control problem, Throttle sensitive
try to adjust throttle mid and throttle expo. Throttle mid should be at the hovering point of your quad
- Thu Oct 02, 2014 2:22 pm
- Forum: Software
- Topic: Baseflight aka multiwii port to stm32
- Replies: 1036
- Views: 2735384
Re: Baseflight aka multiwii port to stm32
You can't disable the mag board from the CLI.
I would suggest to look at the orientation on a naze and adjust the cli variable align_mag according to your orientation.
Also make sure that align_gyro and align_acc have the same value.
I would suggest to look at the orientation on a naze and adjust the cli variable align_mag according to your orientation.
Also make sure that align_gyro and align_acc have the same value.
- Thu Sep 18, 2014 9:56 pm
- Forum: Software development
- Topic: attitude lock mode?
- Replies: 8
- Views: 4495
Re: attitude lock mode?
this describes it pretty accurately: https://github.com/TauLabs/TauLabs/wiki ... s#axislock
probably someone (not me) could even copy/adapt the taulabs controller to use in multiwii.
probably someone (not me) could even copy/adapt the taulabs controller to use in multiwii.
- Sat Aug 02, 2014 12:06 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
first of all althold has nothing to do with other flight modes! it'll behave the same way whether in angle, horizon or arco mode. Also gps functions most likely won't work reliably, as the code isn't really finished. unfortionately the .hex isn't up to date, but you can try the one i linked in this ...
- Sun Jul 27, 2014 4:44 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
it's just about the coding style, it still does the same thing. accTimesum gets converted from microseconds into seconds in the althold function. altough you are right, that can be optimized a bit. brm what were those issues with the pt1 element you mentioned ? stability issues as it's an iir filter...
- Sat Jul 26, 2014 3:52 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
a pull req is kinda how you send your code changes to the main code repository on github.
unfortunately all the .hex i uploaded up to now are pretty useless, this one here should work. I flight tested it briefly and it seemed ok.
unfortunately all the .hex i uploaded up to now are pretty useless, this one here should work. I flight tested it briefly and it seemed ok.
- Fri Jul 25, 2014 9:08 pm
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
hmm you broke it.. deltaT is an uint32_t data type, mutiplying it with 1e-6 and then storing it as integer made the result zero and broke the pt1 element.
I allready fixed it in the code, a pull req is on the way
I allready fixed it in the code, a pull req is on the way
- Fri Jul 25, 2014 2:47 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
seems like brm found a bug thanks btw... i somehow totally missed that when implementing it. xeo-star it could be that the bug in the code caused your issues. Please try it again with this change. I have attached the compiled .hex for that change.
- Mon Jul 21, 2014 12:04 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
Sure, try decreasing the values more, it basically determines how much the accelerometer influences the readings. So if you set them to 0 the copter only relies on the baro for altitude readings. If you want, I have attached a .hex with debugging enabled. Debug1 = Acceleration, Debug2 = Velocity and...
- Fri Jul 18, 2014 6:55 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
Hi Crazyal, Thanks the reply and yep I think the acc's are calibrated. It flies really well in manual, horizon and horizon with alt hold for most of the time. Its just when I'm in horizon with mag and baro activated something triggers a full throttle signal after a bit of flying. Its also a repeata...
- Thu Jul 17, 2014 3:30 am
- Forum: Boards
- Topic: Naze32 Altitude Hold Problem - Any Ideas?
- Replies: 32
- Views: 20825
Re: Naze32 Altitude Hold Problem - Any Ideas?
please stop writing stuff without even knowing how stuff works in baseflight. if any of you knew what they are talking about you'd know that in baseflight the acc readings also influence the altitude reported. I know because i coded it you've got some nice graphs there, but i'm not sure what the exa...
- Mon Jun 30, 2014 12:19 pm
- Forum: Software development
- Topic: rcData[i] = read16()
- Replies: 2
- Views: 1792
- Sat Jun 28, 2014 11:47 pm
- Forum: Software
- Topic: Can Baseflight logic get tripped up on Acro board ?
- Replies: 2
- Views: 2265
Re: Can Baseflight logic get tripped up on Acro board ?
usually this shouldn't happen, except if you quad rotates faster than 2000dps, that's about 5.5 flips per second.
At that rate the gyroscope can't keep up anymore and the attitude estimation of the FC will be flawed.
Are you sure, that you definetly were in horizon mode and not in acro ?
At that rate the gyroscope can't keep up anymore and the attitude estimation of the FC will be flawed.
Are you sure, that you definetly were in horizon mode and not in acro ?
- Thu Jun 26, 2014 12:52 am
- Forum: Software
- Topic: Baseflight aka multiwii port to stm32
- Replies: 1036
- Views: 2735384
Re: Baseflight aka multiwii port to stm32
that's all there is so far:
https://github.com/multiwii/baseflight/ ... -Variables
power_adc_channel is the var to set in cli for the POWERMETER feature
https://github.com/multiwii/baseflight/ ... -Variables
power_adc_channel is the var to set in cli for the POWERMETER feature
- Sun Jun 15, 2014 10:37 pm
- Forum: Software development
- Topic: Barometer drift with Temp
- Replies: 35
- Views: 15627
Re: Barometer drift with Temp
here is a graph of a naze rev5. The drift could be weather dependent tough. It was pretty windy outside when i did the warmup test. IMO the easiest solution is to just wait a bit for the board to reach a thermal equilibrium or an external temperature sensor might work too. Vibration dampening on the...
- Thu May 01, 2014 2:09 pm
- Forum: Software
- Topic: Airplane RTH BaseFlight
- Replies: 143
- Views: 176497
Re: Airplane RTH BaseFlight
I took vdjcs baseflight commit and cleaned it up a bit. The formatting should be allright now, but the global vars shared between gps.c and fw_nav.c are still unclean and should be changed into a clean struct according to timecop.
If anyone wants to proceed with it, here is my change: https://github.com/luggi/baseflight/com ... 8a34e52455
If anyone wants to proceed with it, here is my change: https://github.com/luggi/baseflight/com ... 8a34e52455
- Wed Apr 23, 2014 4:49 pm
- Forum: Software development
- Topic: Altitude hold agorithm
- Replies: 34
- Views: 16052
Re: Altitude hold agorithm
As the controller controls the velocity, the stick response should definetly be better and it makes tuning easy(I never got the pids on the old althold 100% right. With the new approach it was a matter of minutes). Also it definetly behaves better when there are disturbances such as wind etc. The ra...
- Wed Apr 23, 2014 11:54 am
- Forum: Software development
- Topic: Altitude hold agorithm
- Replies: 34
- Views: 16052
Re: Altitude hold agorithm
imho the way to go is a cascaded pid controller like the one I implemented in Baseflight: https://github.com/multiwii/baseflight/ ... imu.c#L395 feel free to do your own implementation on multiwii. Every every flight control software with working althold uses a similar approach.
Here is an example of it working with default pids: https://www.youtube.com/watch?v=A0XaMP3PCFU (not my copter)
Here is an example of it working with default pids: https://www.youtube.com/watch?v=A0XaMP3PCFU (not my copter)
- Thu Feb 27, 2014 8:25 pm
- Forum: Software development
- Topic: baseflight configurator (win/linux/mac)
- Replies: 110
- Views: 85292
Re: baseflight configurator (win/linux/mac)
First of all, thanks for this great tool! I would like to ask if the Failsafe function is functional and tested? The receiver I use only lets me set failsafe for the throttle channel, so I really like to use the failsafe function of the board. I've set 'feature failsafe' and saved. But when I turn ...
- Thu Feb 06, 2014 6:11 pm
- Forum: Software
- Topic: Baseflight aka multiwii port to stm32
- Replies: 1036
- Views: 2735384
Re: Baseflight aka multiwii port to stm32
Simply because it didn't work as well as hoped. I never really got the default pids tuned right and timecop didn't like the float pid factors, because they don't blend in nicely with the 8-bit defaults. If you like playing around with beta stuff, give it a shot and we might find some values that wor...
- Mon Feb 03, 2014 10:09 pm
- Forum: Software development
- Topic: RFC: configurable height for GPS HOME...
- Replies: 22
- Views: 7566
Re: RFC: configurable height for GPS HOME...
But is it a #define? That's the innovative part. Recompile each time you want to change RTH height. Fuckin' brilliant. @timecop...you're clearly an uptight bastard... I'm not listening to you, you're a fuckin moron that thinks you're smarter than you really are. yes, it's a define...as are many, ma...
- Mon Feb 03, 2014 2:36 pm
- Forum: Boards
- Topic: Baseflight improved althold
- Replies: 40
- Views: 19175
Re: Baseflight improved althold
Hi, I test this with defaults values and it is OK, but this parameter are not prog in CLI are this just constant ? cfg.P8[PIDVEL] = 120; cfg.I8[PIDVEL] = 45; cfg.D8[PIDVEL] = 1; Vario for althold is missing ! Also (Taboo ) GPS PH + RTH is " working again " on Naze32 rev4 with "Afro32...
- Sat Feb 01, 2014 6:39 pm
- Forum: Boards
- Topic: Baseflight improved althold
- Replies: 40
- Views: 19175
Re: Baseflight improved althold
latest progress: not my video, but it's using the latest velocity based althold https://www.youtube.com/watch?v=A0XaMP3 ... ata_player
my video: http://www.youtube.com/watch?v=owIIuswYv98 sry for the bad quality
my video: http://www.youtube.com/watch?v=owIIuswYv98 sry for the bad quality
- Sat Feb 01, 2014 6:23 pm
- Forum: MultiWii tweaking - flying experience
- Topic: Control of Throttle, Yaw, Pitch, …Through out RF link instea
- Replies: 1
- Views: 1636
- Wed Jan 29, 2014 4:19 pm
- Forum: Software
- Topic: Baseflight aka multiwii port to stm32
- Replies: 1036
- Views: 2735384
Re: Baseflight aka multiwii port to stm32
Just for info...yesterday I have tested (in garage) the latest baseflight hex from git. ALT HOLD works now almost prefect. At default settings. Quad is in + - 20 cm I'm happy camper now. But I saw on git that there exist new VEL_PID's for baro, but I can't tune them in chrome configurator. Just for...
- Mon Jan 06, 2014 12:45 am
- Forum: Software development
- Topic: GPS NAV
- Replies: 964
- Views: 540832
Re: GPS NAV
hello, I found the rate of altitude change in Baro mode a little bit slow. 1.) I found a bug (?), as I tried to improve it: In IMU.cpp line 1296 the change of AltHold is computed according to the difference of rcCommand[THROTTLE] and initialThrottleHold. As I understand the code, BaroPID should be ...
- Fri Nov 08, 2013 12:51 am
- Forum: Boards
- Topic: Naze32 hardware discussion thread
- Replies: 3249
- Views: 2001063
Re: Naze32 hardware discussion thread
Just to be clear about what acc_unarmedcal does. As the named says the accZ vector is calibrated/zeroed when the copter is unarmed. I implemented this feature to have a simple compensation for accz offset errors which can be caused by a change in temperature or a wrong calibration. basically it only...
- Thu Nov 07, 2013 5:40 pm
- Forum: Boards
- Topic: Naze32 hardware discussion thread
- Replies: 3249
- Views: 2001063
Re: Naze32 hardware discussion thread
I'm the curlpit who wrote this code I understand that the code isn't easy to see trough, but from what I can tell it is working fine with some small errors which probably could be overcome by doing the integration every measurement and not in the altitude loop. You are probably right about too much ...
- Sun Oct 20, 2013 3:23 pm
- Forum: Software development
- Topic: ios+multiwii,appstore release inside, check details, twitter
- Replies: 103
- Views: 708888
Re: ios + multiwii -> !first version is ready!
cGiesen wrote:ChristianGeek wrote:This looks great...is it only for jailbroken devices or are you able to submit it to the App Store?
He told me, that he can puch it to AppStore
But we need V4 BlueTooth (about 40$)
http://www.ebay.com/itm/1xHM-10-CC2540- ... 3cd3e8942d
- Fri Oct 18, 2013 11:20 pm
- Forum: Boards
- Topic: Naze32 hardware discussion thread
- Replies: 3249
- Views: 2001063
Re: Naze32 hardware discussion thread
looks good imho.
btw baseflight allready uses a right handed coordinate system... Y points LEFT not right... check again
all that ruckus about nothing...
btw baseflight allready uses a right handed coordinate system... Y points LEFT not right... check again

- Thu Oct 17, 2013 11:01 am
- Forum: Boards
- Topic: Naze32 hardware discussion thread
- Replies: 3249
- Views: 2001063
Re: Naze32 hardware discussion thread
@brm Why do you keep criticizing my posts without even reading them? I already posted your NED link in order to stress that both NED and ENU are right-handed coordinate systems . All I wanted to do is to propose a new feature, which might prove helpful to some people (including me) and in the cours...
- Tue Oct 08, 2013 5:43 pm
- Forum: Boards
- Topic: Naze32 hardware discussion thread
- Replies: 3249
- Views: 2001063
Re: Naze32 hardware discussion thread
the sensors can be aligned via setting the rotation described here: m 0 is defalult, 1= 0deg, 2=90degCW to sensor orientation(see datasheet) whereas the baseflight default sensor orientation is x-axis -> front and y-axis -> left. It should be really easy to rotate sensors that way and the mag works
- Tue Oct 08, 2013 2:55 pm
- Forum: Software development
- Topic: Enquiries about codings: Data units and Gyro & acc
- Replies: 5
- Views: 3221
Re: Enquiries about codings: Data units and Gyro & acc
+1 I'd also like to see an eplanation to that obfuscated code 

- Fri Oct 04, 2013 11:57 pm
- Forum: Ideas
- Topic: Different IMU sketch experiment
- Replies: 29
- Views: 12618
Re: Different IMU sketch experiment
it's actually pretty easy, just do angle[ROLL] = euler_y; angle[PITCH] = euler_z; and heading = euler_x; for the heading that is if you are also using the magnetometer with the mpu6050 otherwise don't change it. just note that heading is in degrees and roll/pitch is in degrees*10 so 100 means 10.0 d...
- Mon Sep 16, 2013 10:00 pm
- Forum: Software
- Topic: Harakiri aka multiwii port to stm32
- Replies: 1502
- Views: 778414
Re: Harakiri aka multiwii port to stm32
that's what I did, makes no difference as far as I can tell.
here are my latest changes: https://github.com/luggi/baseflight/commits/mag
here are my latest changes: https://github.com/luggi/baseflight/commits/mag
- Mon Sep 16, 2013 5:49 pm
- Forum: Software
- Topic: Harakiri aka multiwii port to stm32
- Replies: 1502
- Views: 778414
Re: Harakiri aka multiwii port to stm32
@Gaijin: Thank you very much for your info about that headfree stuff, I was already scratching my head. Since I have no openpilot, I think that their hardware (you need SPI sensors) and software is way superior to what we have here - but how that translates to real life flight experience I dunno. @...
- Mon Sep 16, 2013 3:25 pm
- Forum: Software development
- Topic: Suggestion for Baro temperature in getEstimatedAltitude
- Replies: 22
- Views: 14835
Re: Suggestion for Baro temperature in getEstimatedAltitude
No, it's definitely the formula, which includes the *ground* temperature, which is used for all aviation around the world. All barometric altitudes in the aviation for a defined area are calculated based on barometric pressure and temperature of an airport. This is not correct, but since all airpla...
- Mon Sep 16, 2013 1:15 pm
- Forum: Software
- Topic: Harakiri aka multiwii port to stm32
- Replies: 1502
- Views: 778414
Re: Harakiri aka multiwii port to stm32
dunno if that's still up to date.
but that's a coding fail:
https://github.com/Crashpilot1000/Summe ... /imu.c#L71
let's read gyro values AFTER we calculate attitude *facepalm*
but that's a coding fail:
https://github.com/Crashpilot1000/Summe ... /imu.c#L71
let's read gyro values AFTER we calculate attitude *facepalm*
- Fri Sep 13, 2013 1:39 am
- Forum: Software development
- Topic: Sensors orientations
- Replies: 13
- Views: 6791
Re: Sensors orientations
just to be clear, the sensor orientation issue has never been resolved ?
- Wed Sep 11, 2013 9:34 pm
- Forum: Boards
- Topic: Baseflight improved althold
- Replies: 40
- Views: 19175
Re: Baseflight improved althold
brm wrote:the file with the code snippets has a Copyright at the very beginning.
you obviously did not copy them.
i am not a fan doing so.
here it is just a Placebo test.
no Feedback no source code - that simple.
whatever.. your post makes no sense again.
- Wed Sep 11, 2013 9:09 pm
- Forum: Software development
- Topic: MSP protocol documentation
- Replies: 32
- Views: 14881
Re: MSP protocol documentation
Oh, yes shure. Thats why it reads here m: // Chip Unique ID on F103 #define U_ID_0 (*(uint32_t*)0x1FFFF7E8) #define U_ID_1 (*(uint32_t*)0x1FFFF7EC) #define U_ID_2 (*(uint32_t*)0x1FFFF7F0) Even the comment shows Its intend: Identify the CPU and not for some softwareversion. MSP_IDENT would have been...
- Tue Sep 10, 2013 8:32 pm
- Forum: Boards
- Topic: Baseflight improved althold
- Replies: 40
- Views: 19175
Re: Baseflight improved althold
for your new code ? with current baseflight everything is allready documented in mw.h you may check the sign of the baro velocity. to me you should reverse the sign. It is correct as in positive vel means going up and neg vel means going down. I didn't change that part coming from multiwii. explain...
- Sun Sep 08, 2013 8:05 pm
- Forum: Ideas
- Topic: Voltage measuring
- Replies: 29
- Views: 13902
Re: Voltage measuring
imho having R1,R2 and vref in the code isn't that easy to implement efficiently and the so called developers of multiwii probably won't like it.
yep SMOOTH does that, as the name suggests
yep SMOOTH does that, as the name suggests
- Sun Sep 08, 2013 7:47 pm
- Forum: Ideas
- Topic: Voltage measuring
- Replies: 29
- Views: 13902
Re: Voltage measuring
Thanks, but I don't see the main change to conf.vbatscale = (R1+R2)/R1 * vref * 10 and the definitions... Sorry, but I'm not expert in programming, otherwise I made it already myself BTW what is for vsum and VBAT_SMOOTH? + in the patch file means line added - means line removed.. so conf.vbatscale ...
- Fri Sep 06, 2013 9:42 pm
- Forum: Boards
- Topic: Baseflight improved althold
- Replies: 40
- Views: 19175
Re: Baseflight improved althold
good questions basically there are 2 complementary filters which mix baro velocity with integrated acc velocity and double integrated acc altitude with baro altitude. The tuning parameters are baro_cf_alt and baro_cf_vel those factors go from 0 to 1.0f. Setting those factors to 0.9 means 90% acc rea...
- Fri Sep 06, 2013 5:08 pm
- Forum: Boards
- Topic: Baseflight improved althold
- Replies: 40
- Views: 19175
Re: Baseflight improved althold
for your new code ?
with current baseflight everything is allready documented in mw.h
with current baseflight everything is allready documented in mw.h
- Fri Sep 06, 2013 5:04 pm
- Forum: Boards
- Topic: Naze32 hardware discussion thread
- Replies: 3249
- Views: 2001063
Re: When will NAZE32 / FPU
JUERGEN_ wrote:.
and![]()
When will NAZE32/FPU![]()
with STM32F303CC
the I2C driver, timer stuff has to be rewritten etc, so when there is code that supports the new mcu

but it doesn't look like anyone including me is motivated to code that stuff.
- Thu Sep 05, 2013 3:54 pm
- Forum: Ideas
- Topic: Voltage measuring
- Replies: 29
- Views: 13902
Re: Voltage measuring
that was just making a point here is the real one, untested tough. Index: MultiWii.cpp =================================================================== --- MultiWii.cpp (revision 1563) +++ MultiWii.cpp (working copy) @@ -410,23 +410,15 @@ case 1: { static uint8_t ind = 0; - static uint16_t vvec[V...
- Thu Sep 05, 2013 3:25 pm
- Forum: Ideas
- Topic: Voltage measuring
- Replies: 29
- Views: 13902