Forum Replies Created
-
AuthorPosts
-
actually i selected pluto v3r and i have pluto 1.2 and i was uploading a autotakeoff code of v3r in pluto1.2 after which the red led becomes high on and no response.
But as i tried uploading other codes it works.Its working with pluto blocks but when I upload a code with cygnus the pluto don’t respond the led stucks on red on
I’m facing same problem the drone is stuck on red led no response on app and cygnus when i upload code from pluto blocks it works but on cygnus no output
In sesame code inside pluto loop i have the query about it ,
As why those integers are taken and calculated are they a predefined terms or we can change it as per ownYeah thankyou so much for support it worked 🤘🏻
1.0.6.201808090838
Yes i did
I attached the screenshot of following
Im using windows ,while using some of libraries as i mentioned earlier its showing error
Im using windows while using some of libraries like utils.h & estimate.h its showing error
Windows
I have those documents already but the problem is the cygnus ide is showing error for user.h and estimate.h(unresolved inclusion)
Actually i was trying to use the codes from pdf but the api are different in code and in documents
I tried but not working
/*Do not remove the include below*/
#include “PlutoPilot.h”
#include “User.h”
#include “Utils.h”
/*The setup function is called once at Pluto’s hardware startup*/
void plutoInit()
{
/*Add your hardware initialization code here*/ }
/*The function is called once before plutoLoop when you activate Developer Mode*/
void onLoopStart()
{
/*do your one time tasks here*/
LED.flightStatus(DEACTIVATE); /*Disable default Led behavior*/
}/*The loop function is called in an endless loop*/
void plutoLoop()
{
/*Add your repeated code here*/
FlightMode.set(RATE); / *Change flight mode to Rate mode*/
LED.set(RED, ON); LED.set(BLUE, ON); LED.set(GREEN, OFF);
}
/*The function is called once after plutoLoop when you deactivate Developer Mode*/
void onLoopFinish()
{
/*do your cleanup tasks here*/
LED.flightStatus(ACTIVATE); /*Enable default Led behavior*/
}Phone clone :
/*Do not remove the include below*/
#include “PlutoPilot.h” #include “Control.h” #include “User.h” #include “Utils.h” #include “Estimate.h”
int16_t Error=0, PlutoXHeading=0;
/*The setup function is called once at Pluto’s hardware startup*/
void plutoInit()
{
/*Add your hardware initialization code here*/
}
/*The function is called once before plutoLoop when you activate Developer Mode*/
void onLoopStart()
{
/*do your one time tasks here*/
LED.flightStatus(DEACTIVATE); /*disablethedefaultLEDbehavior*/
Error = App.getAppHeading() – Angle.get(AG_YAW);
Monitor.println(“Error is: “, Error); }
/*The loop function is called in an endless loop*/
void plutoLoop()
{
/*Add your repeated code here*/
Monitor.println(“PhoneHeading: “, App.getAppHeading());
PlutoXHeading = App.getAppHeading() – Error; if (PlutoXHeading < 0){
PlutoXHeading+=360;
}
Monitor.println(“PlutoX should turn to “, PlutoXHeading);
DesiredAngle.set(AG_YAW, PlutoXHeading); Monitor.println(“PlutoX is at: “, Angle.get(AG_YAW));
LED.set(RED, ON);
LED.set(GREEN, ON); }
/*The function is called once after plutoLoop when you deactivate Developer Mode*/
void onLoopFinish()
{
/*do your cleanup tasks here*/
LED.flightStatus(ACTIVATE);
/*Enable the default LED behavior*/
} -
AuthorPosts