-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: autopilot-manager: Isolate mavlink_proxy
* Isolate mavlink_proxy type definitions and exceptions in its own module
- Loading branch information
1 parent
35dd883
commit cef0aee
Showing
12 changed files
with
52 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
core/services/ardupilot_manager/mavlink_proxy/exceptions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class DuplicateEndpointName(ValueError): | ||
"""Another mavlink endpoint with same name already exists.""" | ||
|
||
|
||
class EndpointAlreadyExists(ValueError): | ||
"""Mavlink endpoint already exists.""" | ||
|
||
|
||
class EndpointDontExist(ValueError): | ||
"""Given Mavlink endpoint do not exist.""" | ||
|
||
|
||
class MavlinkRouterStartFail(RuntimeError): | ||
"""Failed to initiate Mavlink router.""" | ||
|
||
|
||
class NoMasterMavlinkEndpoint(ValueError): | ||
"""No master Mavlink endpoint set.""" | ||
|
||
|
||
class EndpointCreationFail(RuntimeError): | ||
"""Failed to add endpoint.""" | ||
|
||
|
||
class EndpointDeleteFail(RuntimeError): | ||
"""Failed to delete endpoint.""" | ||
|
||
|
||
class EndpointUpdateFail(RuntimeError): | ||
"""Failed to update endpoint.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters