Wednesday, October 31, 2018

Suggestion for how to work on your own computer

This is just a note for those who want to work on their laptop/computer, but might not be able to compile the code on their own computer (for example because the compiler versions are different on the school system).

Run the following command to mount the file system on mathlab:

sshfs [your_utorid][at]mathlab.utsc.utoronto.ca:[absolute_path_to_directory_on_mathlab] mathlab

You should now have access to the file system from mathlab on your own computer.

You will need to ssh into mathlab to compile the files, but you can edit and run/test them on your own machine.

Saturday, October 20, 2018

Gyro bug fix

Thanks again to students for reporting bugs.

There is an issues with gyro giving weird readings in certain ranges. To fix this:
in btcomm.c change starting on line 1256 change the casts to (unsigned char) from (int32_t).

Seg fault on calibration

If your code segfaults on calibration it is because a socket has not been created to the EV3 brick yet where the comment indicates that you should write your calibration code. Make sure you call any calibration code after line 164 when a socket has been opened.

Tuesday, October 16, 2018

Rebooting the EV3

If your EV3 freezes, you can reboot it by pressing the combination of left, center and back buttons.

A note about gyro sensor

Just a quick note, make sure the robot is perfectly still when the robot is booting to allow the gyro to calibrate properly. Also place the gyro at the center of rotation.

I would recommend, after starting the robot, go to Port View on the EV3 brick, find the gyro sensor and check the readings. If the reading is at 0 and stays at 0, it has been set up correctly. If the robot was moving during calibration the degrees will increment indefinitely. In this case, you should reboot and make sure the robot stays completely still.

Friday, October 12, 2018

Fix for BT_motor_port_start

Thanks to one of the teams for pointing out a bug in the BT_motor_port_start call. To fix, on line 273 change the type from 0x80 to 0x00.