Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Once the sensors lock onto the beacon, how do I determine the angle of the infrared sensors with respect to the beacon so that I can calculate the distance and heading to the beacon?

0
Posted

Once the sensors lock onto the beacon, how do I determine the angle of the infrared sensors with respect to the beacon so that I can calculate the distance and heading to the beacon?

0

You first check to see if the two trackers are locked-on to the beacon and then using the current commanded servo motor positions, you should be able to calculate a heading and distance to the beacon. An example of how to do this is documented in frc_tracker.zip / user_routines_fast.c / Process_Data_From_Local_IO(): if ((Tracker_Data[LEFT].Status == BOTH_IN_VIEW) && (Tracker_Data[RIGHT].Status == BOTH_IN_VIEW)) { // both trackers have an angular solution; calculate beacon vector // here using the known baseline distance between the trackers and // angles derived from the two Tracker_Data[].

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123