Skip to content

Commit 5039b66

Browse files
core: ardupilot_manager: add GET /sitl_frame endpoint
The POST endpoint already existed; add the matching GET so the frontend can read the currently configured SITL frame. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2a6209a commit 5039b66

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • core/services/ardupilot_manager/api/v1/routers

core/services/ardupilot_manager/api/v1/routers/index.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ async def set_sitl_frame(frame: SITLFrame) -> Any:
136136
return autopilot.set_sitl_frame(frame)
137137

138138

139+
@index_router_v1.get("/sitl_frame", response_model=SITLFrame, summary="Get current SITL Frame type.")
140+
@index_to_http_exception
141+
async def get_sitl_frame() -> Any:
142+
return autopilot.current_sitl_frame
143+
144+
139145
@index_router_v1.get("/firmware_vehicle_type", response_model=str, summary="Get firmware vehicle type.")
140146
@index_to_http_exception
141147
async def get_firmware_vehicle_type() -> Any:

0 commit comments

Comments
 (0)