Skip to content

Commit fb02b25

Browse files
committed
send rtk status
1 parent 69d7089 commit fb02b25

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/trajectory_following/FlightCommands.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

5758
namespace FlightCommands {

lib/trajectory_following/TrajectoryFollower.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ platform = ststm32
1313
board = astra_fc_v1
1414
framework = arduino
1515

16-
monitor_speed = 115200
16+
monitor_speed = 57600
1717

1818
; Note - this is here to point openocd at the correct board file
1919
upload_command = openocd -f "${PROJECT_DIR}/boards/astra_fc_v1.cfg" -c "program {$SOURCE} verify reset exit"

0 commit comments

Comments
 (0)