hello, thank you for the hard work done on the matrixpilot, am using udb4 for my quadcopter my isue is that I downloaded the MatrixPilotQuad_markwhitehorn in a seperate directory of matrix pilot 3.0 and when I compile i have a lot of errors I dont know what is the mistake am doing so could u please tell me how to use the code or how to set it up? ? thank you.
Please provide more detailed info about your errors to understand deeply your environment (which version IDE do you use) or setup (Win, Mac etc.) and others. I really don't want to hijack your post, but I've also experienced some compilation errors with MP_Quad trunk version, maybe yours are identical?
> Iam using Wndows 7 , and Mplab v8.86 , I have attached the errors as a > picture
one important thing is that am using MatrixPilotQuad_MarkWhitehorn code without the matrixpilot 3.0 I mean I didnt mix the files together and I think it is the right way please if am wrong inform me thank you.
These errors hint that there is something wrong with file libUDB_internal.h. Is it possible that you got conflicts on an SVN update? Conflicts result in lines like:
<<<<<<< .mine
inserted in your source files. A fresh checkout of the project shouldn't have this problem, though.
On Thursday, October 4, 2012 1:21:09 PM UTC-6, eng.kwili wrote:
> Iam using Wndows 7 , and Mplab v8.86 , I have attached the errors as a >> picture
> one important thing is that am using MatrixPilotQuad_MarkWhitehorn code > without the matrixpilot 3.0 I mean I didnt mix the files together and I > think it is the right way please if am wrong inform me thank you.
> Hello, > I couldnt understand what you said exactly but I think that everything in > the source code is fine maybe if try to download the MatrixPilotQuad it > will work ?? is it possible .... It my be file conflict but how can I be > sure ? I downloaded every thing in order
The first error message you show for libUDB_internal.h is complaining about a "'<' token". Line 1 of this file is supposed to be: // This file is part of MatrixPilot. Note that there is no '<' token on this line, so there appears to be something wrong with your working copy.
Perhaps you should try building project MPQpid400.X using MPLAB-X as that is how I am doing it. MPLAB-X is the latest version of MicroChip's IDE and is now available for free download. The C30 compiler still works, so you should be able to use the compiler you already have with MPLAB8.
On Friday, October 5, 2012 10:55:52 AM UTC-6, eng.kwili wrote:
> Hello, >> I couldnt understand what you said exactly but I think that everything in >> the source code is fine maybe if try to download the MatrixPilotQuad it >> will work ?? is it possible .... It my be file conflict but how can I be >> sure ? I downloaded every thing in order
Hi, I also bought UDB4 board. I compile "MatrixPilot_3_2_1" (from zip folder) and the compiling is successful. I want to build Quad copter and try to use code from MatrixPillotQuad_MarkWhitehorn<http://code.google.com/p/gentlenav/source/browse/?r=1619#>. My question is "Do I have to replace all the files from MatrixPillotQuad_MarkWhitehorn<http://code.google.com/p/gentlenav/source/browse/?r=1619#> to MatrixPilot_3_2_1 in order to build for Quadcopter" ? If not, how do I build and compile the code for Quad copter.
I've tried to build your quad code in MPLab X IDE but I got several errors (attached textfile with the full build log - 17,18 and 26, 28,29 lines with errors) during the process. I tried to follow your previous suggestions but I got always the same.
I've tried to do what you previously suggested me without success, I can't compile anything in MplabX (I've tried also to compile trunk).
What I did:
- A fresh install of Mplab X and xc16
*Product Version:* MPLAB X IDE v1.30
*Java:* 1.6.0_32; Java HotSpot(TM) Client VM 20.7-b02
*System:* Windows XP version 5.1 running on x86; Cp1252; it_IT (mplab)
*Userdir:* C:\Documents and Settings\Prof\Application Data\.mplab_ide\dev\v1.30 - A checkout using tortoise svn of your branch
- renamed option_base.h in options.h and commented the #error lines
- checked that the include paths are right in the project properties
On Saturday, 6 October 2012 20:17:13 UTC+2, markw wrote:
> The first error message you show for libUDB_internal.h is complaining > about a "'<' token".
> Line 1 of this file is supposed to be:
> // This file is part of MatrixPilot.
> Note that there is no '<' token on this line, so there appears to be > something wrong with your working copy.
> Perhaps you should try building project MPQpid400.X using MPLAB-X as that > is how I am doing it.
> MPLAB-X is the latest version of MicroChip's IDE and is now available for > free download. The C30 compiler still works, so you should be able to use > the compiler you already have with MPLAB8.
> best regards,
> --Mark
> On Friday, October 5, 2012 10:55:52 AM UTC-6, eng.kwili wrote:
>> Hello, >>> I couldnt understand what you said exactly but I think that everything >>> in the source code is fine maybe if try to download the MatrixPilotQuad it >>> will work ?? is it possible .... It my be file conflict but how can I be >>> sure ? I downloaded every thing in order
Sorry you're having trouble building MatrixPilotQuad.
It looks like your checked-out projects can't locate main.c, and I think is is due to out-of-date project files and a few recent changes I've made while working on other projects.
Try updating to r1747 and let me know if there are any remaining problems.
On Wednesday, October 10, 2012 2:05:36 AM UTC-6, Giulio Berti wrote:
> Hi Mark,
> I've tried to do what you previously suggested me without success, I can't > compile anything in MplabX (I've tried also to compile trunk).
> What I did:
> - A fresh install of Mplab X and xc16
> *Product Version:* MPLAB X IDE v1.30
> *Java:* 1.6.0_32; Java HotSpot(TM) Client VM 20.7-b02
> *System:* Windows XP version 5.1 running on x86; Cp1252; it_IT (mplab)
> *Userdir:* C:\Documents and Settings\Prof\Application > Data\.mplab_ide\dev\v1.30 > - A checkout using tortoise svn of your branch
> - renamed option_base.h in options.h and commented the #error lines
> - checked that the include paths are right in the project properties
> Where I'm doing wrong?
> Could you share a zip file with a working copy? (just to understand if the > problem is your source code or our mplabX.)
> Best regards,
> Giulio
> PS: complete build log in the attached file.
> On Saturday, 6 October 2012 20:17:13 UTC+2, markw wrote:
>> The first error message you show for libUDB_internal.h is complaining >> about a "'<' token".
>> Line 1 of this file is supposed to be:
>> // This file is part of MatrixPilot.
>> Note that there is no '<' token on this line, so there appears to be >> something wrong with your working copy.
>> Perhaps you should try building project MPQpid400.X using MPLAB-X as that >> is how I am doing it.
>> MPLAB-X is the latest version of MicroChip's IDE and is now available for >> free download. The C30 compiler still works, so you should be able to use >> the compiler you already have with MPLAB8.
>> best regards,
>> --Mark
>> On Friday, October 5, 2012 10:55:52 AM UTC-6, eng.kwili wrote:
>>> Hello, >>>> I couldnt understand what you said exactly but I think that everything >>>> in the source code is fine maybe if try to download the MatrixPilotQuad it >>>> will work ?? is it possible .... It my be file conflict but how can I be >>>> sure ? I downloaded every thing in order
I successfully compiled the trunk code today with MPLab IDE 8 (aka legacy) - sorry, I'm really disappointed about MPLab IDE X.
My workflow:
1. I copied the *main.c* and *options.h* file of the MPQpid400 X project folder to the main MatrixPilotQuad folder.
2. I edited the .c file: Original 23th row (*#include "../../libDCM/libDCM.h"*) was changed to *#include "../libDCM/libDCM.h".*
3. The project was loaded into IDE 8 and I changed the parameters to my requirements in options.h.
4. Compiled the project without problem and burned on my UDB4 board.
This is a proper workflow and use of your code or I missed something important and I'm a lucky guy?
I'm glad you were able to get a clean compile, and I hope the latest version of code works well for you, but keep in mind that this code is a work in progress and you probably will find bugs that I'm not yet aware of.
Your changes are OK if MPQpid400 is the only project you are working with, but any future SVN updates to main.c will still show up in the project directory.
I am now maintaining different versions of main.c and options.h (and possibly other files also) for multiple subprojects, so each project has its own version of these files located in each project subdirectory. Instead of moving files and changing the include statements, you can just add the files at their new locations to the project. I try to keep the MPLAB-X project files up to date, but the MPLAB8 project files (if they even exist) probably won't reflect the new file locations.
On Thursday, October 11, 2012 11:16:26 AM UTC-6, János Mészáros wrote:
> Hi Mark,
> I successfully compiled the trunk code today with MPLab IDE 8 (aka legacy) > - sorry, I'm really disappointed about MPLab IDE X.
> My workflow:
> 1. I copied the *main.c* and *options.h* file of the MPQpid400 X project > folder to the main MatrixPilotQuad folder.
> 2. I edited the .c file: Original 23th row (*#include > "../../libDCM/libDCM.h"*) was changed to *#include "../libDCM/libDCM.h".*
> 3. The project was loaded into IDE 8 and I changed the parameters to my > requirements in options.h.
> 4. Compiled the project without problem and burned on my UDB4 board.
> This is a proper workflow and use of your code or I missed something > important and I'm a lucky guy?
I successfully compiled your last working copy MPQ6000dual, but MPQpid400 doesn't compile yet, but the error is changed:
CLEAN SUCCESSFUL (total time: 312ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
make -f nbproject/Makefile-default.mk dist/default/production/MPQpid400.X.production.hex
make[2]: Entering directory `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
In file included from ../../libDCM/libDCM.h:26,
from ../../libDCM/libDCM_internal.h:22,
from ../../libDCM/deadReckoning.c:22:
../../libDCM/../libUDB/libUDB.h:26:21: error: options.h: No such file or directory
In file included from ../../libDCM/../libUDB/libUDB_defines.h:109,
from ../../libDCM/../libUDB/libUDB.h:28,
from ../../libDCM/libDCM.h:26,
from ../../libDCM/libDCM_internal.h:22,
from ../../libDCM/deadReckoning.c:22:
../../libDCM/../libUDB/boardRotation_defines.h:52:18: error: missing binary operator before token "1"
../../libDCM/../libUDB/boardRotation_defines.h:57:19: error: missing binary operator before token "1"
../../libDCM/../libUDB/boardRotation_defines.h:76:18: error: missing binary operator before token "1"
../../libDCM/../libUDB/boardRotation_defines.h:81:19: error: missing binary operator before token "1"
../../libDCM/../libUDB/boardRotation_defines.h:100:18: error: missing binary operator before token "1"
../../libDCM/../libUDB/boardRotation_defines.h:105:19: error: missing binary operator before token "1"
"C:\Program Files\Microchip\mplabc30\v3.30c\bin\pic30-gcc.exe" -g -omf=elf -x c -c -mcpu=33FJ256GP710A -Wall -I/home/markw/MPLABXProjects/gentlenav/branches/MatrixPillotQuad_MarkWhiteh orn/MatrixPilotQuad/MPQpid400.X -mlarge-code -MMD -MF build/default/production/_ext/1077471063/deadReckoning.o.d -o build/default/production/_ext/1077471063/deadReckoning.o ../../libDCM/deadReckoning.c -legacy-libc --save-temps -D_ADDED_C_LIB make[2]: Leaving directory `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
make[2]: *** [build/default/production/_ext/1077471063/deadReckoning.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[1]: Leaving directory `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
BUILD FAILED (exit value 2, total time: 1s)
The compiler can't find options.h, although is in the project files (on the left in the IDE).
I have a options.h in gentlenav\branches\MatrixPillotQuad_MarkWhitehorn\MatrixPilotQuad and another one in gentlenav\branches\MatrixPillotQuad_MarkWhitehorn\MatrixPilotQuad\MPQpid400 .X.
Where should I put it?
Could you confirm me that MPQpid400 is compilable for you?
On Thursday, 11 October 2012 21:16:55 UTC+2, markw wrote:
> Hi János,
> I'm glad you were able to get a clean compile, and I hope the latest > version of code works well for you, but keep in mind that this code is a > work in progress and you probably will find bugs that I'm not yet aware of.
> Your changes are OK if MPQpid400 is the only project you are working with, > but any future SVN updates to main.c will still show up in the project > directory.
> I am now maintaining different versions of main.c and options.h (and > possibly other files also) for multiple subprojects, so each project has > its own version of these files located in each project subdirectory. > Instead of moving files and changing the include statements, you can just > add the files at their new locations to the project. I try to keep the > MPLAB-X project files up to date, but the MPLAB8 project files (if they > even exist) probably won't reflect the new file locations.
> regards,
> --Mark
> On Thursday, October 11, 2012 11:16:26 AM UTC-6, János Mészáros wrote:
>> Hi Mark,
>> I successfully compiled the trunk code today with MPLab IDE 8 (aka >> legacy) - sorry, I'm really disappointed about MPLab IDE X.
>> My workflow:
>> 1. I copied the *main.c* and *options.h* file of the MPQpid400 X project >> folder to the main MatrixPilotQuad folder.
>> 2. I edited the .c file: Original 23th row (*#include >> "../../libDCM/libDCM.h"*) was changed to *#include "../libDCM/libDCM.h".*
>> 3. The project was loaded into IDE 8 and I changed the parameters to my >> requirements in options.h.
>> 4. Compiled the project without problem and burned on my UDB4 board.
>> This is a proper workflow and use of your code or I missed something >> important and I'm a lucky guy?
I don't know if this is useful, but I got this in the Configuration Loading Error window:
warning: Configuration "default" builds with "C30", but indicates no toolchain directory.
info: Configuration "default" will build with toolchain "C30" at "C:\Program Files\Microchip\mplabc30\v3.30c\bin".
warning: Configuration "default" builds with "C30" at "/opt/microchip/mplabc30/v3.30c/bin", but no toolchain of that type is installed there.
info: Configuration "default" will build with toolchain "C30" at "C:\Program Files\Microchip\mplabc30\v3.30c\bin".
warning: Configuration "default" builds with "C30" at "/opt/microchip/mplabc30/v3.30c/bin", but no toolchain of that type is installed there.
info: Configuration "default" will build with toolchain "C30" at "C:\Program Files\Microchip\mplabc30\v3.30c\bin".
On Saturday, 13 October 2012 10:05:03 UTC+2, Giulio Berti wrote:
> Mark,
> I successfully compiled your last working copy MPQ6000dual, but MPQpid400 > doesn't compile yet, but the error is changed:
> CLEAN SUCCESSFUL (total time: 312ms)
> make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
> make[1]: Entering directory > `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
> make -f nbproject/Makefile-default.mk > dist/default/production/MPQpid400.X.production.hex
> make[2]: Entering directory > `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
> In file included from ../../libDCM/libDCM.h:26,
> from ../../libDCM/libDCM_internal.h:22,
> from ../../libDCM/deadReckoning.c:22:
> ../../libDCM/../libUDB/libUDB.h:26:21: error: options.h: No such file or > directory
> In file included from ../../libDCM/../libUDB/libUDB_defines.h:109,
> from ../../libDCM/../libUDB/libUDB.h:28,
> from ../../libDCM/libDCM.h:26,
> from ../../libDCM/libDCM_internal.h:22,
> from ../../libDCM/deadReckoning.c:22:
> ../../libDCM/../libUDB/boardRotation_defines.h:52:18: error: missing > binary operator before token "1"
> ../../libDCM/../libUDB/boardRotation_defines.h:57:19: error: missing > binary operator before token "1"
> ../../libDCM/../libUDB/boardRotation_defines.h:76:18: error: missing > binary operator before token "1"
> ../../libDCM/../libUDB/boardRotation_defines.h:81:19: error: missing > binary operator before token "1"
> ../../libDCM/../libUDB/boardRotation_defines.h:100:18: error: missing > binary operator before token "1"
> ../../libDCM/../libUDB/boardRotation_defines.h:105:19: error: missing > binary operator before token "1"
> "C:\Program Files\Microchip\mplabc30\v3.30c\bin\pic30-gcc.exe" -g -omf=elf > -x c -c -mcpu=33FJ256GP710A -Wall > -I/home/markw/MPLABXProjects/gentlenav/branches/MatrixPillotQuad_MarkWhiteh orn/MatrixPilotQuad/MPQpid400.X > -mlarge-code -MMD -MF > build/default/production/_ext/1077471063/deadReckoning.o.d -o > build/default/production/_ext/1077471063/deadReckoning.o > ../../libDCM/deadReckoning.c -legacy-libc --save-temps -D_ADDED_C_LIB > make[2]: Leaving directory > `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
> make[2]: *** [build/default/production/_ext/1077471063/deadReckoning.o] > Error 1
> make[1]: *** [.build-conf] Error 2
> make: *** [.build-impl] Error 2
> make[1]: Leaving directory > `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
> BUILD FAILED (exit value 2, total time: 1s)
> The compiler can't find options.h, although is in the project files (on > the left in the IDE).
> I have a options.h > in gentlenav\branches\MatrixPillotQuad_MarkWhitehorn\MatrixPilotQuad and > another one > in gentlenav\branches\MatrixPillotQuad_MarkWhitehorn\MatrixPilotQuad\MPQpid400 .X.
> Where should I put it?
> Could you confirm me that MPQpid400 is compilable for you?
> Thanks,
> Giulio
> On Thursday, 11 October 2012 21:16:55 UTC+2, markw wrote:
>> Hi János,
>> I'm glad you were able to get a clean compile, and I hope the latest >> version of code works well for you, but keep in mind that this code is a >> work in progress and you probably will find bugs that I'm not yet aware of.
>> Your changes are OK if MPQpid400 is the only project you are working >> with, but any future SVN updates to main.c will still show up in the >> project directory.
>> I am now maintaining different versions of main.c and options.h (and >> possibly other files also) for multiple subprojects, so each project has >> its own version of these files located in each project subdirectory. >> Instead of moving files and changing the include statements, you can just >> add the files at their new locations to the project. I try to keep the >> MPLAB-X project files up to date, but the MPLAB8 project files (if they >> even exist) probably won't reflect the new file locations.
>> regards,
>> --Mark
>> On Thursday, October 11, 2012 11:16:26 AM UTC-6, János Mészáros wrote:
>>> Hi Mark,
>>> I successfully compiled the trunk code today with MPLab IDE 8 (aka >>> legacy) - sorry, I'm really disappointed about MPLab IDE X.
>>> My workflow:
>>> 1. I copied the *main.c* and *options.h* file of the MPQpid400 X >>> project folder to the main MatrixPilotQuad folder.
>>> 2. I edited the .c file: Original 23th row (*#include >>> "../../libDCM/libDCM.h"*) was changed to *#include "../libDCM/libDCM.h".
>>> *
>>> 3. The project was loaded into IDE 8 and I changed the parameters to my >>> requirements in options.h.
>>> 4. Compiled the project without problem and burned on my UDB4 board.
>>> This is a proper workflow and use of your code or I missed something >>> important and I'm a lucky guy?
On Saturday, 13 October 2012 10:09:30 UTC+2, Giulio Berti wrote:
> I don't know if this is useful, but I got this in the Configuration > Loading Error window:
> warning: Configuration "default" builds with "C30", but indicates no > toolchain directory.
> info: Configuration "default" will build with toolchain "C30" at > "C:\Program Files\Microchip\mplabc30\v3.30c\bin".
> warning: Configuration "default" builds with "C30" at > "/opt/microchip/mplabc30/v3.30c/bin", but no toolchain of that type is > installed there.
> info: Configuration "default" will build with toolchain "C30" at > "C:\Program Files\Microchip\mplabc30\v3.30c\bin".
> warning: Configuration "default" builds with "C30" at > "/opt/microchip/mplabc30/v3.30c/bin", but no toolchain of that type is > installed there.
> info: Configuration "default" will build with toolchain "C30" at > "C:\Program Files\Microchip\mplabc30\v3.30c\bin".
> Best regards,
> Giulio
> On Saturday, 13 October 2012 10:05:03 UTC+2, Giulio Berti wrote:
>> Mark,
>> I successfully compiled your last working copy MPQ6000dual, but MPQpid400 >> doesn't compile yet, but the error is changed:
>> CLEAN SUCCESSFUL (total time: 312ms)
>> make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
>> make[1]: Entering directory >> `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
>> make -f nbproject/Makefile-default.mk >> dist/default/production/MPQpid400.X.production.hex
>> make[2]: Entering directory >> `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
>> In file included from ../../libDCM/libDCM.h:26,
>> from ../../libDCM/libDCM_internal.h:22,
>> from ../../libDCM/deadReckoning.c:22:
>> ../../libDCM/../libUDB/libUDB.h:26:21: error: options.h: No such file or >> directory
>> In file included from ../../libDCM/../libUDB/libUDB_defines.h:109,
>> from ../../libDCM/../libUDB/libUDB.h:28,
>> from ../../libDCM/libDCM.h:26,
>> from ../../libDCM/libDCM_internal.h:22,
>> from ../../libDCM/deadReckoning.c:22:
>> ../../libDCM/../libUDB/boardRotation_defines.h:52:18: error: missing >> binary operator before token "1"
>> ../../libDCM/../libUDB/boardRotation_defines.h:57:19: error: missing >> binary operator before token "1"
>> ../../libDCM/../libUDB/boardRotation_defines.h:76:18: error: missing >> binary operator before token "1"
>> ../../libDCM/../libUDB/boardRotation_defines.h:81:19: error: missing >> binary operator before token "1"
>> ../../libDCM/../libUDB/boardRotation_defines.h:100:18: error: missing >> binary operator before token "1"
>> ../../libDCM/../libUDB/boardRotation_defines.h:105:19: error: missing >> binary operator before token "1"
>> "C:\Program Files\Microchip\mplabc30\v3.30c\bin\pic30-gcc.exe" -g >> -omf=elf -x c -c -mcpu=33FJ256GP710A -Wall >> -I/home/markw/MPLABXProjects/gentlenav/branches/MatrixPillotQuad_MarkWhiteh orn/MatrixPilotQuad/MPQpid400.X >> -mlarge-code -MMD -MF >> build/default/production/_ext/1077471063/deadReckoning.o.d -o >> build/default/production/_ext/1077471063/deadReckoning.o >> ../../libDCM/deadReckoning.c -legacy-libc --save-temps -D_ADDED_C_LIB >> make[2]: Leaving directory >> `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
>> make[2]: *** [build/default/production/_ext/1077471063/deadReckoning.o] >> Error 1
>> make[1]: *** [.build-conf] Error 2
>> make: *** [.build-impl] Error 2
>> make[1]: Leaving directory >> `I:/Documenti/gentlenav/branches/MatrixPillotQuad_MarkWhitehorn/MatrixPilot Quad/MPQpid400.X'
>> BUILD FAILED (exit value 2, total time: 1s)
>> The compiler can't find options.h, although is in the project files (on >> the left in the IDE).
>> I have a options.h >> in gentlenav\branches\MatrixPillotQuad_MarkWhitehorn\MatrixPilotQuad and >> another one >> in gentlenav\branches\MatrixPillotQuad_MarkWhitehorn\MatrixPilotQuad\MPQpid400 .X.
>> Where should I put it?
>> Could you confirm me that MPQpid400 is compilable for you?
>> Thanks,
>> Giulio
>> On Thursday, 11 October 2012 21:16:55 UTC+2, markw wrote:
>>> Hi János,
>>> I'm glad you were able to get a clean compile, and I hope the latest >>> version of code works well for you, but keep in mind that this code is a >>> work in progress and you probably will find bugs that I'm not yet aware of.
>>> Your changes are OK if MPQpid400 is the only project you are working >>> with, but any future SVN updates to main.c will still show up in the >>> project directory.
>>> I am now maintaining different versions of main.c and options.h (and >>> possibly other files also) for multiple subprojects, so each project has >>> its own version of these files located in each project subdirectory. >>> Instead of moving files and changing the include statements, you can just >>> add the files at their new locations to the project. I try to keep the >>> MPLAB-X project files up to date, but the MPLAB8 project files (if they >>> even exist) probably won't reflect the new file locations.
>>> regards,
>>> --Mark
>>> On Thursday, October 11, 2012 11:16:26 AM UTC-6, János Mészáros wrote:
>>>> Hi Mark,
>>>> I successfully compiled the trunk code today with MPLab IDE 8 (aka >>>> legacy) - sorry, I'm really disappointed about MPLab IDE X.
>>>> My workflow:
>>>> 1. I copied the *main.c* and *options.h* file of the MPQpid400 X >>>> project folder to the main MatrixPilotQuad folder.
>>>> 2. I edited the .c file: Original 23th row (*#include >>>> "../../libDCM/libDCM.h"*) was changed to *#include >>>> "../libDCM/libDCM.h".*
>>>> 3. The project was loaded into IDE 8 and I changed the parameters to my >>>> requirements in options.h.
>>>> 4. Compiled the project without problem and burned on my UDB4 board.
>>>> This is a proper workflow and use of your code or I missed something >>>> important and I'm a lucky guy?
> Hello everybody actually am trying a lot of times and always have errors > the last thing I didi is that I downloaded MPQpid400 with the > MatrixPilotQuad_Markwhithorn and the MPLABX whan I open the project and > compile I have the following errors:::
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory `C:/Users/DANGER/Desktop/MatrixPilotQuad_MARKWHITEHORN/Matrixpilot/MPQpid40 0.X' make -f nbproject/Makefile-default.mk dist/default/production/MPQpid400.X.production.hex make[2]: Entering directory `C:/Users/DANGER/Desktop/MatrixPilotQuad_MARKWHITEHORN/Matrixpilot/MPQpid40 0.X' In file included from ../../libDCM/libDCM.h:26, from ../../libDCM/libDCM_internal.h:22, from ../../libDCM/deadReckoning.c:22: ../../libDCM/../libUDB/libUDB.h:28:10: error: #include expects "FILENAME" or <FILENAME> In file included from ../../libDCM/../libUDB/libUDB.h:29, from ../../libDCM/libDCM.h:26, from ../../libDCM/libDCM_internal.h:22, from ../../libDCM/deadReckoning.c:22: ../../libDCM/../libUDB/mpu6000.h:132:2: error: #endif without #if In file included from ../../libDCM/libDCM.h:26, from ../../libDCM/libDCM_internal.h:22, from ../../libDCM/deadReckoning.c:22: ../../libDCM/../libUDB/libUDB.h:32:21: error: options.h: No such file or directory In file included from ../../libDCM/../libUDB/libUDB_defines.h:105, from ../../libDCM/../libUDB/libUDB.h:34, from ../../libDCM/libDCM.h:26, from ../../libDCM/libDCM_internal.h:22, .......
I wrote a short tutorial (see attached pdf file) about quad code compilation in MPLab X. I really hope that it will be helpful to all of you.
@Mark: I really don't want to disturb you with my code ideas, but it would be helpful to modify the libUDB.h and servoOut.c files' include parts as I did and wrote in the pdf file. It is flexible and cause less compilation error while these 2 changes don't affect negatively the basic code and each project contain an options.h file. However, my approach works at the current state of your code and I have no knowledge about your future plans and ideas.
János and everyone having problems compiling MPQpid400.X,
Thank you very much for writing this up. I'm sure that users new to MPLAB-X will appreciate it.
I finally found the problem which was causing you to move files up a level from the subproject directory. It was an absolute path
(specific to my system) which should have been specified as a relative path. The change to the MPQpid400.X project files has
just been committed and I hope this eliminates the problems with header files not being found.
For those interested in configuring an MPLAB-X project, a snapshot of the GUI screen for setting a relative include path is attached.
On Saturday, October 13, 2012 2:36:05 PM UTC-6, János Mészáros wrote:
> Hi guys,
> I wrote a short tutorial (see attached pdf file) about quad code > compilation in MPLab X. I really hope that it will be helpful to all of you.
> @Mark: I really don't want to disturb you with my code ideas, but it would > be helpful to modify the libUDB.h and servoOut.c files' include parts as I > did and wrote in the pdf file. It is flexible and cause less compilation > error while these 2 changes don't affect negatively the basic code and each > project contain an options.h file. However, my approach works at the > current state of your code and I have no knowledge about your future plans > and ideas.
On Saturday, October 13, 2012 12:54:08 PM UTC-6, eng.kwili wrote:
> Hello everybody actually am trying a lot of times and always have errors >> the last thing I didi is that I downloaded MPQpid400 with the >> MatrixPilotQuad_Markwhithorn and the MPLABX whan I open the project and >> compile I have the following errors:::
> make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf > make[1]: Entering directory > `C:/Users/DANGER/Desktop/MatrixPilotQuad_MARKWHITEHORN/Matrixpilot/MPQpid40 0.X' > make -f nbproject/Makefile-default.mk > dist/default/production/MPQpid400.X.production.hex > make[2]: Entering directory > `C:/Users/DANGER/Desktop/MatrixPilotQuad_MARKWHITEHORN/Matrixpilot/MPQpid40 0.X' > In file included from ../../libDCM/libDCM.h:26, > from ../../libDCM/libDCM_internal.h:22, > from ../../libDCM/deadReckoning.c:22: > ../../libDCM/../libUDB/libUDB.h:28:10: error: #include expects "FILENAME" > or <FILENAME> > In file included from ../../libDCM/../libUDB/libUDB.h:29, > from ../../libDCM/libDCM.h:26, > from ../../libDCM/libDCM_internal.h:22, > from ../../libDCM/deadReckoning.c:22: > ../../libDCM/../libUDB/mpu6000.h:132:2: error: #endif without #if > In file included from ../../libDCM/libDCM.h:26, > from ../../libDCM/libDCM_internal.h:22, > from ../../libDCM/deadReckoning.c:22: > ../../libDCM/../libUDB/libUDB.h:32:21: error: options.h: No such file or > directory > In file included from ../../libDCM/../libUDB/libUDB_defines.h:105, > from ../../libDCM/../libUDB/libUDB.h:34, > from ../../libDCM/libDCM.h:26, > from ../../libDCM/libDCM_internal.h:22, > .......
> Really Thank yopu all for your response and solutions I will be trying > them now and I will post the results I hope it will work cuase am working > on my graduation project and really there is no time am developing a new > application of quadcopter, ad your code is really great but waiting for it > to work ::::
I figured an important problem in the MPQ6000.X >>>> all the .C Files are replacing th ( &&)and the ( < = ) with & and < or > so this happen I think because of the download criteria , but now am working on fixing this line by line really too long
finally thank you and I will be posting soon the results
This seems to be great I have changed the directories it alot of errors are gone but I have an error which is the following and I dont now how to deal with it am afraid that I will affect the code ::
../../libUDB/background.c:216: error: 'interrupt_save_set_corcon' undeclared (first use in this function)
../../libUDB/background.c:216: error: (Each undeclared identifier is reported only once
../../libUDB/background.c:216: error: for each function it appears in.)
../../libUDB/background.c:255: error: 'interrupt_restore_corcon' undeclared (first use in this function)
it keeps poping in all the files that have the "'interrupt_save_set_corcon' " so I tink something must be included or defined Thank you
بتاريخ الأحد، 14 أكتوبر، 2012 UTC+3 12:35:07 ص، كتب markw:
> János and everyone having problems compiling MPQpid400.X,
> Thank you very much for writing this up. I'm sure that users new to > MPLAB-X will appreciate it.
> I finally found the problem which was causing you to move files up a level > from the subproject directory. It was an absolute path
> (specific to my system) which should have been specified as a relative > path. The change to the MPQpid400.X project files has
> just been committed and I hope this eliminates the problems with header > files not being found.
> For those interested in configuring an MPLAB-X project, a snapshot of the > GUI screen for setting a relative include path is attached.
> best regards,
> --Mark
> On Saturday, October 13, 2012 2:36:05 PM UTC-6, János Mészáros wrote:
>> Hi guys,
>> I wrote a short tutorial (see attached pdf file) about quad code >> compilation in MPLab X. I really hope that it will be helpful to all of you.
>> @Mark: I really don't want to disturb you with my code ideas, but it >> would be helpful to modify the libUDB.h and servoOut.c files' include parts >> as I did and wrote in the pdf file. It is flexible and cause less >> compilation error while these 2 changes don't affect negatively the basic >> code and each project contain an options.h file. However, my approach works >> at the current state of your code and I have no knowledge about your future >> plans and ideas.
On Saturday, October 13, 2012 4:42:42 PM UTC-6, eng.kwili wrote:
> Really Thank yopu all for your response and solutions I will be trying >> them now and I will post the results I hope it will work cuase am working >> on my graduation project and really there is no time am developing a new >> application of quadcopter, ad your code is really great but waiting for it >> to work ::::
> I figured an important problem in the MPQ6000.X >>>> all the .C Files are > replacing th ( &&)and the ( < = ) with & and < or > so this happen > I think because of the download criteria , but now am working on fixing > this line by line really too long
> finally thank you and I will be posting soon the results
the pid400 subproject at revision 1753 finally compiles fine for me! thank you very much!
Now I can try to copy it and start the tricopter subproject :)
On Saturday, 13 October 2012 23:35:07 UTC+2, markw wrote:
> János and everyone having problems compiling MPQpid400.X,
> Thank you very much for writing this up. I'm sure that users new to > MPLAB-X will appreciate it.
> I finally found the problem which was causing you to move files up a level > from the subproject directory. It was an absolute path
> (specific to my system) which should have been specified as a relative > path. The change to the MPQpid400.X project files has
> just been committed and I hope this eliminates the problems with header > files not being found.
> For those interested in configuring an MPLAB-X project, a snapshot of the > GUI screen for setting a relative include path is attached.
> best regards,
> --Mark
> On Saturday, October 13, 2012 2:36:05 PM UTC-6, János Mészáros wrote:
>> Hi guys,
>> I wrote a short tutorial (see attached pdf file) about quad code >> compilation in MPLab X. I really hope that it will be helpful to all of you.
>> @Mark: I really don't want to disturb you with my code ideas, but it >> would be helpful to modify the libUDB.h and servoOut.c files' include parts >> as I did and wrote in the pdf file. It is flexible and cause less >> compilation error while these 2 changes don't affect negatively the basic >> code and each project contain an options.h file. However, my approach works >> at the current state of your code and I have no knowledge about your future >> plans and ideas.