Hi, I tried to run the project “CHUCK TO ARM”, but it is not arming the drone as expected.
I have this code running in the plutoLoop() function:
int32_t acc = Acceleration.getNetAcc();
if(acc <2 && (!FlightStatus.check(FS_CRASHED)))
/*Condition for free fall*/
{
Monitor.println(“Free fall executed… “);
Command.arm();/*Arm the drone*/
Monitor.println(“Flight Status : “, FlightStatus.get());
}
It executes the code inside the if condition when I toss up pluto, but when I print the flight status it remains in the “FS_OK_TO_ARM” state and also in the pluto app the arm button remains as it is.
Kindly look into it.
Thank you
Hi Anupam,
In order for drone to arm you need to do make sure of the following:
On the app side, “ARM” button should be on the drone. This is done for safety purposes. Please try this and let me know if this works.
Hi Prasanna
Thank you for your reply. I tried as you said and it works.
But now even if I do not call the arm function the drone flies when I call the Command.takeoff() function. So what is the use of arm function? Why do I need to call it?
Thank you.
Author
Posts
Viewing 2 reply threads
You must be logged in to reply to this topic.
Cart
What are you looking for?
Hi, I am Plubo, your co-pilot. How can I assist you today?