Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHsu1 committed May 11, 2024
1 parent 78379c4 commit 2e06604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions internal/obc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ func NewClient(urlBase string, timeout int) *Client {
return client
}

/*
Send a request to the obc to set the status of WaitForTakeoffTick to be autonomous.
*/
func (client *Client) DoAutonomousTakeoff() ([]byte, int) {
body, httpErr := client.httpClient.Post("/takeoff/autonomous", nil)
return body, httpErr.Status
}

/*
Send a request to the obc to set the status of WaitForTakeoffTick to be manual.
*/
func (client *Client) DoManualTakeoff() ([]byte, int) {
body, httpErr := client.httpClient.Post("/takeoff/manual", nil)
return body, httpErr.Status
Expand Down
2 changes: 1 addition & 1 deletion protos
Submodule protos updated 1 files
+2 −2 obc.proto

0 comments on commit 2e06604

Please sign in to comment.