SJTU-ViSYS-team / VisFly

This is a fast and versatile simulator for training vision-based flight of drones.
MIT License
27 stars 1 forks source link

patch array indexing #7

Closed cmakelabs closed 1 month ago

cmakelabs commented 1 month ago

array t is one dimensional, however we are trying to access it as if it has two dimensions, I fixed this issue, by just handling the array t dynamically based on its dimension. If t is guaranteed to be single dimensional then further check is not needed.