From 475c9d6d23b5afbadd4378be64336e2b3102ea2b Mon Sep 17 00:00:00 2001 From: Brendan Bartels <bbartels@iastate.edu> Date: Tue, 28 Mar 2017 07:40:29 -0500 Subject: [PATCH] quad: Add instructions for using PWM signals on the virtual quad --- quad/src/virt_quad/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/quad/src/virt_quad/README.md b/quad/src/virt_quad/README.md index e7789797a..3607ec44c 100644 --- a/quad/src/virt_quad/README.md +++ b/quad/src/virt_quad/README.md @@ -14,4 +14,11 @@ make run ``` And you can do things with it. You'll notice it will make a bunch of FIFOs in -the current directory. Write to / read from these FIFOs as you see fit. \ No newline at end of file +the current directory. Write to / read from these FIFOs as you see fit. + +## Writing to FIFO from shell + +``` +echo "170000" > virt-quad-fifos/pwm-input-gear # Setting the gear to '1' +cat virt-quad-fifos/pwm-output-motor1 # Read the motor 1 pwm signal +``` \ No newline at end of file -- GitLab