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.
Fork of mbed_amf_controlsystem by
Diff: main.cpp
- Revision:
- 9:46c42975a0dc
- Parent:
- 8:33b8899a8dad
- Parent:
- 6:aa27bc8c58f5
- Child:
- 11:8b79f6545628
--- a/main.cpp Thu Feb 04 17:48:22 2016 +0000 +++ b/main.cpp Thu Feb 04 17:52:23 2016 +0000 @@ -100,7 +100,7 @@ l_PWM=2000; } - drivePWM.pulsewidth_us(l_PWM); + drivePWM.pulsewidth_us(1700); } void redirect_quadrature_controller(void const *args) { @@ -117,7 +117,7 @@ SupportSystem *supportSystem = new SupportSystem(0x80, &i2c); - quadratureController = new QuadratureController(&steerPWM); + quadratureController = new QuadratureController(&steerPWM, &quadrature_queue, &imu_queue_steering_angle); Thread machineDirectionControl(serial_thread); @@ -141,7 +141,7 @@ wait(0.1); - steering_angle_minnow_queue = 0.0; + steering_angle_minnow_queue = 10.0; quadrature_queue.put(&steering_angle_minnow_queue); velocity_minnow_queue = 1.5;