-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: separate yaw/pitch/roll widgets
- Loading branch information
1 parent
4233eef
commit 2c82500
Showing
95 changed files
with
1,434 additions
and
700 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
2 changes: 1 addition & 1 deletion
2
...ntrol-scheme-view/src/lib/widgets/widgets-grid/control-scheme-widgets-grid.component.scss
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
:host { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
grid-auto-rows: 150px; | ||
grid-auto-rows: 180px; | ||
gap: 15px; | ||
justify-items: stretch; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export enum WidgetType { | ||
Voltage, | ||
Tilt, | ||
Temperature | ||
Pitch, | ||
Temperature, | ||
Yaw, | ||
Roll | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { createActionGroup, props } from '@ngrx/store'; | ||
import { TiltData } from 'rxpoweredup'; | ||
|
||
export const ATTACHED_IO_PROPS_ACTIONS = createActionGroup({ | ||
source: 'Attached IO Props', | ||
events: { | ||
'motor encoder offset received': props<{ hubId: string; portId: number; offset: number }>(), | ||
'startup servo calibration data received': props<{ hubId: string; portId: number; range: number; aposCenter: number }>(), | ||
'compensate tilt': props<{ hubId: string; portId: number; compensationData: TiltData }>(), | ||
'reset tilt compensation': props<{ hubId: string; portId: number }>(), | ||
'compensate pitch': props<{ hubId: string; portId: number; currentPitch: number }>(), | ||
'compensate yaw': props<{ hubId: string; portId: number; currentYaw: number }>(), | ||
'compensate roll': props<{ hubId: string; portId: number; currentRoll: number }>(), | ||
'reset pitch compensation': props<{ hubId: string; portId: number }>(), | ||
'reset yaw compensation': props<{ hubId: string; portId: number }>(), | ||
'reset roll compensation': props<{ hubId: string; portId: number }>(), | ||
} | ||
}); |
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
17 changes: 0 additions & 17 deletions
17
modules/store/src/lib/effects/tasks-processing/scheme-pre-run/i-widget-read-task-factory.ts
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...les/store/src/lib/effects/tasks-processing/scheme-pre-run/i-widgets-read-tasks-factory.ts
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,12 @@ | ||
import { Observable } from 'rxjs'; | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
import { ControlSchemeWidgetsDataModel, WidgetConfigModel } from '../../../models'; | ||
|
||
export interface IWidgetsReadTasksFactory<TConfig extends WidgetConfigModel = WidgetConfigModel> { | ||
createReadTasks( | ||
configs: TConfig[] | ||
): Array<Observable<{ widgetId: number; data: ControlSchemeWidgetsDataModel }>>; | ||
} | ||
|
||
export const WIDGET_READ_TASKS_FACTORY = new InjectionToken<IWidgetsReadTasksFactory>('WIDGET_READ_TASK_FACTORY'); |
2 changes: 1 addition & 1 deletion
2
modules/store/src/lib/effects/tasks-processing/scheme-pre-run/index.ts
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './pre-run-scheme.effect'; | ||
export * from './i-widget-read-task-factory'; | ||
export * from './i-widgets-read-tasks-factory'; |
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
Oops, something went wrong.