SILSIM

55 views
Skip to first unread message

Leonardo Garberoglio

unread,
Mar 28, 2016, 8:01:48 AM3/28/16
to uavde...@googlegroups.com
Hi, I'm trying to test MP code and my udb5 board. So I would like to start with SILSIM.
I clone MP repository:

Microsoft Windows [Versión 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\Users\xxxx>d:

D:\>git clone https://github.com/MatrixPilot/MatrixPilot.git MP_SIL
Cloning into 'MP_SIL'...
remote: Counting objects: 31273, done.
Receiving objects: 100% (31273/31273emote: Total 31273 (delta 0), reused 0 (delt
a 0), pack-reused 31273), 37.58 MiB | 1.04 MiB/s, done.

Resolving deltas: 100% (23215/23215), done.
Checking connectivity... done.
Checking out files: 100% (1046/1046), done.

D:\>

Move to Helical Turn branch:

D:\>cd MP_SIL

D:\MP_SIL>git checkout MatrixPilot_wjp_helicalTurns
Checking out files: 100% (1033/1033), done.
Branch MatrixPilot_wjp_helicalTurns set up to track remote branch MatrixPilot_wj
p_helicalTurns from origin.
Switched to a new branch 'MatrixPilot_wjp_helicalTurns'

D:\MP_SIL>

And now follow wiki instructions (https://github.com/MatrixPilot/MatrixPilot/wiki/SoftwareInLoop)

"
To build for SILSIM, you'll just need to edit trunk/MatrixPilot/options.h to match your simulated plane. (Or just copy trunk/MatrixPilot/example-options-files/options.HILSIM-Cessna-ben.h to trunk/MatrixPilot/options.h, and use the built-in Cessna in XPlane.)"

So I copy options.HILSIM-Cessna-ben.h to to trunk/MatrixPilot/options.h
I edit options.h
Uncoment this line:

// Define USE_DEBUG_IO to enable DPRINT macro to call printf(..)
#define USE_DEBUG_IO


and change this one (MAVLINK to UDB_EXTRA)
#define SERIAL_OUTPUT_FORMAT                SERIAL_UDB_EXTRA

#define SILSIM                              1

I have a lot of error for undefined symbols. I think that is becouse the options.h given as an example don't include the latest helical turn definition.

So I remove options.h and try with the original option.h for the repository.
I have this warnings and the linking process faild:

1>------ Build started: Project: MatrixPilot-SIL, Configuration: Debug Win32 ------
1>  SIL-ui-mp-term.c
1>  SIL-udb.c
1>d:\mp_sil\tools\matrixpilot-sil\sil-udb.c(311): warning C4013: 'execv' undefined; assuming extern returning int
1>d:\mp_sil\tools\matrixpilot-sil\sil-udb.c(324): warning C4244: 'return' : conversion from 'long' to 'uint16_t', possible loss of data
1>  SIL-serial.c
1>d:\mp_sil\tools\matrixpilot-sil\sil-serial.c(52): warning C4244: '=' : conversion from 'int16_t' to 'uint8_t', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\sil-serial.c(87): warning C4244: '=' : conversion from 'int16_t' to 'uint8_t', possible loss of data
1>  SIL-I2C1.c
1>  SIL-filesystem.c
1>  SIL-events.c
1>  SIL-eeprom.c
1>  SIL-dsp.c
1>d:\mp_sil\tools\matrixpilot-sil\sil-dsp.c(26): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>  SIL-24LC256.c
1>  frct2flt.c
1>  flt2frct.c
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(92): warning C4244: 'initializing' : conversion from 'double' to 'long', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(108): warning C4244: '=' : conversion from 'double' to 'long', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(118): warning C4244: '+=' : conversion from 'double' to 'long', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(124): warning C4244: '=' : conversion from 'double' to 'long', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(130): warning C4244: '=' : conversion from 'double' to 'long', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(134): warning C4244: '-=' : conversion from 'double' to 'long', possible loss of data
1>d:\mp_sil\tools\matrixpilot-sil\flt2frct.c(146): warning C4244: '+=' : conversion from 'double' to 'long', possible loss of data
1>  UDBSocketWin.c
1>  yawCntrl.c
1>d:\mp_sil\matrixpilot\yawcntrl.c(91): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>d:\mp_sil\matrixpilot\yawcntrl.c(92): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>d:\mp_sil\matrixpilot\yawcntrl.c(104): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>d:\mp_sil\matrixpilot\yawcntrl.c(110): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>  telemetry_log.c
1>  telemetry.c
1>d:\mp_sil\matrixpilot\telemetry.c(86): warning C4081: expected '('; found 'constant'
1>  states.c
1>  servoPrepare.c
1>  servoMix.c
1>  rollCntrl.c
1>d:\mp_sil\matrixpilot\rollcntrl.c(96): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>d:\mp_sil\matrixpilot\rollcntrl.c(106): warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>  pitchCntrl.c
1>  Generating Code...
1>  Compiling...
1>  parameter_table_init.c
1>  parameter_table2.c
1>  nv_memory_table.c
1>  navigate.c
1>  mp_osd.c
1>  mode_switch.c
1>  MAVUDBExtra.c
1>  MAVParams.c
1>  MAVMission.c
1>  MAVLink.c
1>  MAVFlexiFunctions.c
1>  main.c
1>  flightplan-waypoints.c
1>  flightplan-logo.c
1>  euler_angles.c
1>  data_storage.c
1>  data_services.c
1>  config_tests.c
1>  config.c
1>  cameraCntrl.c
1>d:\mp_sil\matrixpilot\cameracntrl.c(36): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(37): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(43): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(44): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(45): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(46): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(47): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\cameracntrl.c(48): warning C4244: 'initializing' : conversion from 'double' to 'const int16_t', possible loss of data
1>  Generating Code...
1>  Compiling...
1>  behavior.c
1>  altitudeCntrlVariable.c
1>  altitudeCntrl.c
1>d:\mp_sil\matrixpilot\altitudecntrl.c(76): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(77): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(79): warning C4244: '=' : conversion from 'double' to 'fractional', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(80): warning C4244: '=' : conversion from 'double' to 'fractional', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(81): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(82): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(83): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(84): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\altitudecntrl.c(85): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>  airspeedCntrl.c
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(41): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(42): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(43): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(44): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(46): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(47): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(48): warning C4244: '=' : conversion from 'double' to 'fractional', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(49): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>d:\mp_sil\matrixpilot\airspeedcntrl.c(50): warning C4244: '=' : conversion from 'double' to 'int16_t', possible loss of data
1>  minIni.c
1>  rmat.c
1>d:\mp_sil\libdcm\rmat.c(48): warning C4244: 'initializing' : conversion from 'double' to 'fractional', possible loss of data
1>d:\mp_sil\libdcm\rmat.c(48): warning C4244: 'initializing' : conversion from 'double' to 'fractional', possible loss of data
1>d:\mp_sil\libdcm\rmat.c(48): warning C4244: 'initializing' : conversion from 'double' to 'fractional', possible loss of data
1>  mathlibNAV.c
1>  libDCM.c
1>  gpsParseUBX.c
1>  gpsParseSTD.c
1>  gpsParseNMEA.c
1>  gpsParseMTEK.c
1>  gpsParseCommon.c
1>d:\mp_sil\libdcm\gpsparsecommon.c(165): warning C4244: 'return' : conversion from 'uint16_t' to 'boolean', possible loss of data
1>d:\mp_sil\libdcm\gpsparsecommon.c(257): warning C4244: '=' : conversion from 'int16_t' to 'int8_t', possible loss of data
1>  estYawDrift.c
1>  estWind.c
1>  estAltitude.c
1>  estAirspeed.c
1>d:\mp_sil\libdcm\estairspeed.c(52): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>d:\mp_sil\libdcm\estairspeed.c(67): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>d:\mp_sil\libdcm\estairspeed.c(82): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>  deadReckoning.c
1>  Generating Code...
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


So, am I making some mistake?

Best regards!

Leonardo Garberoglio

unread,
Mar 28, 2016, 8:06:53 AM3/28/16
to uavde...@googlegroups.com

1>d:\mp_sil\libdcm\estairspeed.c(52): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>d:\mp_sil\libdcm\estairspeed.c(67): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>d:\mp_sil\libdcm\estairspeed.c(82): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
1>  deadReckoning.c
1>  Generating Code...
1>deadReckoning.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>estWind.obj : error LNK2001: unresolved external symbol _angleOfAttack
1>gpsParseCommon.obj : error LNK2001: unresolved external symbol _angleOfAttack
1>rmat.obj : error LNK2001: unresolved external symbol _angleOfAttack
1>pitchCntrl.obj : error LNK2001: unresolved external symbol _rotationRateError
1>rollCntrl.obj : error LNK2001: unresolved external symbol _rotationRateError
1>yawCntrl.obj : error LNK2001: unresolved external symbol _rotationRateError
1>pitchCntrl.obj : error LNK2001: unresolved external symbol _desiredRotationRateRadians
1>rollCntrl.obj : error LNK2001: unresolved external symbol _desiredRotationRateRadians
1>yawCntrl.obj : error LNK2001: unresolved external symbol _desiredRotationRateRadians
1>pitchCntrl.obj : error LNK2001: unresolved external symbol _tiltError
1>rollCntrl.obj : error LNK2001: unresolved external symbol _tiltError
1>yawCntrl.obj : error LNK2001: unresolved external symbol _tiltError
1>servoPrepare.obj : error LNK2019: unresolved external symbol _helicalTurnCntrl referenced in function _dcm_heartbeat_callback
1>Debug\MatrixPilot-SIL.exe : fatal error LNK1120: 5 unresolved externals

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Leonardo Garberoglio

unread,
Mar 28, 2016, 9:58:26 AM3/28/16
to uavde...@googlegroups.com
I'm trying to replicate this video from Peter:
https://vimeo.com/107957333

So I checkout revision 3371

E:\MP_SIL>git checkout 2b5fcfb
Note: checking out '2b5fcfb'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 2b5fcfb... branch: MatrixPilot_wjp_helicalTurns: Changed pitch co
ntrol to be based in body frame, using elevator and rudder.  This provides corre
ct response of elevator and rudder to achieve correct pitch in any roll orientat
ion.  As a result, knife-edge and barrel roll turns will eventually be implement
ed without any special pitch control logic.

E:\MP_SIL>



And just change the same line as Peter:


// Define USE_DEBUG_IO to enable DPRINT macro to call printf(..)
#define USE_DEBUG_IO


But I have same warning and errors:

Error    56    error LNK2001: símbolo externo _rotationRateError sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\pitchCntrl.obj    MatrixPilot-SIL
Error    57    error LNK2001: símbolo externo _rotationRateError sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\rollCntrl.obj    MatrixPilot-SIL
Error    58    error LNK2001: símbolo externo _rotationRateError sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\yawCntrl.obj    MatrixPilot-SIL
Error    59    error LNK2001: símbolo externo _desiredRotationRateRadians sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\pitchCntrl.obj    MatrixPilot-SIL
Error    60    error LNK2001: símbolo externo _desiredRotationRateRadians sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\rollCntrl.obj    MatrixPilot-SIL
Error    61    error LNK2019: símbolo externo _desiredRotationRateRadians sin resolver al que se hace referencia en la función _normalYawCntrl    E:\MP_SIL\Tools\MatrixPilot-SIL\yawCntrl.obj    MatrixPilot-SIL
Error    62    error LNK2001: símbolo externo _tiltError sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\pitchCntrl.obj    MatrixPilot-SIL
Error    63    error LNK2001: símbolo externo _tiltError sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\rollCntrl.obj    MatrixPilot-SIL
Error    64    error LNK2001: símbolo externo _tiltError sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\yawCntrl.obj    MatrixPilot-SIL
Error    65    error LNK2019: símbolo externo _helicalTurnCntrl sin resolver al que se hace referencia en la función _dcm_heartbeat_callback    E:\MP_SIL\Tools\MatrixPilot-SIL\servoPrepare.obj    MatrixPilot-SIL
Error    66    error LNK1120: 4 externos sin resolver    E:\MP_SIL\Tools\MatrixPilot-SIL\Debug\MatrixPilot-SIL.exe    MatrixPilot-SIL


So what am I doing wrong?


Peter Hollands

unread,
Mar 28, 2016, 4:53:08 PM3/28/16
to uavdevboard
I am sorry that I do not have experience of using the Microsoft compiler tools under Windows.; but I have checked and that revision and commit is compiling to completion and running up on the Mac.  

Can anyone else on the uavdevboard list help ?

I enclose a full example of a successful session below for MatrixPilot_wjp_helicalTurns commit 2b5fcfb . 

Best wishes, Pete

Peters-iMac:MatrixPilot-SIL phollands$ time make clean

rm -f SIL-udb.o SIL-ui-mp-term.o SIL-serial.o SIL-dsp.o SIL-eeprom.o SIL-events.o ../HILSIM_XPlane/UDBSocketUnix.o ../../libDCM/deadReckoning.o ../../libDCM/estAltitude.o ../../libDCM/estWind.o ../../libDCM/estYawDrift.o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseSTD.o ../../libDCM/gpsParseUBX.o ../../libDCM/libDCM.o ../../libDCM/mathlibNAV.o ../../libDCM/rmat.o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/altitudeCntrl.o ../../MatrixPilot/altitudeCntrlVariable.o ../../MatrixPilot/behavior.o ../../MatrixPilot/cameraCntrl.o ../../MatrixPilot/config.o ../../MatrixPilot/config_tests.o ../../MatrixPilot/data_services.o ../../MatrixPilot/data_storage.o ../../MatrixPilot/euler_angles.o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/flightplan-waypoints.o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/main.o ../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVMission.o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVUDBExtra.o ../../MatrixPilot/mode_switch.o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/navigate.o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/parameter_table.o ../../MatrixPilot/pitchCntrl.o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/servoMix.o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/states.o ../../MatrixPilot/telemetry.o ../../MatrixPilot/yawCntrl.o ../HILSIM_XPlane/UDBSocketUnix.o SILcat.o

rm -f *~ core *.core


real 0m0.013s

user 0m0.005s

sys 0m0.007s

Peters-iMac:MatrixPilot-SIL phollands$ time make 

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SIL-udb.o SIL-udb.c

SIL-udb.c:484:5: warning: declaration of built-in function 'setjmp' requires inclusion of the header

      <setjmp.h> [-Wbuiltin-requires-header]

int setjmp(void)

    ^

1 warning generated.

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SIL-ui-mp-term.o SIL-ui-mp-term.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SIL-serial.o SIL-serial.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SIL-dsp.o SIL-dsp.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SIL-eeprom.o SIL-eeprom.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SIL-events.o SIL-events.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../HILSIM_XPlane/UDBSocketUnix.o ../HILSIM_XPlane/UDBSocketUnix.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/deadReckoning.o ../../libDCM/deadReckoning.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/estAltitude.o ../../libDCM/estAltitude.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/estWind.o ../../libDCM/estWind.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/estYawDrift.o ../../libDCM/estYawDrift.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseCommon.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseMTEK.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/gpsParseSTD.o ../../libDCM/gpsParseSTD.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/gpsParseUBX.o ../../libDCM/gpsParseUBX.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/libDCM.o ../../libDCM/libDCM.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/mathlibNAV.o ../../libDCM/mathlibNAV.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../libDCM/rmat.o ../../libDCM/rmat.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/airspeedCntrl.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/altitudeCntrl.o ../../MatrixPilot/altitudeCntrl.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/altitudeCntrlVariable.o ../../MatrixPilot/altitudeCntrlVariable.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/behavior.o ../../MatrixPilot/behavior.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/cameraCntrl.o ../../MatrixPilot/cameraCntrl.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/config.o ../../MatrixPilot/config.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/config_tests.o ../../MatrixPilot/config_tests.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/data_services.o ../../MatrixPilot/data_services.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/data_storage.o ../../MatrixPilot/data_storage.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/euler_angles.o ../../MatrixPilot/euler_angles.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/flightplan-logo.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/flightplan-waypoints.o ../../MatrixPilot/flightplan-waypoints.c

../../MatrixPilot/flightplan-waypoints.c:131:37: warning: unused parameter 'wp' [-Wunused-parameter]

void add_waypoint(struct waypoint3D wp, int16_t flags)

                                    ^

../../MatrixPilot/flightplan-waypoints.c:131:49: warning: unused parameter 'flags' [-Wunused-parameter]

void add_waypoint(struct waypoint3D wp, int16_t flags)

                                                ^

../../MatrixPilot/flightplan-waypoints.c:201:21: warning: assigning to 'struct waypointDef *' from

      'const struct waypointDef *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]

        currentWaypointSet = waypoints;

                           ^ ~~~~~~~~~

3 warnings generated.

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/helicalTurnCntrl.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/main.o ../../MatrixPilot/main.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVLink.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVParams.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/MAVMission.o ../../MatrixPilot/MAVMission.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVFlexiFunctions.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/MAVUDBExtra.o ../../MatrixPilot/MAVUDBExtra.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/mode_switch.o ../../MatrixPilot/mode_switch.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/mp_osd.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/navigate.o ../../MatrixPilot/navigate.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/nv_memory_table.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/parameter_table.o ../../MatrixPilot/parameter_table.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/pitchCntrl.o ../../MatrixPilot/pitchCntrl.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/rollCntrl.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/servoMix.o ../../MatrixPilot/servoMix.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/servoPrepare.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/states.o ../../MatrixPilot/states.c

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/telemetry.o ../../MatrixPilot/telemetry.c

../../MatrixPilot/telemetry.c:86:9: warning: unknown pragma ignored [-Wunknown-pragmas]

#pragma warning SERIAL_BAUDRATE set to default value of 19200 bps

        ^

1 warning generated.

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o ../../MatrixPilot/yawCntrl.o ../../MatrixPilot/yawCntrl.c

gcc -Wl -o matrixpilot SIL-udb.o SIL-ui-mp-term.o SIL-serial.o SIL-dsp.o SIL-eeprom.o SIL-events.o ../HILSIM_XPlane/UDBSocketUnix.o ../../libDCM/deadReckoning.o ../../libDCM/estAltitude.o ../../libDCM/estWind.o ../../libDCM/estYawDrift.o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseSTD.o ../../libDCM/gpsParseUBX.o ../../libDCM/libDCM.o ../../libDCM/mathlibNAV.o ../../libDCM/rmat.o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/altitudeCntrl.o ../../MatrixPilot/altitudeCntrlVariable.o ../../MatrixPilot/behavior.o ../../MatrixPilot/cameraCntrl.o ../../MatrixPilot/config.o ../../MatrixPilot/config_tests.o ../../MatrixPilot/data_services.o ../../MatrixPilot/data_storage.o ../../MatrixPilot/euler_angles.o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/flightplan-waypoints.o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/main.o ../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVMission.o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVUDBExtra.o ../../MatrixPilot/mode_switch.o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/navigate.o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/parameter_table.o ../../MatrixPilot/pitchCntrl.o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/servoMix.o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/states.o ../../MatrixPilot/telemetry.o ../../MatrixPilot/yawCntrl.o -lm

gcc -c -pipe -Wall -W -O0 -DNIX=1 -I. -I../../libUDB -I../../libDCM -I../../MatrixPilot -o SILcat.o SILcat.c

gcc -Wl -o silcat ../HILSIM_XPlane/UDBSocketUnix.o SILcat.o -lm


real 0m1.451s

user 0m0.862s

sys 0m0.515s

Peters-iMac:MatrixPilot-SIL phollands$ ./matrixpilot

MatrixPilot SIL


1/2/3/4 = mode manual/stabilized/waypoint/signal-lost

w/s     = throttle up/down

a/d     = rudder left/right

i/k     = elevator forward/back

j/l     = aileron left/right


z       = zero the sticks

L       = toggle LEDs

0       = toggle RC Radio connection on/off

r       = reset

?       = show this help message


INIT: Calibrating...

init_states()

startS()

calib_timer 0  

ent_acquiringS

INIT: sensors calibrated and trims recorded.

INIT: waiting for GPS...

calib_finished

^C

Peters-iMac:MatrixPilot-SIL phollands$ 


--
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Dickenson

unread,
Mar 28, 2016, 5:25:37 PM3/28/16
to uavdevboard
Hi Leo, please clone my latest repo https://github.com/Inspirati/MatrixPilot.git and run the 'build-all.bat' script and  post the output. I'll then help you get SILSIM building using the gcc toolchain.

Leonardo Garberoglio

unread,
Mar 28, 2016, 7:02:54 PM3/28/16
to uavde...@googlegroups.com
Peter, Robert, thank for your help

Microsoft Windows [Versión 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

D:\>git clone https://github.com/Inspirati/MatrixPilot.git  MP_ROBD
Cloning into 'MP_ROBD'...
remote: Counting objects: 33275, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 33275 (delta 43), reused 0 (delta 0), pack-reused 33217
Receiving objects: 100% (33275/33275), 38.58 MiB | 292.00 KiB/s, done.
Resolving deltas: 100% (24746/24746), done.
Checking connectivity... done.

D:\>CD MP_ROBD

D:\MP_ROBD>build-all
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
"make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
No se encuentra el archivo
Presione una tecla para continuar . . .

D:\MP_ROBD>

Do I need to install http://www.mingw.org and GNU make ?

Leonardo Garberoglio

unread,
Mar 28, 2016, 8:43:44 PM3/28/16
to uavde...@googlegroups.com
I download and install mingw and msys. Add bin folder to path and run build-all again:


D:\MP_ROBD>build-all
../../makefile:183: ************************************************************
*******************
../../makefile:184: Building MatrixPilot-SIL-GCC.exe
../../makefile:186: modules: MatrixPilot MAVLink libDCM Tools/MatrixPilot-SIL
../../makefile:192: library: MAVLink/MAVLink.a
../../makefile:196: INCPATH: ../../Config/Cessna ../../Config ../../MAVLink/incl
ude
../../makefile:204: DEFINES: SIL=1


it seems that it hang there, nothing else happend.

So I try with Peter commands:


D:\MP_ROBD\Tools\MatrixPilot-SIL>make clean

rm -f SIL-udb.o SIL-ui-mp-term.o SIL-serial.o SIL-dsp.o SIL-eeprom.o SIL-events.
o ../HILSIM_XPlane/UDBSocketWin.o ../../libDCM/deadReckoning.o ../../libDCM/estA
ltitude.o ../../libDCM/estLocation.o ../../libDCM/estWind.o ../../libDCM/estYawD
rift.o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseMTEK.o ../../libDCM/gp
sParseSTD.o ../../libDCM/gpsParseUBX.o ../../libDCM/hilsim.o ../../libDCM/libDCM
.o ../../libDCM/mathlib.o ../../libDCM/mathlibNAV.o ../../libDCM/rmat.o ../../Ma
trixPilot/airspeedCntrl.o ../../MatrixPilot/altitudeCntrl.o ../../MatrixPilot/al
titudeCntrlVariable.o ../../MatrixPilot/behavior.o ../../MatrixPilot/cameraCntrl
.o ../../MatrixPilot/config.o ../../MatrixPilot/config_tests.o ../../MatrixPilot
/data_services.o ../../MatrixPilot/data_storage.o ../../MatrixPilot/euler_angles
.o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/flightplan-waypoints.o
../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/main.o ../../MatrixPilot/
MAVLink.o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVMission.o ../../Mat
rixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVUDBExtra.o ../../MatrixPilot/m
ode_switch.o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/navigate.o ../../Matri
xPilot/nv_memory_table.o ../../MatrixPilot/parameter_table.o ../../MatrixPilot/p
itchCntrl.o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/servoMix.o ../../Mat
rixPilot/servoPrepare.o ../../MatrixPilot/states.o ../../MatrixPilot/telemetry.o
 ../../MatrixPilot/yawCntrl.o ../HILSIM_XPlane/UDBSocketWin.o SILcat.o
rm -f matrixpilot.exe silcat.exe

D:\MP_ROBD\Tools\MatrixPilot-SIL>make
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o SIL-udb.o SIL-udb.c
SIL-udb.c: In function 'gettimeofday':
SIL-udb.c:56:50: warning: unused parameter 'tz' [-Wunused-parameter]
 inline int gettimeofday(struct timeval* p, void* tz /* IGNORED */)
                                                  ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o SIL-ui-mp-term.o SIL-ui-mp-term.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o SIL-serial.o SIL-serial.c
In file included from ../../MatrixPilot/MAVLink.h:27:0,
                 from SIL-serial.c:16:
../../MatrixPilot/../MAVLink/include/matrixpilot_mavlink_bridge_header.h:34:1: w
arning: parameter names (without types) in function declaration
 static inline void comm_send_ch(mavlink_channel_t UNUSED(chan), uint8_t ch)
 ^
../../MatrixPilot/../MAVLink/include/matrixpilot_mavlink_bridge_header.h: In fun
ction 'comm_send_ch':
../../MatrixPilot/../MAVLink/include/matrixpilot_mavlink_bridge_header.h:34:51:
warning: unused parameter 'UNUSED' [-Wunused-parameter]
 static inline void comm_send_ch(mavlink_channel_t UNUSED(chan), uint8_t ch)
                                                   ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o SIL-dsp.o SIL-dsp.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o SIL-eeprom.o SIL-eeprom.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o SIL-events.o SIL-events.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../HILSIM_XPlane/UDBSocketWin.o ../HILSIM_XPlane/UDBSo
cketWin.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../libDCM/deadReckoning.o ../../libDCM/deadReckonin
g.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/estAltitude.o ../../libDCM/estAltitude.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../libDCM/estLocation.o ../../libDCM/estLocation.c
../../libDCM/estLocation.c: In function 'estLocation':
../../libDCM/estLocation.c:80:10: warning: variable 'velocity_thru_airz' set but
 not used [-Wunused-but-set-variable]
  int16_t velocity_thru_airz;
          ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/estWind.o ../../libDCM/estWind.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/estYawDrift.o ../../libDCM/estYawDrift.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseCom
mon.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseMTEK.
c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/gpsParseSTD.o ../../libDCM/gpsParseSTD.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/gpsParseUBX.o ../../libDCM/gpsParseUBX.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../libDCM/hilsim.o ../../libDCM/hilsim.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/libDCM.o ../../libDCM/libDCM.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../libDCM/mathlib.o ../../libDCM/mathlib.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/mathlibNAV.o ../../libDCM/mathlibNAV.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../libDCM/rmat.o ../../libDCM/rmat.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/ai
rspeedCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/altitudeCntrl.o ../../MatrixPilot/al
titudeCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/altitudeCntrlVariable.o ../../Matrix
Pilot/altitudeCntrlVariable.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/behavior.o ../../MatrixPilot/behavio
r.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/cameraCntrl.o ../../MatrixPilot/came
raCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../MatrixPilot/config.o ../../MatrixPilot/config.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/config_tests.o ../../MatrixPilot/con
fig_tests.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/data_services.o ../../MatrixPilot/da
ta_services.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/data_storage.o ../../MatrixPilot/dat
a_storage.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/euler_angles.o ../../MatrixPilot/eul
er_angles.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/
flightplan-logo.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/flightplan-waypoints.o ../../MatrixP
ilot/flightplan-waypoints.c
../../MatrixPilot/flightplan-waypoints.c: In function 'add_waypoint':
../../MatrixPilot/flightplan-waypoints.c:135:37: warning: unused parameter 'wp'

[-Wunused-parameter]
 void add_waypoint(struct waypoint3D wp, int16_t flags)
                                     ^
../../MatrixPilot/flightplan-waypoints.c:135:49: warning: unused parameter 'flag
s' [-Wunused-parameter]

 void add_waypoint(struct waypoint3D wp, int16_t flags)
                                                 ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot
/helicalTurnCntrl.c
../../MatrixPilot/helicalTurnCntrl.c: In function 'relativeWingLoading':
../../MatrixPilot/helicalTurnCntrl.c:166:2: warning: implicit declaration of fun
ction 'abs' [-Wimplicit-function-declaration]
  if (abs(long_signed_accum._.W1) < 4095)
  ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../MatrixPilot/main.o ../../MatrixPilot/main.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVLink.
c
../../MatrixPilot/MAVLink.c: In function 'mavlink_callback_received_byte':
../../MatrixPilot/MAVLink.c:1079:45: warning: unused parameter 'rxchar' [-Wunuse
d-parameter]
 void mavlink_callback_received_byte(uint8_t rxchar)
                                             ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVPar
ams.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/MAVMission.o ../../MatrixPilot/MAVMi
ssion.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilo
t/MAVFlexiFunctions.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/MAVUDBExtra.o ../../MatrixPilot/MAVU
DBExtra.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/mode_switch.o ../../MatrixPilot/mode
_switch.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/mp_osd.c
../../MatrixPilot/mp_osd.c: In function 'mp_osd_run_step':
../../MatrixPilot/mp_osd.c:646:31: warning: unused parameter 'init_counter' [-Wu
nused-parameter]
 void mp_osd_run_step(uint16_t init_counter) {}
                               ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/navigate.o ../../MatrixPilot/navigat
e.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/
nv_memory_table.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/parameter_table.o ../../MatrixPilot/
parameter_table.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/pitchCntrl.o ../../MatrixPilot/pitch
Cntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/rollCn
trl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/servoMix.o ../../MatrixPilot/servoMi
x.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/ser
voPrepare.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD

CM -I../../MatrixPilot -o ../../MatrixPilot/states.o ../../MatrixPilot/states.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/telemetry.o ../../MatrixPilot/teleme
try.c
../../MatrixPilot/telemetry.c: In function 'udb_serial_callback_received_byte':
../../MatrixPilot/telemetry.c:869:48: warning: unused parameter 'rxchar' [-Wunus
ed-parameter]
 void udb_serial_callback_received_byte(uint8_t rxchar)
                                                ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../Config -I../../libUDB -I../../libD
CM -I../../MatrixPilot -o ../../MatrixPilot/yawCntrl.o ../../MatrixPilot/yawCntr
l.c
gcc -o matrixpilot.exe  SIL-udb.o SIL-ui-mp-term.o SIL-serial.o SIL-dsp.o SIL-ee
prom.o SIL-events.o ../HILSIM_XPlane/UDBSocketWin.o ../../libDCM/deadReckoning.o
 ../../libDCM/estAltitude.o ../../libDCM/estLocation.o ../../libDCM/estWind.o ..
/../libDCM/estYawDrift.o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseMTEK
.o ../../libDCM/gpsParseSTD.o ../../libDCM/gpsParseUBX.o ../../libDCM/hilsim.o .
./../libDCM/libDCM.o ../../libDCM/mathlib.o ../../libDCM/mathlibNAV.o ../../libD
CM/rmat.o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/altitudeCntrl.o ..
/../MatrixPilot/altitudeCntrlVariable.o ../../MatrixPilot/behavior.o ../../Matri
xPilot/cameraCntrl.o ../../MatrixPilot/config.o ../../MatrixPilot/config_tests.o
 ../../MatrixPilot/data_services.o ../../MatrixPilot/data_storage.o ../../Matrix
Pilot/euler_angles.o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/fligh
tplan-waypoints.o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/main.o
../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVM
ission.o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVUDBExtra.o .
./../MatrixPilot/mode_switch.o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/navi
gate.o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/parameter_table.o .
./../MatrixPilot/pitchCntrl.o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/se
rvoMix.o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/states.o ../../Matri
xPilot/telemetry.o ../../MatrixPilot/yawCntrl.o -lws2_32
c:/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: reopening
matrixpilot.exe: Permission denied

c:/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../../mingw32/bin/ld.exe: final link
 failed: Permission denied
collect2.exe: error: ld returned 1 exit status
make: *** [matrixpilot.exe] Error 1

D:\MP_ROBD\Tools\MatrixPilot-SIL>


Robert Dickenson

unread,
Mar 28, 2016, 8:57:25 PM3/28/16
to uavdevboard
I vaguely recall seeing the permission problem a few times in the past. Suspect it could actually have something to do with anti-virus software! Just try running build-all again and see what happens. If it persists, try turning off your AV software.

Robert Dickenson

unread,
Mar 28, 2016, 9:05:10 PM3/28/16
to uavdevboard
You should be able to see here that my current MP master is building successfully:
 
https://travis-ci.org/Inspirati/MatrixPilot

Leonardo Garberoglio

unread,
Mar 28, 2016, 9:51:30 PM3/28/16
to uavde...@googlegroups.com
Ok, I see.

Is minGW with MSYS the tools that I need to install to have gcc, make and other's utilities?

I will try on a win XP machine...

Leonardo Garberoglio

unread,
Mar 28, 2016, 10:27:48 PM3/28/16
to uavde...@googlegroups.com
what is your make version?


C:\MinGW\msys\1.0\bin>make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-msys

C:\MinGW\msys\1.0\bin>


Leonardo Garberoglio

unread,
Mar 28, 2016, 10:50:43 PM3/28/16
to uavde...@googlegroups.com
Ok, I made some progress.
I can make commit 2b5fcfb just follow Peter's steps. The problem was that I trying to make on last commit, not on 2b5fcf.

So SIL target works ok on 2b5fcfb using make, but not using VC project.
SIL target seems to don't work on las commit of MatrixPilot_wjp_helicalTurns:


D:\mp_sil>git checkout MatrixPilot_wjp_helicalTurns
Previous HEAD position was 2b5fcfb... branch: MatrixPilot_wjp_helicalTurns: Chan
ged pitch control to be based in body frame, using elevator and rudder.  This pr
ovides correct response of elevator and rudder to achieve correct pitch in any r
oll orientation.  As a result, knife-edge and barrel roll turns will eventually
be implemented without any special pitch control logic.

Branch MatrixPilot_wjp_helicalTurns set up to track remote branch MatrixPilot_wj
p_helicalTurns from origin.
Switched to a new branch 'MatrixPilot_wjp_helicalTurns'

D:\mp_sil>cd Tools/MatrixPilot-sil

D:\mp_sil\Tools\MatrixPilot-SIL>make clean

rm -f SIL-udb.o SIL-ui-mp-term.o SIL-serial.o SIL-dsp.o SIL-eeprom.o SIL-events.
o ../HILSIM_XPlane/UDBSocketWin.o ../../libDCM/deadReckoning.o ../../libDCM/estA
ltitude.o ../../libDCM/estWind.o ../../libDCM/estYawDrift.o ../../libDCM/gpsPars
eCommon.o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseSTD.o ../../libDCM/gp
sParseUBX.o ../../libDCM/libDCM.o ../../libDCM/mathlibNAV.o ../../libDCM/rmat.o
../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/altitudeCntrl.o ../../Matrix
Pilot/altitudeCntrlVariable.o ../../MatrixPilot/behavior.o ../../MatrixPilot/cam
eraCntrl.o ../../MatrixPilot/config.o ../../MatrixPilot/config_tests.o ../../Mat

rixPilot/data_services.o ../../MatrixPilot/data_storage.o ../../MatrixPilot/eule
r_angles.o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/flightplan-wayp
oints.o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/main.o ../../Matr
ixPilot/MAVLink.o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVMission.o .
./../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVUDBExtra.o ../../Matri
xPilot/mode_switch.o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/navigate.o ../
../MatrixPilot/nv_memory_table.o ../../MatrixPilot/parameter_table.o ../../Matri
xPilot/pitchCntrl.o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/servoMix.o .
./../MatrixPilot/servoPrepare.o ../../MatrixPilot/states.o ../../MatrixPilot/tel
emetry.o ../../MatrixPilot/yawCntrl.o ../HILSIM_XPlane/UDBSocketWin.o SILcat.o
rm -f matrixpilot.exe silcat.exe

D:\mp_sil\Tools\MatrixPilot-SIL>make
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o SIL-udb.o SIL-udb.c
SIL-udb.c: In function 'gettimeofday':
SIL-udb.c:53:50: warning: unused parameter 'tz' [-Wunused-parameter]

 inline int gettimeofday(struct timeval* p, void* tz /* IGNORED */)
                                                  ^
SIL-udb.c: In function 'sil_reset':
SIL-udb.c:311:2: warning: implicit declaration of function 'execv' [-Wimplicit-f
unction-declaration]
  execv(mp_argv[0], args);
  ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o SIL-ui-mp-term.o SIL-ui-mp-term.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o SIL-serial.o SIL-serial.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o SIL-dsp.o SIL-dsp.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o SIL-eeprom.o SIL-eeprom.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o SIL-events.o SIL-events.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../HILSIM_XPlane/UDBSocketWin.o ../HILSIM_XPlane/UDBSocketWin.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/deadReckoning.o ../../libDCM/deadReckoning.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/estAltitude.o ../../libDCM/estAltitude.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/estWind.o ../../libDCM/estWind.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/estYawDrift.o ../../libDCM/estYawDrift.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/gpsParseCommon.o ../../libDCM/gpsParseCommon.c
../../libDCM/gpsParseCommon.c: In function 'udb_background_callback_triggered':
../../libDCM/gpsParseCommon.c:194:10: warning: variable 'velocity_thru_airz' set

 but not used [-Wunused-but-set-variable]
  int16_t velocity_thru_airz;
          ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseMTEK.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/gpsParseSTD.o ../../libDCM/gpsParseSTD.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/gpsParseUBX.o ../../libDCM/gpsParseUBX.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/libDCM.o ../../libDCM/libDCM.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/mathlibNAV.o ../../libDCM/mathlibNAV.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../libDCM/rmat.o ../../libDCM/rmat.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/airspeedCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/altitudeCntrl.o ../../MatrixPilot/altitudeCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/altitudeCntrlVariable.o ../../MatrixPilot/altitudeC
ntrlVariable.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/behavior.o ../../MatrixPilot/behavior.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/cameraCntrl.o ../../MatrixPilot/cameraCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/config.o ../../MatrixPilot/config.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/config_tests.o ../../MatrixPilot/config_tests.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/data_services.o ../../MatrixPilot/data_services.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/data_storage.o ../../MatrixPilot/data_storage.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/euler_angles.o ../../MatrixPilot/euler_angles.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/flightplan-logo.o ../../MatrixPilot/flightplan-logo
.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/flightplan-waypoints.o ../../MatrixPilot/flightplan
-waypoints.c
../../MatrixPilot/flightplan-waypoints.c: In function 'add_waypoint':
../../MatrixPilot/flightplan-waypoints.c:131:37: warning: unused parameter 'wp'
[-Wunused-parameter]
 void add_waypoint(struct waypoint3D wp, int16_t flags)
                                     ^
../../MatrixPilot/flightplan-waypoints.c:131:49: warning: unused parameter 'flag

s' [-Wunused-parameter]
 void add_waypoint(struct waypoint3D wp, int16_t flags)
                                                 ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot/helicalTurnCnt
rl.c
../../MatrixPilot/helicalTurnCntrl.c: In function 'relativeWingLoading':
../../MatrixPilot/helicalTurnCntrl.c:165:2: warning: implicit declaration of fun

ction 'abs' [-Wimplicit-function-declaration]
  if ( abs ( long_signed_accum._.W1 ) < 4095 )
  ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/main.o ../../MatrixPilot/main.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVLink.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/MAVParams.o ../../MatrixPilot/MAVParams.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/MAVMission.o ../../MatrixPilot/MAVMission.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVFlexiFunct
ions.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/MAVUDBExtra.o ../../MatrixPilot/MAVUDBExtra.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/mode_switch.o ../../MatrixPilot/mode_switch.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/mp_osd.o ../../MatrixPilot/mp_osd.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/navigate.o ../../MatrixPilot/navigate.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/nv_memory_table
.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/parameter_table.o ../../MatrixPilot/parameter_table
.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/pitchCntrl.o ../../MatrixPilot/pitchCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/rollCntrl.o ../../MatrixPilot/rollCntrl.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/servoMix.o ../../MatrixPilot/servoMix.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/servoPrepare.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/states.o ../../MatrixPilot/states.c
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o ../../MatrixPilot/telemetry.o ../../MatrixPilot/telemetry.c
../../MatrixPilot/telemetry.c: In function 'init_serial':
../../MatrixPilot/telemetry.c:86:0: warning: ignoring #pragma warning SERIAL_BAU
DRATE [-Wunknown-pragmas]

 #pragma warning SERIAL_BAUDRATE set to default value of 19200 bps
 ^
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr

ixPilot -o ../../MatrixPilot/yawCntrl.o ../../MatrixPilot/yawCntrl.c
gcc -o matrixpilot.exe  SIL-udb.o SIL-ui-mp-term.o SIL-serial.o SIL-dsp.o SIL-ee
prom.o SIL-events.o ../HILSIM_XPlane/UDBSocketWin.o ../../libDCM/deadReckoning.o
 ../../libDCM/estAltitude.o ../../libDCM/estWind.o ../../libDCM/estYawDrift.o ..
/../libDCM/gpsParseCommon.o ../../libDCM/gpsParseMTEK.o ../../libDCM/gpsParseSTD
.o ../../libDCM/gpsParseUBX.o ../../libDCM/libDCM.o ../../libDCM/mathlibNAV.o ..
/../libDCM/rmat.o ../../MatrixPilot/airspeedCntrl.o ../../MatrixPilot/altitudeCn
trl.o ../../MatrixPilot/altitudeCntrlVariable.o ../../MatrixPilot/behavior.o ../
../MatrixPilot/cameraCntrl.o ../../MatrixPilot/config.o ../../MatrixPilot/config
_tests.o ../../MatrixPilot/data_services.o ../../MatrixPilot/data_storage.o ../.
./MatrixPilot/euler_angles.o ../../MatrixPilot/flightplan-logo.o ../../MatrixPil
ot/flightplan-waypoints.o ../../MatrixPilot/helicalTurnCntrl.o ../../MatrixPilot
/main.o ../../MatrixPilot/MAVLink.o ../../MatrixPilot/MAVParams.o ../../MatrixPi
lot/MAVMission.o ../../MatrixPilot/MAVFlexiFunctions.o ../../MatrixPilot/MAVUDBE
xtra.o ../../MatrixPilot/mode_switch.o ../../MatrixPilot/mp_osd.o ../../MatrixPi
lot/navigate.o ../../MatrixPilot/nv_memory_table.o ../../MatrixPilot/parameter_t
able.o ../../MatrixPilot/pitchCntrl.o ../../MatrixPilot/rollCntrl.o ../../Matrix
Pilot/servoMix.o ../../MatrixPilot/servoPrepare.o ../../MatrixPilot/states.o ../
../MatrixPilot/telemetry.o ../../MatrixPilot/yawCntrl.o -lws2_32
gcc -c -pipe -Wall -W -O0 -DWIN=1 -I. -I../../libUDB -I../../libDCM -I../../Matr
ixPilot -o SILcat.o SILcat.c
gcc -o silcat.exe  ../HILSIM_XPlane/UDBSocketWin.o SILcat.o -lws2_32
c:/mingw/bin/../lib/gcc/mingw32/4.9.3/../../../libmingw32.a(main.o):(.text.start
up+0xa7): undefined reference to `WinMain@16'

collect2.exe: error: ld returned 1 exit status
make: *** [silcat.exe] Error 1

D:\mp_sil\Tools\MatrixPilot-SIL>


On commit 2b5fcfb I runt matrixpilot and obtain this:

...
...
SILcat.c:107:4: warning: 'usleep' is deprecated (declared at c:\mingw\include\un
istd.h:126) [-Wdeprecated-declarations]
    usleep(1000);
    ^
gcc -o silcat.exe  ../HILSIM_XPlane/UDBSocketWin.o SILcat.o -lws2_32

D:\mp_sil\Tools\MatrixPilot-SIL>matrixpilot

MatrixPilot SIL

1/2/3/4 = mode manual/stabilized/waypoint/signal-lost
w/s     = throttle up/down
a/d     = rudder left/right
i/k     = elevator forward/back
j/l     = aileron left/right

z       = zero the sticks
L       = toggle LEDs
0       = toggle RC Radio connection on/off
r       = reset
?       = show this help message

INIT: Calibrating...
INIT: sensors calibrated and trims recorded.
INIT: waiting for GPS...


There is some missing message:

init_states()

startS()

calib_timer 0  

ent_acquiringS

why?


Peter Hollands

unread,
Mar 29, 2016, 4:22:52 AM3/29/16
to uavdevboard
Those messages only appear if USE_DEBUG_IO is enabled in options.h .

init_states()

startS()

calib_timer 0  

ent_acquiringS

will only appear if you have this line set in options.h, which provides some debug output.

Best wishes, Pete


Leonardo Garberoglio

unread,
Mar 29, 2016, 6:05:35 PM3/29/16
to uavde...@googlegroups.com
I can build 2b5fcfb commit but not with last commit of MatrixPilot_wjp_helicalTurns

So I'm preparin an old laptop with Debian and try it again.
Who are working on *nix SO?

Thank

Robert Dickenson

unread,
Mar 29, 2016, 6:42:17 PM3/29/16
to uavdevboard
I recommend working with master for the SILSIM building. It should have everything wjp_helicalTurns has (without any options enabled, should be the same), and it's the version i've been testing the most - and i know it currently builds, at least under *nix

Leonardo Garberoglio

unread,
Mar 30, 2016, 7:30:16 AM3/30/16
to uavde...@googlegroups.com
Robert, how are you?

I can't compile SILSIM on master. Do I need to make changes on options.h to get SILSIM?

The errors are this:

SIL-ui-mp-term.o:SIL-ui-mp-term.c:(.text+0x714): undefined reference to `flightp
lan_live_received_byte'
SIL-ui-mp-term.o:SIL-ui-mp-term.c:(.text+0x720): undefined reference to `flightp
lan_live_received_byte'
SIL-ui-mp-term.o:SIL-ui-mp-term.c:(.text+0x72c): undefined reference to `flightp
lan_live_received_byte'
SIL-ui-mp-term.o:SIL-ui-mp-term.c:(.text+0x738): undefined reference to `flightp
lan_live_received_byte'
SIL-ui-mp-term.o:SIL-ui-mp-term.c:(.text+0x73d): undefined reference to `flightp
lan_live_commit'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x24a): undefined reference
to `GPSlocation'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x264): undefined reference
to `GPSlocation'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x27e): undefined reference
to `GPSlocation'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x298): undefined reference
to `GPSvelocity'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x2b2): undefined reference
to `GPSvelocity'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x2cc): undefined reference
to `GPSvelocity'
../../libDCM/deadReckoning.o:deadReckoning.c:(.text+0x3c8): undefined reference
to `hilsim_airspeed'
../../libDCM/estAltitude.o:estAltitude.c:(.text+0x32): undefined reference to `a
lt_origin'
../../libDCM/estLocation.o:estLocation.c:(.text+0x9): undefined reference to `la
t_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0xe): undefined reference to `la
t_origin'
../../libDCM/estLocation.o:estLocation.c:(.text+0x43): undefined reference to `c
os_lat'
../../libDCM/estLocation.o:estLocation.c:(.text+0x4c): undefined reference to `l
on_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x51): undefined reference to `l
on_origin'
../../libDCM/estLocation.o:estLocation.c:(.text+0x8e): undefined reference to `a
lt_sl_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x93): undefined reference to `a
lt_origin'
../../libDCM/estLocation.o:estLocation.c:(.text+0xda): undefined reference to `c
og_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x124): undefined reference to `
sog_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x13c): undefined reference to `
climb_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x1d2): undefined reference to `
actual_dir'
../../libDCM/estLocation.o:estLocation.c:(.text+0x1e2): undefined reference to `
sog_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x1f0): undefined reference to `
ground_velocity_magnitudeXY'
../../libDCM/estLocation.o:estLocation.c:(.text+0x1f7): undefined reference to `
sog_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x204): undefined reference to `
climb_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x212): undefined reference to `
GPSvelocity'
../../libDCM/estLocation.o:estLocation.c:(.text+0x219): undefined reference to `
climb_gps'
../../libDCM/estLocation.o:estLocation.c:(.text+0x226): undefined reference to `
actual_dir'
../../libDCM/estLocation.o:estLocation.c:(.text+0x23b): undefined reference to `
ground_velocity_magnitudeXY'
../../libDCM/estLocation.o:estLocation.c:(.text+0x256): undefined reference to `
GPSvelocity'
../../libDCM/estLocation.o:estLocation.c:(.text+0x25d): undefined reference to `
actual_dir'
../../libDCM/estLocation.o:estLocation.c:(.text+0x272): undefined reference to `
ground_velocity_magnitudeXY'
../../libDCM/estLocation.o:estLocation.c:(.text+0x28d): undefined reference to `
GPSvelocity'
../../libDCM/estLocation.o:estLocation.c:(.text+0x2b2): undefined reference to `
GPSlocation'
../../libDCM/estLocation.o:estLocation.c:(.text+0x2c4): undefined reference to `
GPSlocation'
../../libDCM/estLocation.o:estLocation.c:(.text+0x2d6): undefined reference to `
GPSlocation'
../../libDCM/estLocation.o:estLocation.c:(.text+0x2fb): undefined reference to `
GPSvelocity'
../../libDCM/estLocation.o:estLocation.c:(.text+0x313): undefined reference to `
GPSvelocity'
../../libDCM/estLocation.o:estLocation.c:(.text+0x32b): undefined reference to `
GPSvelocity'
../../libDCM/estLocation.o:estLocation.c:(.text+0x343): undefined reference to `
hilsim_airspeed'
../../libDCM/estLocation.o:estLocation.c:(.text+0x349): undefined reference to `
air_speed_3DGPS'
../../libDCM/estLocation.o:estLocation.c:(.text+0x359): undefined reference to `
calculated_heading'
../../libDCM/estLocation.o:estLocation.c:(.text+0x363): undefined reference to `
air_speed_magnitudeXY'
../../libDCM/estLocation.o:estLocation.c:(.text+0x36a): undefined reference to `
air_speed_3DGPS'
../../libDCM/estLocation.o:estLocation.c:(.text+0x384): undefined reference to `
forward_acceleration'
../../libDCM/estLocation.o:estLocation.c:(.text+0x38b): undefined reference to `
air_speed_3DGPS'
../../libDCM/estWind.o:estWind.c:(.text+0x22): undefined reference to `GPSveloci
ty'
../../libDCM/estWind.o:estWind.c:(.text+0x2d): undefined reference to `GPSveloci
ty'
../../libDCM/estWind.o:estWind.c:(.text+0x38): undefined reference to `GPSveloci
ty'
../../libDCM/estWind.o:estWind.c:(.text+0x292): undefined reference to `hilsim_a
irspeed'
../../libDCM/estYawDrift.o:estYawDrift.c:(.text+0x70): undefined reference to `a
ir_speed_magnitudeXY'
../../libDCM/estYawDrift.o:estYawDrift.c:(.text+0x7d): undefined reference to `a
ctual_dir'
../../libDCM/estYawDrift.o:estYawDrift.c:(.text+0x97): undefined reference to `a
ctual_dir'
../../libDCM/estYawDrift.o:estYawDrift.c:(.text+0xba): undefined reference to `c
alculated_heading'
../../libDCM/estYawDrift.o:estYawDrift.c:(.text+0xd4): undefined reference to `c
alculated_heading'
../../libDCM/gpsParseCommon.o:gpsParseCommon.c:(.text+0x107): undefined referenc
e to `gps_data_age'
../../libDCM/gpsParseCommon.o:gpsParseCommon.c:(.text+0x114): undefined referenc
e to `gps_data_age'
../../libDCM/gpsParseCommon.o:gpsParseCommon.c:(.text+0x11d): undefined referenc
e to `gps_data_age'
../../libDCM/gpsParseCommon.o:gpsParseCommon.c:(.text+0x124): undefined referenc
e to `gps_data_age'
../../libDCM/gpsParseCommon.o:gpsParseCommon.c:(.text+0x193): undefined referenc
e to `gps_data_age'
../../libDCM/gpsParseCommon.o:gpsParseCommon.c:(.text+0x1ed): more undefined ref
erences to `gps_data_age' follow
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb24): undefined reference to `
week_no'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb30): undefined reference to `
svs'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb42): undefined reference to `
week_no'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb4c): undefined reference to `
tow'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb56): undefined reference to `
lat_gps'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb60): undefined reference to `
lon_gps'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb80): undefined reference to `
alt_sl_gps'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb8d): undefined reference to `
sog_gps'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xb9a): undefined reference to `
hilsim_airspeed'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xbbb): undefined reference to `
cog_gps'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xbca): undefined reference to `
climb_gps'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xbee): undefined reference to `
hdop'
../../libDCM/gpsParseUBX.o:gpsParseUBX.c:(.text+0xbfa): undefined reference to `
svs'
../../libDCM/libDCM.o:libDCM.c:(.text+0x174): undefined reference to `lat_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x17c): undefined reference to `lon_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x184): undefined reference to `alt_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x18b): undefined reference to `lat_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x1b1): undefined reference to `cos_lat'
../../libDCM/libDCM.o:libDCM.c:(.text+0x1ca): undefined reference to `lat_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x1f3): undefined reference to `cos_lat'
../../libDCM/libDCM.o:libDCM.c:(.text+0x1fe): undefined reference to `lon_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x25c): undefined reference to `lat_origin
'
../../libDCM/libDCM.o:libDCM.c:(.text+0x26c): undefined reference to `lon_origin
'
../../libDCM/rmat.o:rmat.c:(.text+0x21a): undefined reference to `air_speed_3DGP
S'
../../libDCM/rmat.o:rmat.c:(.text+0x23e): undefined reference to `air_speed_3DGP
S'
../../libDCM/rmat.o:rmat.c:(.text+0x287): undefined reference to `air_speed_3DGP
S'
../../libDCM/rmat.o:rmat.c:(.text+0x2d2): undefined reference to `forward_accele
ration'
../../libDCM/rmat.o:rmat.c:(.text+0x739): undefined reference to `ground_velocit
y_magnitudeXY'
../../MatrixPilot/config.o:config.c:(.text+0x29): undefined reference to `ini_ge
tbool'
../../MatrixPilot/config.o:config.c:(.text+0x6c): undefined reference to `ini_ge
tbool'
../../MatrixPilot/config.o:config.c:(.text+0xaf): undefined reference to `ini_ge
tbool'
../../MatrixPilot/config.o:config.c:(.text+0xf2): undefined reference to `ini_ge
tbool'
../../MatrixPilot/config.o:config.c:(.text+0x132): undefined reference to `ini_g
etbool'
../../MatrixPilot/config.o:config.c:(.text+0x172): more undefined references to
`ini_getbool' follow
../../MatrixPilot/config.o:config.c:(.text+0x1f8): undefined reference to `ini_g
etl'
../../MatrixPilot/config.o:config.c:(.text+0x23d): undefined reference to `ini_g
etl'
../../MatrixPilot/config.o:config.c:(.text+0x280): undefined reference to `ini_g
etbool'
../../MatrixPilot/config.o:config.c:(.text+0x2ce): undefined reference to `ini_g
etf'
../../MatrixPilot/config.o:config.c:(.text+0x301): undefined reference to `ini_g
etf'
../../MatrixPilot/config.o:config.c:(.text+0x334): undefined reference to `ini_g
etf'
../../MatrixPilot/config.o:config.c:(.text+0x367): undefined reference to `ini_g
etf'
../../MatrixPilot/config.o:config.c:(.text+0x39a): undefined reference to `ini_g
etf'
../../MatrixPilot/config.o:config.c:(.text+0x3cd): more undefined references to
`ini_getf' follow
../../MatrixPilot/config.o:config.c:(.text+0xad7): undefined reference to `ini_p
utf'
../../MatrixPilot/config.o:config.c:(.text+0xb00): undefined reference to `ini_p
utf'
../../MatrixPilot/config.o:config.c:(.text+0xb29): undefined reference to `ini_p
utf'
../../MatrixPilot/config.o:config.c:(.text+0xb52): undefined reference to `ini_p
utf'
../../MatrixPilot/config.o:config.c:(.text+0xb7b): undefined reference to `ini_p
utf'
../../MatrixPilot/config.o:config.c:(.text+0xba4): more undefined references to
`ini_putf' follow
../../MatrixPilot/flightplan-logo.o:flightplan-logo.c:(.text+0x6): undefined ref
erence to `waypointIndex'
../../MatrixPilot/flightplan-logo.o:flightplan-logo.c:(.text+0xa0b): undefined r
eference to `ground_velocity_magnitudeXY'
../../MatrixPilot/flightplan-logo.o:flightplan-logo.c:(.text+0xa17): undefined r
eference to `air_speed_magnitudeXY'
../../MatrixPilot/flightplan-logo.o:flightplan-logo.c:(.text+0x182c): undefined
reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x18f): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x1f9): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x277): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x281): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x359): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x360): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x4fb): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x505): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x54c): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x5a8): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x682): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x68b): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x692): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x6a5): m
ore undefined references to `waypointIndex' follow
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x6d3): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x6dd): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x78c): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x796): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x86f): u
ndefined reference to `waypointIndex'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x8d0): u
ndefined reference to `GPSlocation'
../../MatrixPilot/flightplan-waypoints.o:flightplan-waypoints.c:(.text+0x8da): u
ndefined reference to `GPSlocation'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x12b): undefined reference to `u
se_fixed_origin'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x13a): undefined reference to `g
et_fixed_origin'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x15b): undefined reference to `a
lt_sl_gps'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x161): undefined reference to `l
at_gps'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x166): undefined reference to `l
on_gps'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x295): undefined reference to `f
lightplan_update'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x5ac): undefined reference to `c
alculated_heading'
../../MatrixPilot/navigate.o:navigate.c:(.text+0x5d8): undefined reference to `a
ir_speed_magnitudeXY'
../../MatrixPilot/states.o:states.c:(.text+0x18): undefined reference to `gps_da
ta_age'
../../MatrixPilot/states.o:states.c:(.text+0x37d): undefined reference to `fligh
tplan_begin'
../../MatrixPilot/states.o:states.c:(.text+0x434): undefined reference to `fligh
tplan_begin'

collect2.exe: error: ld returned 1 exit status
make: *** [matrixpilot.exe] Error 1

E:\MP_SIL\Tools\MatrixPilot-SIL>

I try with VC project on master and I get this error:

Error    8    error C1083: No se puede abrir el archivo código fuente: '..\..\libFlashFS\minIni.c': No such file or directory    E:\MP_SIL\Tools\MatrixPilot-SIL\c1    MatrixPilot-SIL


that file is on MatrixPilot folder, not on libFlashFS...

regards

Robert Dickenson

unread,
Mar 30, 2016, 8:12:40 AM3/30/16
to uavdevboard
Please try do a git pull and then try running the project generator: proj_gen.bat

If that is successful you should find ./_build/MatrixPilot-SIL-Cessna.vcxproj

Which I've just managed to build the SILSIM executable with Visual C++ 2010 Express.

Leonardo Garberoglio

unread,
Mar 30, 2016, 1:28:07 PM3/30/16
to uavde...@googlegroups.com
Robert, thak you very much. I can compile, run and flight on SILSIM with X-Plane.
I would like to test skywalker plane, like Peter videos. Is it possible? I saw that you have Cessna and CloudFly planes projects.
What will be the next step?

Leonardo Garberoglio

unread,
Mar 30, 2016, 6:53:46 PM3/30/16
to uavde...@googlegroups.com
I'm sorry, I mean EasyStart plane.

Robert Dickenson

unread,
Mar 30, 2016, 7:18:56 PM3/30/16
to uavdevboard
The build with Cessna options is what I use for SILSIM/HILSIM testing with X-Plane (as I use the Cessna-172 model).

The CloudsFly options are for my hobbyking foamy which I wish to test fly with MP some day. If you are going to try an r/c plane model in x-plane, then you will probably want to base it on the CloudsFly configuration.

There is no longer any need to change any configuration options for builds between SILSIM and a real model. If however you wish to build for HILSIM, then a define can be provided in either the project generator script or the makefile build system.

Leonardo Garberoglio

unread,
Mar 30, 2016, 8:38:29 PM3/30/16
to uavde...@googlegroups.com
Ok, I understand.
What are the purpose of several options.h on /MatrixPilot/example-options-files ?

So, what will be next steps on the way to get my board tested?
I think on play a litle with SILSIM, try to make a flight plan on my aeroclub coordinate. and try to see how stabilized mode and helical turn works.
I saw on the wiki that I could connect UDB board and use my Tx transmiter to fly on X-Plane while using SILSIM. Is that right?



Robert Dickenson

unread,
Mar 31, 2016, 12:14:28 AM3/31/16
to uavdevboard
The example-options-files are deprecated and in most of my branches they have been removed. They may however still be a useful reference source for choosing gains for various airframes.

I've never tried hooking up a transmitter to control x-plane. Indeed for most of my work, I focussed more on getting things to a level where as much testing as possible could be done without having hardware on hand.

In my later version of the X-Plane HILSIM plugin I also added the ability to provide keyboard input flight controls whilst the xplane window has the focus. I found this more user friendly than having to have the silsim window in the foreground, and it also supported a shift towards having the simsil console window much more closely resemble the functionality of a true terminal connection to a real board using the console features.
Reply all
Reply to author
Forward
0 new messages