Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is TDOA3 module test working now? #344

Closed
Huibean opened this issue Jul 3, 2018 · 5 comments
Closed

Is TDOA3 module test working now? #344

Huibean opened this issue Jul 3, 2018 · 5 comments
Milestone

Comments

@Huibean
Copy link

Huibean commented Jul 3, 2018

I am trying to exec runner.py there are a lot of ***.o file not found errors, I fixed that one by one by finally this so file stop me, I guess it's mock.c,
make: *** [../../generated-test/module-test/tdoa3/tester.so] Error 1

@ataffanel
Copy link
Member

Can you please describe a bit more what you are trying to do, how and what is failing in a bit more details?

@Huibean
Copy link
Author

Huibean commented Jul 3, 2018

Hi @ataffanel , I am trying to run tdoa3 module test

➜  crazyflie-firmware git:(master) ✗ cd module-test
➜  module-test git:(master) ✗ cd tdoa3
➜  tdoa3 git:(master) ✗ ls
Makefile  input     mocks     run.sh    runner.py
➜  tdoa3 git:(master) ✗ make
cc -shared -o ../../generated-test/module-test/tdoa3/tester.so ../../generated-test/module-test/tdoa3/lpsTdoaTagEngine.o ../../generated-test/module-test/tdoa3/outlierFilter.o ../../generated-test/module-test/tdoa3/mocks.o
ld: warning: ignoring file ../../generated-test/module-test/tdoa3/lpsTdoaTagEngine.o, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): ../../generated-test/module-test/tdoa3/lpsTdoaTagEngine.o
Undefined symbols for architecture x86_64:
  "_getAnchorCtxForPacketProcessing", referenced from:
      _callTdoaEngineProcessPacket in mocks.o
  "_tdoaEngineProcessPacket", referenced from:
      _callTdoaEngineProcessPacket in mocks.o
  "_tdoaEngineSetAnchorPosition", referenced from:
      _callTdoaEngineProcessPacket in mocks.o
  "_tdoaEngineSetRemoteRxTime", referenced from:
      _callTdoaEngineProcessPacket in mocks.o
  "_tdoaEngineSetRxTxData", referenced from:
      _callTdoaEngineProcessPacket in mocks.o
  "_tdoaEngineSetTimeOfFlight", referenced from:
      _callTdoaEngineProcessPacket in mocks.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [../../generated-test/module-test/tdoa3/tester.so] Error 1
➜  tdoa3 git:(master) ✗

@ataffanel
Copy link
Member

I am not sure how this is supposed to work since it was written by Kristoffer as an experiments and he is currently in vacation.
I get a different error when trying to build though. You are using clang so I assume you are on Mac, the code has always been compiled with GCC and maybe this is causing part of your problems.

@krichardsson
Copy link
Contributor

The module test is highly experimental and should probably not have been committed yet. The idea is to compile and link a few C files from the firmware source code into a lib that can be called from python on a PC. The files that are tested should make up a "module", for instance the TDoA 3 engine, that can be tested on a higher level than unit tests do.
I will remove it or clean it up and make it an integral part of the automated tests.

@Huibean
Copy link
Author

Huibean commented Aug 6, 2018

@ataffanel @krichardsson ok, get it

@Huibean Huibean closed this as completed Aug 6, 2018
@krichardsson krichardsson added this to the next-version milestone Aug 14, 2018
cafeciaojoe pushed a commit to cafeciaojoe/crazyflie-firmware that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants