TrekkingPhoenix / Mbed 2 deprecated TrekkingControllerV1-4_WinterChallenge20

Dependencies:   mbed mbed-rtos MotionSensor EthernetInterface

Revision:
8:a1067fcde341
Parent:
0:88faaa1afb83
diff -r 27516a2b504b -r a1067fcde341 Protocol/receiver.cpp
--- a/Protocol/receiver.cpp	Sun Apr 17 01:07:25 2016 +0000
+++ b/Protocol/receiver.cpp	Sat Apr 23 03:55:39 2016 +0000
@@ -61,3 +61,8 @@
 	*n = get_pid_param(serial);
 }
 
+void get_jog_vel(Serial& serial, float* period, float* ratio)
+{
+	*period = get_param(serial, JOG_VEL_PERIOD_MIN, JOG_VEL_PERIOD_MAX);
+	*ratio = get_param(serial, JOG_VEL_RATIO_MIN, JOG_VEL_RATIO_MAX);
+}
\ No newline at end of file