mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 02:43:33 +08:00
stop manually defining physical constants
This commit is contained in:
committed by
Lorenz Meier
parent
7538ea44e3
commit
d75fd72c02
@@ -36,9 +36,9 @@ px4_add_module(
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
SRCS
|
||||
frsky_data.c
|
||||
sPort_data.c
|
||||
frsky_telemetry.c
|
||||
frsky_data.cpp
|
||||
sPort_data.cpp
|
||||
frsky_telemetry.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
|
||||
+1
-1
@@ -47,9 +47,9 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <arch/math.h>
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
#include <stdbool.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <uORB/topics/battery_status.h>
|
||||
#include <uORB/topics/sensor_combined.h>
|
||||
+1
-1
@@ -79,8 +79,8 @@ static int sPort_open_uart(const char *uart_name, struct termios *uart_config, s
|
||||
static int set_uart_speed(int uart, struct termios *uart_config, speed_t speed);
|
||||
static void usage(void);
|
||||
static int frsky_telemetry_thread_main(int argc, char *argv[]);
|
||||
__EXPORT int frsky_telemetry_main(int argc, char *argv[]);
|
||||
|
||||
extern "C" __EXPORT int frsky_telemetry_main(int argc, char *argv[]);
|
||||
|
||||
uint16_t get_telemetry_flight_mode(int px4_flight_mode)
|
||||
{
|
||||
+2
-1
@@ -47,7 +47,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <arch/math.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <lib/ecl/geo/geo.h>
|
||||
|
||||
#include <uORB/topics/battery_status.h>
|
||||
Reference in New Issue
Block a user