RPI Headless operation question
Posted: Tue Mar 04, 2014 12:32 pm
I use an RPI (headless) to control the copter with a wireless PS3 controller. Every time I want to fly it with the RPI I power the RPI up and I have to execute the following commands:
ssh bitcraze@IP address
then enter the password
then
sudo sixad --start
"Start" then prompts me to push the connect button on the PS3 controller and when I do the PS3 controller synchs to the bluetooth dongle. Since I run the RPI headless I'm not sure how I will know when it wants me to push start on the controller.
The question:
Is there a way to have the commands run at startup? Kind of like the old autoexec.bat files we used to have in the dark days of DOS? And is there a way that to know that it wants me to push the start button on the PS3 controller.
ssh bitcraze@IP address
then enter the password
then
sudo sixad --start
"Start" then prompts me to push the connect button on the PS3 controller and when I do the PS3 controller synchs to the bluetooth dongle. Since I run the RPI headless I'm not sure how I will know when it wants me to push start on the controller.
The question:
Is there a way to have the commands run at startup? Kind of like the old autoexec.bat files we used to have in the dark days of DOS? And is there a way that to know that it wants me to push the start button on the PS3 controller.