mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-19 03:42:05 +08:00
move global SET_SPEED_NA to function that uses it (#20026)
This commit is contained in:
@@ -214,6 +214,7 @@ static void ui_draw_world(UIState *s) {
|
||||
}
|
||||
|
||||
static void ui_draw_vision_maxspeed(UIState *s) {
|
||||
const int SET_SPEED_NA = 255;
|
||||
float maxspeed = s->scene.controls_state.getVCruise();
|
||||
const bool is_cruise_set = maxspeed != 0 && maxspeed != SET_SPEED_NA;
|
||||
if (is_cruise_set && !s->is_metric) { maxspeed *= 0.6225; }
|
||||
|
||||
@@ -61,8 +61,6 @@ const int UI_FREQ = 20; // Hz
|
||||
const int MODEL_PATH_MAX_VERTICES_CNT = TRAJECTORY_SIZE*2;
|
||||
const int TRACK_POINTS_MAX_CNT = TRAJECTORY_SIZE*4;
|
||||
|
||||
const int SET_SPEED_NA = 255;
|
||||
|
||||
typedef enum NetStatus {
|
||||
NET_CONNECTED,
|
||||
NET_DISCONNECTED,
|
||||
|
||||
Reference in New Issue
Block a user