Android application and ROS Node for gyroscope-based quadcopter remote control in MAVROS.
For Bayucaraka's Internship Final Project.
- Download and install the Android Studio program in your computer
- Copy the "gyroapp" folder into your AndroidStudioProjects folder
- Connect your phone through an USB cable
- Allow debuging on your phone by enabling its developer options
- Wait until your phone to be recognized by Android Studio
- Click run and wait for the application to install on your phone
- Download the 'gyroapp-debug.apk' on your phone
- Depending on your phone, you have to allow 'Unknown Sources' to install application outside from Google Play Store
- Install the APK and ignore whatever warning your phone might throw at you
- First enter your address and port with whichever host you want to connect to the MAVROS then press the connect button. Make sure the inputted port matches the port in the tcpcommander.cpp file (It's 8888 by default)
- Hold on the clutch and mantain your phone orientation until the quadcopter arms itself
- Slide on the clutch to change the quadcopter linear x velocity. Tilt the phone to change the quadcopter linear z velocity. Roll the phone to change the quadcopter linear y velocity. Rotate the phone to change the quadcopter yaw rate.
- Hold on the clutch to maintain the command, or let it go to reset the commands.
- Create a ROS workspace if there isn't any
- Move the gyroreciever folder into the workspace src/ folder
- Open the terminal in your workspace folder
- Enter
catkin makeinto the terminal - Enter
source devel/setup.bashinto the terminal - Enter
rosrun gyroreader tcpcommanderinto the terminal