
Re: Dexter Gyro + JoystickDriver.c problem
Ok thanks I've updated to the new segway-driver-lv.h just to be sure but it doesn't make a difference for my problem (the differences are small).
There is no error on the NXT screen, just "Segway-NoAction Running" and very shortly after "Segway-NoAction Done". The motors don't move at all.
I suppose you're referring to the official Dexter Gyro tests. This works ! I've added #include "JoystickDriver.c" to DIMU-test1.c and was able to read the Gyro sensor off the NXT screen.
So indeed the problem seems to be the #include "segway-driver-lv.h" with StartTask(balancing); which starts up another task.
JoystickDriver.c doesn't include any file
"JoystickDriver.c" starts up its own task automatically by doing that:
So yeah the problem comes from 2 tasks starting at the same time. Maybe I could unify these 2 tasks into 1 ? I would need to understand how both work a bit better though, it's not obvious.
Any ideas ?
Thanks !