-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Awaiting PRThis task is complete and just awaiting a pull request to get reviewed.This task is complete and just awaiting a pull request to get reviewed.Clean Up
Description
This is on the refactor branch.
I get a segfault when trying to run a program containing a motor function.
It occurs when calling the function WombatDevice::transfer
(gdb) backtrace
#0 0x76a2852c in WombatDevice::transfer(unsigned char const*, unsigned char*, unsigned int) () from /lib/libkipr.so
kipr/libwallaby#1 0x76a28254 in WombatDevice::w8(unsigned char, unsigned char) ()
from /lib/libkipr.so
kipr/libwallaby#2 0x76a26b4c in kipr::core::Platform::writeRegister8b(unsigned char, unsigned char) () from /lib/libkipr.so
kipr/libwallaby#3 0x76a4282c in kipr::motor::set_motor_mode(unsigned int, unsigned char) ()
from /lib/libkipr.so
kipr/libwallaby#4 0x76a3eb20 in move_at_velocity () from /lib/libkipr.so
kipr/libwallaby#5 0x76a3eb60 in mav () from /lib/libkipr.so
kipr/libwallaby#6 0x76a3efbc in motor () from /lib/libkipr.so
kipr/libwallaby#7 0x000105c8 in main ()
This is the file those last functions are defined in.
https://github.com/kipr/libwallaby/blob/refactor/module/core/src/device/wombat/wombat_device.cpp
I thought maybe it could be something wrong with the STM32 since I had some troubles with that earlier.
But analog functions are working fine so the communication with STM32 is not broken.
Metadata
Metadata
Assignees
Labels
Awaiting PRThis task is complete and just awaiting a pull request to get reviewed.This task is complete and just awaiting a pull request to get reviewed.Clean Up