Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Classes/NXPCam.h
- Revision:
- 0:8743b606abc3
- Child:
- 1:a9af73d5abd4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Classes/NXPCam.h Tue Feb 11 15:41:45 2020 +0000
@@ -0,0 +1,28 @@
+#ifndef NXPCAM_H
+#define NXPCAM_H
+
+#include "PIXY2.h"
+#include "Vector.h"
+
+#define SCREEN_CENTER 39.5f // resolution : 79 - 52
+#define INFO_NON_EXPLOITABLE 404
+
+class NXPCam
+{
+public:
+ NXPCam();
+
+ /* Fonction qui renvoie une valeur entre -100 et 100 (à peu près)
+ * correspondant à l'écart de trajectoire entre la piste et
+ * le milieu de l'écran de la Pixy.
+ * La valeur est positive lorsque la voiture est trop à droite
+ * et négative lorsqu'elle est trop à gauche */
+ int getDeviationTrajectoire();
+ int getNormeVecteurs();
+
+private:
+ PIXY2 pixy;
+ Vector v1, v2;
+};
+
+#endif // NXPCAM_H
\ No newline at end of file