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

Motor movement failed with #52

Open
DBAjust115 opened this issue Jan 5, 2021 · 2 comments
Open

Motor movement failed with #52

DBAjust115 opened this issue Jan 5, 2021 · 2 comments

Comments

@DBAjust115
Copy link

The odrive arduinotest test can run the motor successfully. After burning the whole file, the test cannot be carried out (I tested a single odrive with two motors, without IMU module). Is it possible that the IMU module needs to be added?

@ducktrA
Copy link

ducktrA commented Mar 4, 2021

Hi i am chasing you and just flash the teensy. I dont have the solution. But you are not alone.

@ducktrA
Copy link

ducktrA commented Mar 12, 2021

@DBAjust115 how did you compile the Odrive? Did you use an older toolchain?

I am running into a problem when using std::enable_if

    1. arm-none-eabi-g++ -std=c++14 -c communication/communication.cpp -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=5 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_ASCII -D__weak="attribute((weak))" -D__packed="attribute((packed))" -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wfloat-conversion -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fno-finite-math-only -IDrivers/DRV8301 -IMotorControl -Ifibre/cpp/include -I. -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -I. -IDrivers/DRV8301 -o build/communication_communication.cpp.o
      In file included from /usr/include/newlib/c++/9.2.1/bits/move.h:55,
      from /usr/include/newlib/c++/9.2.1/bits/stl_function.h:60,
      from /usr/include/newlib/c++/9.2.1/functional:49,
      from communication/communication.h:9,
      from communication/communication.cpp:4:
      /usr/include/newlib/c++/9.2.1/type_traits: In substitution of 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = (0 == 1); _Tp = void]':
      fibre/cpp/include/fibre/protocol.hpp:948:5: required from 'class ProtocolFunction<Controller, std::tuple<float, float, float>, std::tuple<> >'
      MotorControl/controller.hpp:158:39: required from here
      /usr/include/newlib/c++/9.2.1/type_traits:2384:11: error: no type named 'type' in 'struct std::enable_if<false, void>'
      2384 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      | ^~~~~~~~~~~
      *** tup messages ***
      *** Command ID=526 failed with return value 1
      [ ETA~=<1s ] 71%
      *** tup: 10 jobs failed.
      make: *** [Makefile:14: all] Error 1

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

2 participants