Search found 159 matches

by RyanMco
Thu Nov 28, 2019 9:50 am
Forum: Developer discussions
Topic: [RESOLVED] Understanding function
Replies: 10
Views: 22769

Re: Understanding function

NOW I understand you very well, I didn't figure out that the struct planner is initiated by plan_init ! thanks .. moreover, this function: struct traj_eval plan_current_goal(struct planner *p, float t) { switch (p->state) { case TRAJECTORY_STATE_LANDING: if (plan_is_finished(p, t)) { p->state = TRAJ...
by RyanMco
Wed Nov 27, 2019 3:06 pm
Forum: Developer discussions
Topic: [RESOLVED] Understanding function
Replies: 10
Views: 22769

Re: Understanding function

And where's the getSetpoint function that use planner? I didn't find it
by RyanMco
Wed Nov 27, 2019 1:05 pm
Forum: Developer discussions
Topic: [RESOLVED] Understanding function
Replies: 10
Views: 22769

Re: Understanding function

Hi ; but in struct traj_eval setpoint = plan_current_goal(p, t); there's switch(p->state) inside function "plan_current_goal(p, t)" so how he does assign at the end after calling plan_current_goal and use p->state before initiating it? the called function plan_current_goal is using p->stat...
by RyanMco
Wed Nov 27, 2019 7:36 am
Forum: Developer discussions
Topic: [RESOLVED] Understanding function
Replies: 10
Views: 22769

Re: Understanding function

And can I sat that hover_pos is implicitly the same as the current setpoint? I mean it's equivalent to say that the struct hover_pos is treated as struct named setpoint? I say that because we can say that hover_pos over x (I mean we just looking at x coordination for simplifying the problem) is like...
by RyanMco
Tue Nov 26, 2019 9:02 pm
Forum: Developer discussions
Topic: [RESOLVED] Understanding function
Replies: 10
Views: 22769

Re: Understanding function

I almost understand you .. but how in do p->state initiated ? I tried to see where do we initiate that struct p in order to do switch but didn't find ..any help? also what's the purpsoe of struct traj_eval ev = plan_current_goal(&planner, t); into this GitHub firmware code in function void crtpC...
by RyanMco
Tue Nov 26, 2019 1:43 pm
Forum: Developer discussions
Topic: [RESOLVED] Understanding function
Replies: 10
Views: 22769

[RESOLVED] Understanding function

Hi guys, could you please elaborate for me what does the function go_to does? and how is struct planner initiated without initiating it in go_to function? int go_to(const struct data_go_to* data) { int result = 0; if (isInGroup(data->groupMask)) { struct vec hover_pos = mkvec(data->x, data->y, data-...
by RyanMco
Mon Nov 25, 2019 7:49 pm
Forum: Support
Topic: Receive video of FPV on ubuntu16.04
Replies: 14
Views: 7523

Re: Receive video of FPV on ubuntu16.04

Hi tomorrow I will be on the office and I wanna send you, it seems they was a laggy frequency that prevented arrival of my document.
by RyanMco
Sun Nov 24, 2019 6:35 pm
Forum: Support
Topic: Receive video of FPV on ubuntu16.04
Replies: 14
Views: 7523

Re: Receive video of FPV on ubuntu16.04

sent to your mail pdf file
by RyanMco
Sat Nov 23, 2019 7:21 am
Forum: Support
Topic: Receive video of FPV on ubuntu16.04
Replies: 14
Views: 7523

Re: Receive video of FPV on ubuntu16.04

have you tried to download software called fpv crazyflie application? if not, download it and it should work and starting streaming ur video to laptop by this application.
it's found on phone, but you can download it on Ubuntu.