melvin_ob/http_handler/http_response/control_satellite.rs
1use crate::http_handler::http_response::response_common::SerdeJSONBodyHTTPResponseType;
2
3/// Response type for the /control endpoint.
4#[derive(serde::Deserialize, Debug)]
5pub(crate) struct ControlSatelliteResponse {
6 /// The velocity in x-direction.
7 vel_x: f64,
8 /// The velocity in y-direction.
9 vel_y: f64,
10 /// The currently selected `CameraAngle` as a string (e.g. "narrow" or "wide").
11 camera_angle: String,
12 /// The current `FlightState` as a string (e.g. "acquisition" or "deployment").
13 state: String,
14 /// The current status of the satellite
15 status: String,
16}
17
18impl SerdeJSONBodyHTTPResponseType for ControlSatelliteResponse {}