Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2105 | - | 1 | #ifndef _PROCESSING_H |
2 | #define _PROCESSING_H |
||
3 | |||
4 | #define INITIATE 3 |
||
5 | #define GET_CONFIGURATION 1 |
||
6 | #define GET_FLIGHTCONTROL_VALUES 2 |
||
7 | #define GET_3D_DATA 5 |
||
8 | #define SWITCH_FLIGHTCONTROL 4 |
||
9 | #define GET_ANALOG_DATA 6 |
||
10 | |||
11 | extern void processing_init(); |
||
12 | extern void analyze_data_package(serial_data_struct* pdata_package); |
||
13 | extern void get_distance(); |
||
14 | extern void request_to_kopter(u8 request); |
||
15 | extern void process_flow_data(serial_data_struct* pdata_package_flow_process); |
||
16 | extern void process_gps_data(serial_data_struct* pdata_package_gps_process); |
||
17 | |||
18 | volatile int Distance; |
||
19 | |||
20 | struct str_optical_flow |
||
21 | { |
||
22 | u64 time_usec; |
||
23 | float flow_comp_m_x; |
||
24 | float flow_comp_m_y; |
||
25 | float ground_distance; |
||
26 | int16 flow_x; |
||
27 | int16 flow_y; |
||
28 | u8 sensor_id; |
||
29 | u8 quality; |
||
30 | float gyroz; |
||
31 | }; |
||
32 | struct str_optical_flow optical_flow_values; |
||
33 | |||
34 | struct str_optical_flow_rad |
||
35 | { |
||
36 | u64 time_usec; |
||
37 | u32 integration_time_us; |
||
38 | float integrated_x; |
||
39 | float integrated_y; |
||
40 | float integrated_xgyro; |
||
41 | float integrated_ygyro; |
||
42 | float integrated_zgyro; |
||
43 | u32 time_delta_distance_us; |
||
44 | float distance; |
||
45 | int16 temperature; |
||
46 | u8 sensor_id; |
||
47 | u8 quality; |
||
48 | }; |
||
49 | struct str_optical_flow_rad optical_flow_rad; |
||
50 | |||
51 | struct str_gps |
||
52 | { |
||
53 | float latitude; |
||
54 | u8 lat_orientation; |
||
55 | float longitude; |
||
56 | u8 long_orientation; |
||
57 | float utc; |
||
58 | float utc_date; |
||
59 | u8 valid; |
||
60 | }; |
||
61 | struct str_gps gps_value_struct; |
||
62 | |||
63 | #endif //_PROCESSING_H |