mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +08:00
[Tracker] Fix tracker route.
This commit is contained in:
committed by
Gautier Hattenberger
parent
e2d3a44940
commit
aeef76a527
@@ -82,7 +82,7 @@ static int put_horizontal_speed(uint8_t *buf)
|
|||||||
|
|
||||||
static int put_route(uint8_t *buf)
|
static int put_route(uint8_t *buf)
|
||||||
{
|
{
|
||||||
int32_t route_normalized = INT32_DEG_OF_RAD(stateGetHorizontalSpeedDir_f());
|
int32_t route_normalized = DegOfRad(stateGetHorizontalSpeedDir_f());
|
||||||
uint16_t route;
|
uint16_t route;
|
||||||
if (route_normalized >= 0) {
|
if (route_normalized >= 0) {
|
||||||
route = (uint16_t) route_normalized;
|
route = (uint16_t) route_normalized;
|
||||||
|
|||||||
Reference in New Issue
Block a user