From 728402ed30b7de902f61cdb6d3d989265883bd93 Mon Sep 17 00:00:00 2001 From: shrkey Date: Mon, 17 Oct 2016 19:03:46 +0100 Subject: [PATCH] example scripts --- escapecplusplus.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/escapecplusplus.md b/escapecplusplus.md index 0f9505d..f4b0966 100644 --- a/escapecplusplus.md +++ b/escapecplusplus.md @@ -60,11 +60,35 @@ Once it is compiled you can run it with the command: $ sudo ./Servo ``` - ##### PPM +The PPM example will read the input from a PPM radio control receiver connected to the CPPM header on the ESCAPE board, interpret the first 6 channels and move the corresponding servos. + +To build this demo type the following: + +``` bash +$ cd ./PPM +$ make +``` + +Once compiled, attach your CPPM receiver to the CPPM connector (see here CPPM set up) and run the program - you will see the output for each channel on the screen as it runs. Attaching servos to the Servo rail will allow you to control them individually by moving the sticks on your RC transmitter. + +``` bash +$ sudo ./PPM +``` + ##### AccelGyroMag +If you have a 9DoF expansion board on your ESCAPE board or are using a SOAR board then this example will read and output the Gyroscope, Accelerometer and Compass readings. + +To compile and run it, type the following + +``` bash +$ cd ./AccelGyroMag +$ make +$ sudo ./AccelGyroMag +``` + ### Drive a motor ### Motor speed ### Servo control