Reply To: Preparations for GyroBot

HomeForumsMonoBrick EV3 FirmwarePreparations for GyroBotReply To: Preparations for GyroBot

#3805
Author Image
Jacek S
Participant

Hi Martin,
I’m interested in writing GyroBoy program too. Now I’m only waiting for my wifi dongle.
I have read your post, and I think there are simplest approaches to do this program.
Maybe I’m wrong, but you are trying to think like in real-time os, but this is linux it is not real time.
You can’t specify timers and expect results in desired time. My approach is to think that is lego toy
not high precision robot. Program needs some simplifications, thread prioritization and other advanced thread managment functions are not needed.
Oryginal program is not ideal, I have found some bugs and glitches.

I don’t analyze all the tricky gyro stuff from oryginal program yet, but i have some initial
plan for my program:
- tasks with infinite loops for sensor sampling. Idle time (sleep) will determine sample rate.
- main thread with task handling loop
- priority queue for message handling.

I think I accomplish project in two weeks, then will share results/program with monobrick community.
PS
Sorry for my poor english.

Jacek

  • This reply was modified 3 years, 7 months ago by Author Image Jacek S.
Posted in

Make a donation