Skip to content

Commit

Permalink
frontend:types:autopilot: Add zenoh endpoint type
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoMario109 committed Jan 30, 2025
1 parent 9ba156c commit 321ca1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/frontend/src/types/autopilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export enum EndpointType {
tcpin = 'tcpin',
tcpout = 'tcpout',
serial = 'serial',
zenoh = 'zenoh',
}

export function vehicleTypeFromString(vehicle_type: string): Vehicle {
Expand All @@ -53,6 +54,7 @@ export function userFriendlyEndpointType(type: EndpointType): string {
case EndpointType.tcpin: return 'TCP Server'
case EndpointType.tcpout: return 'TCP Client'
case EndpointType.serial: return 'Serial'
case EndpointType.zenoh: return 'Zenoh'
default: return 'Undefined type'
}
}
Expand Down

0 comments on commit 321ca1b

Please sign in to comment.