Skip to content

Commit

Permalink
Fix misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
dgryski committed Jul 13, 2016
1 parent 67ff7da commit a8ea32c
Show file tree
Hide file tree
Showing 23 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,15 @@ func (a *API) robotConnection(res http.ResponseWriter, req *http.Request) {
}
}

// executeMcpCommand calls a global command asociated to requested route
// executeMcpCommand calls a global command associated to requested route
func (a *API) executeMcpCommand(res http.ResponseWriter, req *http.Request) {
a.executeCommand(a.gobot.Command(req.URL.Query().Get(":command")),
res,
req,
)
}

// executeRobotDeviceCommand calls a device command asociated to requested route
// executeRobotDeviceCommand calls a device command associated to requested route
func (a *API) executeRobotDeviceCommand(res http.ResponseWriter, req *http.Request) {
if _, err := a.jsonDeviceFor(req.URL.Query().Get(":robot"),
req.URL.Query().Get(":device")); err != nil {
Expand All @@ -321,7 +321,7 @@ func (a *API) executeRobotDeviceCommand(res http.ResponseWriter, req *http.Reque
}
}

// executeRobotCommand calls a robot command asociated to requested route
// executeRobotCommand calls a robot command associated to requested route
func (a *API) executeRobotCommand(res http.ResponseWriter, req *http.Request) {
if _, err := a.jsonRobotFor(req.URL.Query().Get(":robot")); err != nil {
a.writeJSON(map[string]interface{}{"error": err.Error()}, res)
Expand Down
2 changes: 1 addition & 1 deletion gobot.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (g *Gobot) Start() (errs []error) {
c := make(chan os.Signal, 1)
g.trap(c)
if len(errs) > 0 {
// there was an error during start, so we immediatly pass the interrupt
// there was an error during start, so we immediately pass the interrupt
// in order to disconnect the initialized robots, connections and devices
c <- os.Interrupt
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/bebop/client/examples/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
In order to run this example you will first need to start ffserver with:
$ ffserver -f ff.conf
then in a seperate terminal run this program:
then in a separate terminal run this program:
$ go run video.go
You will then be able to view the video feed by navigatin to
Expand Down
2 changes: 1 addition & 1 deletion platforms/gpio/analog_sensor_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type AnalogSensorDriver struct {
// NewAnalogSensorDriver returns a new AnalogSensorDriver with a polling interval of
// 10 Milliseconds given an AnalogReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the AnalogSensor is polled for new information
//
// Adds the following API Commands:
Expand Down
2 changes: 1 addition & 1 deletion platforms/gpio/button_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ButtonDriver struct {
// NewButtonDriver returns a new ButtonDriver with a polling interval of
// 10 Milliseconds given a DigitalReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the ButtonDriver is polled for new information
func NewButtonDriver(a DigitalReader, name string, pin string, v ...time.Duration) *ButtonDriver {
b := &ButtonDriver{
Expand Down
12 changes: 6 additions & 6 deletions platforms/gpio/grove_drivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type GroveRotaryDriver struct {
// NewGroveRotaryDriver returns a new GroveRotaryDriver with a polling interval of
// 10 Milliseconds given an AnalogReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the AnalogSensor is polled for new information
//
// Adds the following API Commands:
Expand Down Expand Up @@ -79,7 +79,7 @@ type GroveLightSensorDriver struct {
// NewGroveLightSensorDriver returns a new GroveLightSensorDriver with a polling interval of
// 10 Milliseconds given an AnalogReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the AnalogSensor is polled for new information
//
// Adds the following API Commands:
Expand All @@ -99,7 +99,7 @@ type GrovePiezoVibrationSensorDriver struct {
// NewGrovePiezoVibrationSensorDriver returns a new GrovePiezoVibrationSensorDriver with a polling interval of
// 10 Milliseconds given an AnalogReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the AnalogSensor is polled for new information
//
// Adds the following API Commands:
Expand Down Expand Up @@ -142,7 +142,7 @@ type GroveButtonDriver struct {
// NewGroveButtonDriver returns a new GroveButtonDriver with a polling interval of
// 10 Milliseconds given a DigitalReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the ButtonDriver is polled for new information
func NewGroveButtonDriver(a DigitalReader, name string, pin string, v ...time.Duration) *GroveButtonDriver {
return &GroveButtonDriver{
Expand All @@ -159,7 +159,7 @@ type GroveSoundSensorDriver struct {
// NewGroveSoundSensorDriver returns a new GroveSoundSensorDriver with a polling interval of
// 10 Milliseconds given an AnalogReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the AnalogSensor is polled for new information
//
// Adds the following API Commands:
Expand All @@ -179,7 +179,7 @@ type GroveTouchDriver struct {
// NewGroveTouchDriver returns a new GroveTouchDriver with a polling interval of
// 10 Milliseconds given a DigitalReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the ButtonDriver is polled for new information
func NewGroveTouchDriver(a DigitalReader, name string, pin string, v ...time.Duration) *GroveTouchDriver {
return &GroveTouchDriver{
Expand Down
2 changes: 1 addition & 1 deletion platforms/gpio/grove_temperature_sensor_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type GroveTemperatureSensorDriver struct {
// NewGroveTemperatureSensorDriver returns a new GroveTemperatureSensorDriver with a polling interval of
// 10 Milliseconds given an AnalogReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the TemperatureSensor is polled for new information
//
// Adds the following API Commands:
Expand Down
2 changes: 1 addition & 1 deletion platforms/gpio/makey_button_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type MakeyButtonDriver struct {
// NewMakeyButtonDriver returns a new MakeyButtonDriver with a polling interval of
// 10 Milliseconds given a DigitalReader, name and pin.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the ButtonDriver is polled for new information
func NewMakeyButtonDriver(a DigitalReader, name string, pin string, v ...time.Duration) *MakeyButtonDriver {
m := &MakeyButtonDriver{
Expand Down
2 changes: 1 addition & 1 deletion platforms/i2c/wiichuck_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type WiichuckDriver struct {
// It adds the following events:
// "z"- Gets triggered every interval amount of time if the z button is pressed
// "c" - Gets triggered every interval amount of time if the c button is pressed
// "joystick" - Gets triggered every "interval" amount of time if a joystick event occured, you can access values x, y
// "joystick" - Gets triggered every "interval" amount of time if a joystick event occurred, you can access values x, y
// "error" - Gets triggered whenever the WiichuckDriver encounters an error
func NewWiichuckDriver(a I2c, name string, v ...time.Duration) *WiichuckDriver {
w := &WiichuckDriver{
Expand Down
2 changes: 1 addition & 1 deletion platforms/joystick/joystick_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type joystickConfig struct {
// 10 Milliseconds given a JoystickAdaptor, name and json button configuration
// file location.
//
// Optinally accepts:
// Optionally accepts:
// time.Duration: Interval at which the JoystickDriver is polled for new information
func NewJoystickDriver(a *JoystickAdaptor, name string, config string, v ...time.Duration) *JoystickDriver {
d := &JoystickDriver{
Expand Down
2 changes: 1 addition & 1 deletion platforms/keyboard/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Packge keyboard contains the Gobot drivers for keyboard support.
Package keyboard contains the Gobot drivers for keyboard support.
Installing:
Expand Down
2 changes: 1 addition & 1 deletion platforms/leap/leap_motion_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewLeapMotionAdaptor(name string, port string) *LeapMotionAdaptor {
func (l *LeapMotionAdaptor) Name() string { return l.name }
func (l *LeapMotionAdaptor) Port() string { return l.port }

// Connect returns true if connection to leap motion is established succesfully
// Connect returns true if connection to leap motion is established successfully
func (l *LeapMotionAdaptor) Connect() (errs []error) {
if ws, err := l.connect(l.Port()); err != nil {
return []error{err}
Expand Down
2 changes: 1 addition & 1 deletion platforms/leap/leap_motion_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ func (l *LeapMotionDriver) Start() (errs []error) {
return
}

// Halt returns true if driver is halted succesfully
// Halt returns true if driver is halted successfully
func (l *LeapMotionDriver) Halt() (errs []error) { return }
6 changes: 3 additions & 3 deletions platforms/mavlink/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ const (
MAV_SEVERITY_CRITICAL = 2 // Action must be taken immediately. Indicates failure in a primary system. |
MAV_SEVERITY_ERROR = 3 // Indicates an error in secondary/redundant systems. |
MAV_SEVERITY_WARNING = 4 // Indicates about a possible future error if this is not resolved within a given timeframe. Example would be a low battery warning. |
MAV_SEVERITY_NOTICE = 5 // An unusual event has occured, though not an error condition. This should be investigated for the root cause. |
MAV_SEVERITY_NOTICE = 5 // An unusual event has occurred, though not an error condition. This should be investigated for the root cause. |
MAV_SEVERITY_INFO = 6 // Normal operational messages. Useful for logging. No action is required for these messages. |
MAV_SEVERITY_DEBUG = 7 // Useful non-operational messages that can assist in debugging. These should not occur during normal operation. |
MAV_SEVERITY_ENUM_END = 8 // |
Expand Down Expand Up @@ -8112,7 +8112,7 @@ type DataTransmissionHandshake struct {
SIZE uint32 // total data size in bytes (set on ACK only)
WIDTH uint16 // Width of a matrix or image
HEIGHT uint16 // Height of a matrix or image
PACKETS uint16 // number of packets beeing sent (set on ACK only)
PACKETS uint16 // number of packets being sent (set on ACK only)
TYPE uint8 // type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
PAYLOAD uint8 // payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)
JPG_QUALITY uint8 // JPEG quality out of [1,100]
Expand Down Expand Up @@ -8583,7 +8583,7 @@ const ()
//
type BatteryStatus struct {
CURRENT_CONSUMED int32 // Consumed charge, in milliampere hours (1 = 1 mAh), -1: autopilot does not provide mAh consumption estimate
ENERGY_CONSUMED int32 // Consumed energy, in 100*Joules (intergrated U*I*dt) (1 = 100 Joule), -1: autopilot does not provide energy consumption estimate
ENERGY_CONSUMED int32 // Consumed energy, in 100*Joules (integrated U*I*dt) (1 = 100 Joule), -1: autopilot does not provide energy consumption estimate
VOLTAGE_CELL_1 uint16 // Battery voltage of cell 1, in millivolts (1 = 1 millivolt)
VOLTAGE_CELL_2 uint16 // Battery voltage of cell 2, in millivolts (1 = 1 millivolt), -1: no cell
VOLTAGE_CELL_3 uint16 // Battery voltage of cell 3, in millivolts (1 = 1 millivolt), -1: no cell
Expand Down
2 changes: 1 addition & 1 deletion platforms/mqtt/mqtt_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (a *MqttAdaptor) Disconnect() (err error) {
return
}

// Finalize returns true if connection to mqtt is finalized succesfully
// Finalize returns true if connection to mqtt is finalized successfully
func (a *MqttAdaptor) Finalize() (errs []error) {
a.Disconnect()
return
Expand Down
2 changes: 1 addition & 1 deletion platforms/opencv/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Packge opencv contains the Gobot drivers for opencv.
Package opencv contains the Gobot drivers for opencv.
Installing:
Expand Down
4 changes: 2 additions & 2 deletions platforms/pebble/pebble_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ func NewPebbleAdaptor(name string) *PebbleAdaptor {

func (a *PebbleAdaptor) Name() string { return a.name }

// Connect returns true if connection to pebble is established succesfully
// Connect returns true if connection to pebble is established successfully
func (a *PebbleAdaptor) Connect() (errs []error) {
return
}

// Finalize returns true if connection to pebble is finalized succesfully
// Finalize returns true if connection to pebble is finalized successfully
func (a *PebbleAdaptor) Finalize() (errs []error) {
return
}
4 changes: 2 additions & 2 deletions platforms/pebble/pebble_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (d *PebbleDriver) Connection() gobot.Connection { return d.connection }
// Start returns true if driver is initialized correctly
func (d *PebbleDriver) Start() (errs []error) { return }

// Halt returns true if driver is halted succesfully
// Halt returns true if driver is halted successfully
func (d *PebbleDriver) Halt() (errs []error) { return }

// PublishEvent publishes event with specified name and data in gobot
Expand All @@ -73,7 +73,7 @@ func (d *PebbleDriver) SendNotification(message string) string {
}

// PendingMessages returns messages to be sent as notifications to pebble
// (Not intented to be used directly)
// (Not intended to be used directly)
func (d *PebbleDriver) PendingMessage() string {
if len(d.Messages) < 1 {
return ""
Expand Down
2 changes: 1 addition & 1 deletion platforms/raspi/raspi_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func NewRaspiAdaptor(name string) *RaspiAdaptor {
}
func (r *RaspiAdaptor) Name() string { return r.name }

// Connect starts conection with board and creates
// Connect starts connection with board and creates
// digitalPins and pwmPins adaptor maps
func (r *RaspiAdaptor) Connect() (errs []error) {
return
Expand Down
2 changes: 1 addition & 1 deletion platforms/spark/spark_core_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewSparkCoreAdaptor(name string, deviceID string, accessToken string) *Spar
}
func (s *SparkCoreAdaptor) Name() string { return s.name }

// Connect returns true if connection to spark core is succesfull
// Connect returns true if connection to spark core is successfull
func (s *SparkCoreAdaptor) Connect() (errs []error) {
return
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/sphero/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Example:
gbot.Start()
}
For futher information refer to sphero readme:
For further information refer to sphero readme:
https://github.com/hybridgroup/gobot/blob/master/platforms/sphero/README.md
*/
package sphero
4 changes: 2 additions & 2 deletions platforms/sphero/sphero_packets.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func DefaultCollisionConfig() CollisionConfig {
}

// CollisionConfig provides configuration for the collision detection alogorithm.
// For more information refer to the offical api specification https://github.com/orbotix/DeveloperResources/blob/master/docs/Collision%20detection%201.2.pdf.
// For more information refer to the official api specification https://github.com/orbotix/DeveloperResources/blob/master/docs/Collision%20detection%201.2.pdf.
type CollisionConfig struct {
// Detection method type to use. Methods 01h and 02h are supported as
// of FW ver 1.42. Use 00h to completely disable this service.
Expand Down Expand Up @@ -85,7 +85,7 @@ func DefaultDataStreamingConfig() DataStreamingConfig {
}

// DataStreamingConfig provides configuration for Sensor Data Streaming.
// For more information refer to the offical api specification https://github.com/orbotix/DeveloperResources/blob/master/docs/Sphero_API_1.50.pdf page 28
// For more information refer to the official api specification https://github.com/orbotix/DeveloperResources/blob/master/docs/Sphero_API_1.50.pdf page 28
type DataStreamingConfig struct {
// Divisor of the maximum sensor sampling rate
N uint16
Expand Down
4 changes: 2 additions & 2 deletions robot.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func NewJSONRobot(robot *Robot) *JSONRobot {
return jsonRobot
}

// Robot is a named entitity that manages a collection of connections and devices.
// It containes it's own work routine and a collection of
// Robot is a named entity that manages a collection of connections and devices.
// It contains its own work routine and a collection of
// custom commands to control a robot remotely via the Gobot api.
type Robot struct {
Name string
Expand Down

0 comments on commit a8ea32c

Please sign in to comment.