DIT113-V22 / group-02

MIT License
2 stars 1 forks source link

Addition of birdseye camera #64 #105

Closed Gabri1998 closed 2 years ago

Gabri1998 commented 2 years ago

Added new camera above the car to provide a birdseye view to the user. A toggle button was added to the android applicaiton to allow the user to easily switch between the two cameras. The UI was also updated in accordance with the overall theme of the application

:ballot_box_with_check: Definition of Done checklist

adityak714 commented 2 years ago

Despite commits trying to fix the arduino.yml, the Arduino tests are failing for some reason, but the SMCE is still able to compile successfully. The CI mentioned that the OV767X does not name a type during its declaration. What does that mean? Please help @platisd @RuthgerD @AeroStun

AeroStun commented 2 years ago

What does that mean?

@adityak714 it means that the CI doesn't know about the camera (spoiler alert, it can't because the smartcar chipset isn't supported by that camera library), so you need to conditionally compile the camera code when on SMCE. See the sample controller app for reference.

adityak714 commented 2 years ago

conditionally compile the camera code when on SMCE

I did that, but I somehow had to introduce a second camera. I had #ifdef __SMCE__ < import OV767X.h > #endif, but I think there was a preset variable called Camera, not declared explicitly in the sketch itself but still recognized by Arduino. Now, that's not the only one I wanted, and had to create a new instance of the camera called Birdseye, in our case. Maybe the way it is declared is wrong....?