paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Maximum speed?


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Maximum speed?
Date: Mon, 23 Mar 2015 22:30:48 +0100

The guidance_h_SetMaxSpeed() macro is basically only there to adhere to the naming convention for settings handlers.
You should be able to simply call gh_set_max_speed(speed) directly from your flightplan (but you probably need to include the header).

On Thu, Mar 12, 2015 at 3:35 PM, Ori Pessach <address@hidden> wrote:
This doesn't work as the code is currently written. guidance_h_SetMaxSpeed() is declared static (in a header file, no less) and the header isn't included in the generated header file that gets compiled into the autopilot firmware, so compilation fails because the reference to guidance_h_SetMaxSpeed() ends up being non-static.

Removing the static modifier gets the code to compile, but that's not ideal. 

The correct way to deal with this is to get the generated code to include the header file where guidance_h_SetMaxSpeed() is declared, but it doesn't seem like it's intended to be part of an official API (if one even exists...)

I have to wonder why the autopilot logic is generated into a header file. That seems like an odd (and potentially bad) choice. Is there a good reason for that?

Ori 

On Sun, Mar 8, 2015 at 2:38 PM, Sergey Krukowski <address@hidden> wrote:
Afaik, the idea was to use the function guidance_h_SetMaxSpeed:
https://github.com/paparazzi/paparazzi/blob/17b200a59e2fa52106fa973803f4952dadca8e97/sw/airborne/firmwares/rotorcraft/guidance/guidance_h.h#L117
Not sure however it there any other convenience functions for that.

Best Regards,
Sergey


The wiki has very little to say about setting the maximum speed:

http://wiki.paparazziuav.org/wiki/Flight_Plans#Dynacmically_adjustable_maximum_speed

Basically, nothing.

Is there a way to set the speed of travel between waypoints in a flightplan
for a rotorcraft?

Thanks,

Ori

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]