Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 1TEST_Flight_Protocol by
Diff: ROBOFRIEN_GUI/ROBOFRIEN_GUI.h
- Revision:
- 0:c466d770ffa7
diff -r 000000000000 -r c466d770ffa7 ROBOFRIEN_GUI/ROBOFRIEN_GUI.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ROBOFRIEN_GUI/ROBOFRIEN_GUI.h Wed May 17 11:02:27 2017 +0000
@@ -0,0 +1,66 @@
+
+#ifndef MBED_ROBOFRIEN_GUI_H
+#define MBED_ROBOFRIEN_GUI_H
+
+#include "mbed.h"
+
+
+
+class ROBOFRIEN_GUI {
+public:
+ void pc_rx_update();
+ bool rx_bool();
+ void Configuration_init();
+ void Refresh();
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+/////////////////////////////////////// [H/M] HomePoint and Marker //////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+ signed long Homepoint_Lat, Homepoint_Lng, Homepoint_Alt;
+ signed long Marker_Mode[20],Marker_Lat[20], Marker_Lng[20], Marker_Alt[20], Marker_Speed[20];
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////// [M/S] Mode and State ///////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+ int8_t Mode1, Mode2,MissionState,CurrentMarker;
+ uint8_t Bat1,Bat2;
+ bool button[5];
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////// [GPS] GPS //////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+ unsigned long utc_time;
+ signed long latitude,longitude,altitude;
+ uint8_t SatNum;
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////// AHRS //////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+ int32_t rollx100, pitchx100, yawx100;
+ int32_t roll_ratex100, pitch_ratex100, yaw_ratex100;
+ int32_t VXx100,VYx100,VZx100;
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////// [C/P] CAP/PWM ////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+ int16_t cap[8];
+ uint8_t pwm[8];
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+/////////////////////////////////////////// [E/D] Extra & Debug /////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////////
+ uint16_t DEBUGx100[8];
+
+
+
+
+
+//////////
+ int16_t raw_cap[8];
+private:
+ void trans_configuration_data(int id_dest, int data_parse_num, int data_parse_detail_num);
+ void trans_flight_data(int id_dest, int data_parse_num);
+ void trans_empty_data(int id_dest, int data_parse_num);
+ void attitude_calibrate(float rollAngle, float pitchAngle);
+ void write_compass_setting_to_eeprom();
+
+};
+
+#endif
\ No newline at end of file
