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: Gamepad/Gamepad.cpp
- Revision:
- 128:a3f581b8461c
- Parent:
- 54:095eae44895b
--- a/Gamepad/Gamepad.cpp Sun May 05 15:33:46 2019 +0000
+++ b/Gamepad/Gamepad.cpp Mon May 06 00:11:06 2019 +0000
@@ -24,7 +24,7 @@
_vert(new AnalogIn(PTB10)),
_horiz(new AnalogIn(PTB11)),
-
+
_buzzer(new PwmOut(PTC10)),
_pot(new AnalogIn(PTB2)),
@@ -149,7 +149,7 @@
}
}
-// this method gets the nitude of the joystick movement
+// this method gets the magnitude of the joystick movement
float Gamepad::get_mag()
{
Polar p = get_polar();