File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ struct flight_packet_t {
5252 bool flight_armed;
5353 float thrust_perc;
5454 float diffy_perc;
55+ int rtk_status;
5556};
5657
5758namespace FlightCommands {
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ void follow_trajectory() {
200200 fp.flight_armed = flight_armed;
201201 fp.thrust_perc = thrust_perc;
202202 fp.diffy_perc = diffy_perc;
203+ fp.rtk_status = (GPS::ubx.pvt_solution .data ->flags >> 6 ) & 0b11 ;
203204
204205 FlightCommands::send_telemetry (fp);
205206 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ platform = ststm32
1313board = astra_fc_v1
1414framework = arduino
1515
16- monitor_speed = 115200
16+ monitor_speed = 57600
1717
1818 ; Note - this is here to point openocd at the correct board file
1919upload_command = openocd -f " ${PROJECT_DIR}/boards/astra_fc_v1.cfg" -c " program {$SOURCE} verify reset exit"
You can’t perform that action at this time.
0 commit comments