My team is a 4H team which means that we often have limited time and resources. We feel lucky we even got to work this season! We are in our third year but we are still learning basic Java and even some of the basics of the robot. This season we wanted to use the camera for ring detection and the IMU. Two different programmers were tasked with creating tests based on the sample code and then we combined the code. In our combined code the IMU turn(), turnLeft() and turnRight() methods are not working. We DO get a Yaw angle reading but setting power to the motors does nothing. We do realize that we don't need all three turn methods but our programmer who was playing with the IMU wrote all three. =)
Autonomous with Camera and IMU
The yaw angle is being returned in turn(), turnLeft() and turnRight() but the motors are not moving.
https://gist.github.com/soulreverie/...1473bb6abf748d
Autonomous with IMU
Program is working.
https://gist.github.com/soulreverie/...a2c5d47585581d
What are we missing?? Any insight or help would be appreciated. While we can use our driveBot() method for turns, we were really hoping to use our new IMU based methods!
Autonomous with Camera and IMU
The yaw angle is being returned in turn(), turnLeft() and turnRight() but the motors are not moving.
https://gist.github.com/soulreverie/...1473bb6abf748d
Autonomous with IMU
Program is working.
https://gist.github.com/soulreverie/...a2c5d47585581d
What are we missing?? Any insight or help would be appreciated. While we can use our driveBot() method for turns, we were really hoping to use our new IMU based methods!
Comment