BGA
Second Officer
United States
Offline
|
yelzcammy Posted at 6-25 19:29
I finially found this thread, and I think it's very clear https://forum.dji.com/forum.php?mod=viewthread&tid=199781
.
The only IR sensors in the S1 are in the gimbal , so it may be impossible to get the accurate direction, as BGA said "the S1 most likely just uses the angle of incidence and which sensor was triggered to figure out direction."
Actually, there might be something you can do now:
When you add the IR detection block in Scratch and switch to python, you can see that it is using the following function to process hits:
ir_hit_detection_event
Looking at the source code, it looks like there are 2 other functions you could use (I did not test it):
ir_hit_detection_top_left
ir_hit_detection_top_right
These should be called when the left or right sensors detect a hit so at least you have an idea of what side the hit came from. It might even be that this is all the RoboMaster does in the end and there is no attempt at figuring out the exact origin of the IR.
|
|